[MacPorts] #40227: error in tempfile of python 2.7.5
MacPorts
noreply at macports.org
Thu Aug 22 19:05:55 PDT 2013
#40227: error in tempfile of python 2.7.5
-----------------------+-------------------
Reporter: renz@… | Owner: jwa@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Resolution: | Keywords:
Port: python27 |
-----------------------+-------------------
Comment (by nad@…):
The `io` module has been in the Python standard library since Python 2.6.
It looks like you've just been lucky up to now that having your own module
named `io` did not conflict with the one in the standard library. For the
record, as part of the fixes for [http://bugs.python.org/issue16800]
which was released in Python 2.7.4, the `tempfile` module was changed to
use `io`. Shadowing of module names is a common trap. Probably the best
general way to avoid it is by structuring your project as one or more
Python packages thereby putting your modules in their own namespace (see
http://docs.python.org/2/tutorial/modules.html#packages).
--
Ticket URL: <https://trac.macports.org/ticket/40227#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list