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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com