[Python-Dev] Initialization of builtins (original) (raw)
Eric Smith eric at trueblade.com
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 ]