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/2001-June/015271.html below:

could int, str, tuple etc. become type objects?

[Python-Dev] quick poll: could int, str, tuple etc. become type objects?Barry A. Warsaw barry@digicool.com
Tue, 5 Jun 2001 15:46:54 -0400
>>>>> "GvR" == Guido van Rossum <guido@digicool.com> writes:

    >> I'm a little concerned about this, since the names that would
    >> be added are probably in common use as variable and/or argument
    >> names.  I.e. At one point `list' was a very common identifier
    >> in Mailman, and I'm sure `dict' is used quite often still.  I
    >> guess this would be okay as long as working code doesn't break
    >> because of it.

    GvR> It would be hard to see how this would break code, since
    GvR> built-ins are searched *after* all variables that the user
    GvR> defines.

Wasn't there talk about issuing warnings for locals shadowing
built-ins (or was that globals?).  If not, fergitaboutit.  If so, that
would fall under the category of "breaking".

-Barry



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