[Python-ideas] Add annotations to global statement

Alexandre Bosc Athelopuce at gmx.fr
Thu Sep 6 14:30:04 CEST 2012


I think the annotations of parameters and  return value of a function, 
a  useful practice for the user of the function.
As a function can modify or create global variables, and as it's 
important for the end user,   I would appreciate to add annotations in 
the global statement.

An  annotation syntax similar to that of parameters  could be employed :

     global var : expression
     global var1 : expression1, var2 : expression2,...


cheers,

Alex (geoscience modeler)



More information about the Python-ideas mailing list