Question about a single underscore.

Bart Ogryczak B.Ogryczak at gmail.com
Thu Feb 1 12:25:19 EST 2007


On Feb 1, 5:52 pm, "Steven W. Orr" <ste... at syslang.net> wrote:
> I saw this and tried to use it:
>
> ------------------><8------------------- const.py-------------
[...]
> sys.modules[__name__]=_const()

__name__ == 'const', so you´re actually doing
const = _const()





More information about the Python-list mailing list