The Industry choice

Terry Reedy tjreedy at udel.edu
Sun Jan 2 17:15:10 EST 2005


"Peter Dembinski" <pdemb at illx.org> wrote in message 
news:87llbba55t.fsf at hector.domek...
> Besides, shouldn't str be a reserved word or something?

It is a name in the builtins module which is automatically searched after 
globals.  Many experienced Pythoneers strongly advise against rebinding 
builtin names *unless* one is intentionally wrapping or overriding the 
builtin object.  The latter are sometimes valid expert uses of masking 
builtins.  Newbies are regularly warned on this list against making a habit 
of casual use of list, dict, int, str, etc.

None has been reserved because there is no known good use for overriding 
it.  True and False will be reserved someday.  There have been proposals to 
turn on reserved status for all builtins on a per-module status.

Terry J. Reedy






More information about the Python-list mailing list