[Python-Dev] Initialization of __builtins__
Eric Smith
eric at trueblade.com
Sat Oct 10 22:29:26 CEST 2009
More information about the Python-Dev mailing list
Sat Oct 10 22:29:26 CEST 2009
- Previous message: [Python-Dev] Initialization of __builtins__
- Next message: [Python-Dev] Weak dict iterators are fragile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Vinay Sajip wrote: > If __builtins__ is an implementation detail which can't be relied on, should the > py3k code be changed to the try: form? Or shall I just remove the checks > altogether, since Unicode should always be there in 3.x? Remember that the identifier "unicode" isn't present in py3k. There it's "str" and it holds Unicode strings. Unless you're trying to keep the code identical in both branches, I'd just remove the check in py3k and assume str is what you always want to use. Eric.
- Previous message: [Python-Dev] Initialization of __builtins__
- Next message: [Python-Dev] Weak dict iterators are fragile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list