[New-bugs-announce] [issue13048] Handling of paths in first argument of imp.find_module()

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Sun Sep 25 23:05:33 CEST 2011


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com>:

It's undocumented that imp.find_module() supports paths with "/" as the first argument:

$ mkdir /tmp/imp_tests
$ cd /tmp/imp_tests
$ mkdir a
$ touch a/b.py
$ python3.3 -c 'import imp; print(imp.find_module("a/b"))'
(<_io.TextIOWrapper name=4 mode='U' encoding='utf-8'>, 'a/b.py', ('.py', 'U', 1))

----------
assignee: docs at python
components: Documentation, Interpreter Core
messages: 144532
nosy: Arfrever, brett.cannon, docs at python, ezio.melotti, ncoghlan
priority: normal
severity: normal
status: open
title: Handling of paths in first argument of imp.find_module()
versions: Python 2.7, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13048>
_______________________________________


More information about the New-bugs-announce mailing list