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.

作者 techtonik
收信人 amaury.forgeotdarc, jkloth, r.david.murray, serhiy.storchaka, techtonik
日期 2012-12-12.11:46:55
SpamBayes Score -1.0
Marked as misclassified
Message-id <1355312816.05.0.371984208099.issue16656@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2012-12-12 11:46:56techtonik修改recipients: + techtonik, amaury.forgeotdarc, jkloth, r.david.murray, serhiy.storchaka
2012-12-12 11:46:56techtonik修改messageid: <1355312816.05.0.371984208099.issue16656@psf.upfronthosting.co.za>
2012-12-12 11:46:56techtonik链接issue16656 messages
2012-12-12 11:46:55techtonik创建