A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-June/036429.html below:

[Python-Dev] problem with assignment shadows builtin warning

[Python-Dev] problem with assignment shadows builtin warning [Python-Dev] problem with assignment shadows builtin warningSamuele Pedroni pedronis@bluewin.ch
Mon, 16 Jun 2003 22:36:24 +0200
At 16:23 16.06.2003 -0400, Guido van Rossum wrote:
> > so code like
> >
> > <pkg/__init__.py>
> >
> >
> > def reveal():
> >    print list
> >
> > </pkg/__init__.py>
> >
> > if pkg has a list subpackage/module will show that we are cheating, after
> > caching is implemented, wrt to the old global->builtins lookup rule,
> > because after:
> >
> > import pkg.list
> >
> > pkg.__dict__['list'] will be a module
> >
> > but
> >
> > pkg.reveal() will print the list builtin.
>
>No, the parser should know about the subpackage...

I'm not impressed, really, but I got the message, you are all for this plan.

regards. 




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4