[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