> Hope this is helpful; can anyone see any potential problems with this > change?
As Marc-Andre says: such a change is unsupported, and *will* break Python. It's not true that the only supported encoding in 2.x is 'ascii', 'iso-8859-1' is also supported. 'utf-8' is not, neither is anything else. The key problem is that objects that compare equal should also hash equal. String and Unicode hashing has been constructed so that byte strings hash the same as if interpreted as latin-1. If, say, utf-8 would be the system encoding, then, for some values of S, S == unicode(S) and hash(S) != hash(unicode(S)) That, in turn, *will* break dictionaries. Regards, Martin _______________________________________________ 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