STINNER Victor added the comment: > 2. It depends on how test module was loaded, true if it loaded from .py-file > and false if it loaded from .py[co]-file.
I tested with Python compiled in narrow or wide build: len(u'\ud83d\udc9d') value changes depending if the file is compiled to PYC in narrow or wide build. Oh, I have a headache. I didn't remember that Python 2 was so much broken with non-BMP characters :-p ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19457> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com