[NumPy-Tickets] [NumPy] #1686: relative imports for python 3

NumPy Trac numpy-tickets@scipy....
Wed Nov 24 22:14:38 CST 2010

#1686: relative imports for python 3
 Reporter:  sunqiang  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:  2.0.0   
Component:  Other     |     Version:  devel   
 Keywords:            |  
 http://docs.python.org/dev/py3k/whatsnew/3.0.html#removed-syntax said:
 "The only acceptable syntax for relative imports is from .[module] import
 name. All import forms not starting with . are interpreted as absolute
 imports. (PEP 0328)"

 line 128 and 129 of numpy/__init__.py:
     from version import git_revision as __git_revision__
     from version import version as __version__
 they didn't follow PEP 0328, so it breaks Python 3.x port. got this error
 from Python 3.2a4 and NumPy's git.

Ticket URL: <http://projects.scipy.org/numpy/ticket/1686>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list