[issue8869] execfile does not work with UNC paths
report at bugs.python.org
Tue Jun 1 16:54:14 CEST 2010
Tim Golden <mail at timgolden.me.uk> added the comment:
Since execfile is basically shorthand for exec (open (filename).read ()),
and since open (filename) *does* support the full range of filepath
syntax on Windows, and since execfile has been removed in py3k in favour
of exec (open ...)), and since Python 2.x is nearing its end-of-life,
I doubt this issue will garner much sympathy.
I haven't actually looked at the code to discover just *why* execfile
doesn't support that style of filename. But is there any reason you
can't use exec (open (...))?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list