"Peter Dembinski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 -- http://mail.python.org/mailman/listinfo/python-list