[prev in list] [next in list] [prev in thread] [next in thread]
List: python-bugs-list
Subject: [issue7411] allow import from file having name containing hyphen or
From: Antoine Pitrou <report () bugs ! python ! org>
Date: 2009-11-30 15:51:23
Message-ID: 1259596283.07.0.623874361481.issue7411 () psf ! upfronthosting ! co ! za
[Download RAW message or body]
Antoine Pitrou <pitrou@free.fr> added the comment:
Yes, there is:
$ cat > "file-with-hyphen and space.py"
x = 5
$ python
Python 2.6.4 (r264:75706, Oct 27 2009, 15:50:27)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> mod = __import__("file-with-hyphen and space")
>>> mod.x
5
>>>
----------
nosy: +pitrou
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue7411>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-bugs-list%40marc.info
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic