[Pyrex] Succinct case (was: Dangerous weirdness happening)
    Greg Ewing 
    greg at cosc.canterbury.ac.nz
       
    Tue Sep 30 06:20:57 CEST 2003
    
    
  
David McNab wrote:
>  try:
>      x = True
>  except:
>      print "dammit"
>      True = 1
Pyrex determines the scope of *all* variables statically,
even module-level ones, so this causes the same sort of
problem you get in Python when you reference a local
variable before assigning to it.
In short, this is illegal Pyrex code.
Perhaps I should add a note to the docs about this?
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+
    
    
More information about the Pyrex
mailing list