Message9677
Importation of modules with non-ASCII characters works in CPython 2.7 when module name is specified as a str object (e.g. "ćśź"), but not unicode object (e.g. u"ćśź").
$ touch /tmp/ćśź.py
$ cat test.py
# coding: utf-8
import sys
sys.path.append("/tmp")
module = __import__("ćśź")
print(module)
$ python2.7 test.py
<module 'ćśź' from '/tmp/ćśź.py'>
$ jython2.7 test.py
Traceback (most recent call last):
File "test.py", line 4, in <module>
module = __import__("ćśź")
ImportError: No module named ćśź |
|
Date |
User |
Action |
Args |
2015-03-19 12:48:40 | Arfrever | set | recipients:
+ Arfrever, zyasoft |
2015-03-19 12:48:40 | Arfrever | set | messageid: <1426769320.36.0.914859416876.issue2295@psf.upfronthosting.co.za> |
2015-03-19 12:48:40 | Arfrever | link | issue2295 messages |
2015-03-19 12:48:40 | Arfrever | create | |
|