Message9677

Author Arfrever
Recipients Arfrever, zyasoft
Date 2015-03-19.12:48:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426769320.36.0.914859416876.issue2295@psf.upfronthosting.co.za>
In-reply-to
Content
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 ćśź
History
Date User Action Args
2015-03-19 12:48:40Arfreversetrecipients: + Arfrever, zyasoft
2015-03-19 12:48:40Arfreversetmessageid: <1426769320.36.0.914859416876.issue2295@psf.upfronthosting.co.za>
2015-03-19 12:48:40Arfreverlinkissue2295 messages
2015-03-19 12:48:40Arfrevercreate