This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author techtonik
Recipients amaury.forgeotdarc, jkloth, r.david.murray, serhiy.storchaka, techtonik
Date 2012-12-12.11:46:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355312816.05.0.371984208099.issue16656@psf.upfronthosting.co.za>
In-reply-to
Content
I attach tests.py file used to run the tests. Results are in python2.out.txt and python3.out.txt also attached.

> What are the results of os.stat(b'Русское имя') and os.stat(b'Русское имя') on Python 2.7 and Python 3.3+?

b'Русское имя' is not a valid syntax construct in Python 3 even though I have correct 'coding: utf-8' header and expect characters to be utf-8 bytes. Therefore I skipped this test for Python 3.
> python test.py
  File "tests.py", line 23
    print(os.stat(b'\u0420\u0443\u0441\u0441\u043a\u043e\u0435 \u0438\u043c\u044f'))
                   ^
SyntaxError: bytes can only contain ASCII literal characters.
History
Date User Action Args
2012-12-12 11:46:56techtoniksetrecipients: + techtonik, amaury.forgeotdarc, jkloth, r.david.murray, serhiy.storchaka
2012-12-12 11:46:56techtoniksetmessageid: <1355312816.05.0.371984208099.issue16656@psf.upfronthosting.co.za>
2012-12-12 11:46:56techtoniklinkissue16656 messages
2012-12-12 11:46:55techtonikcreate