Possible PEP: Improve classmethod/staticmethod syntax

sismex01 at hebmex.com sismex01 at hebmex.com
Wed Jun 4 16:08:14 CEST 2003


> From: Skip Montanaro [mailto:skip at pobox.com]
> Sent: Wednesday, June 04, 2003 9:03 AM
> 
>     bryan> thanks skip... now i can see the elegance of this solution.
>     bryan> wouldn't this also solve the pre/post conditions that are
>     bryan> currently put in comments with another current solution?  
> 
> That was the general idea. ;-)
> 
>     bryan> but, how would you handle pre/post conditions that are only
>     bryan> supposed to be used in a debug version?
> 
> Like I said, it was probably full of holes.
> 
> Skip
>

Since decorators are in a dictionary, in what order should
they be applied? I though item extraction from a dictionary
was, basically, unordered.

The idea of keeping them in a list (syntax #1) was that
it's easy to see the order they're going to be applied
to the original function.

-gca
Advertencia:La informacion contenida en este mensaje es confidencial y
restringida, por lo tanto esta destinada unicamente para el uso de la
persona arriba indicada, se le notifica que esta prohibida la difusion de
este mensaje. Si ha recibido este mensaje por error, o si hay problemas en
la transmision, favor de comunicarse con el remitente. Gracias.





More information about the Python-list mailing list