private variables/methods
Alex Martelli
aleaxit at yahoo.com
Sun Oct 12 18:37:45 EDT 2003
Terry Reedy wrote:
...
> I believe it would be easily possible to bind a module to
> <module>.__self__ or <module>. __module__ at the same time
> <module>__name__, .__file__, and .__doc__ are. ('Current' is no more
Yes, it would (a tiny patch to the C code).
> needed for __module__ than for the other vars.) If their were use
> cases for self-access nearly as good as those for the others, and not
> just the cuteness factor, I would support the addition. I would guess
My use case is: deprecating the global statement.
Alex
More information about the Python-list
mailing list