mixing statements into J2

Michael Sparks michaels at rd.bbc.co.uk
Fri Aug 27 04:37:10 EDT 2004


Anthony Baxter wrote:
> On Thu, 26 Aug 2004 10:36:08 -0700, Robert Brewer wrote:
>> using:
>>     if test:
>>         memoize
>>     else:
>>         synchronize
>>     classmethod
>> def foo(self, *args):
>>     stuff(args)
..
> The above _should_ generate a SyntaxError on the 'if'.

With the current patch it does.


Michael.
-- 
Michael.Sparks at rd.bbc.co.uk    
British Broadcasting Corporation, Research and Development
Kingswood Warren, Surrey KT20 6NP

This message (and any attachments) may contain personal views
which are not the views of the BBC unless specifically stated.





More information about the Python-list mailing list