Repository navigation
astropy.constants doesn't import in python3.3 - #603
Conversation
|
Ah, this just just be In this case, althought |
|
In fact, apparently that |
…ssues with Python 3.3
|
Oh yes, right - I just did that, so once Travis passes I'll merge. |
|
Is Travis b0rked or something? It doesn't seem to have even put this PR on its queue. |
|
Yeah, it's in the queue, but no nodes are being fired up. However, given that this is a relatively simple change, I'm just going to go ahead and merge. If there are any issues, Jenkins will pick them up. |
astropy.constants doesn't import in python3.3
|
+1 |
astropy.constants doesn't import in python3.3
… of #603 in that, because Quantity does not define a __new__ method super().__new__ in Constant.__new__ resolves directly to object.__new__() which is now strict in taking no arguments (would have caught this sooner using 'python -Wd'). This fix is fine because Constant.__init__ also bypasses Quantity.__init__ so there's no need to pass any of the __init__ arguments to the super()'s __new__ call.
… of #603 in that, because Quantity does not define a __new__ method super().__new__ in Constant.__new__ resolves directly to object.__new__() which is now strict in taking no arguments (would have caught this sooner using 'python -Wd'). This fix is fine because Constant.__init__ also bypasses Quantity.__init__ so there's no need to pass any of the __init__ arguments to the super()'s __new__ call.
astropy.constants doesn't import in python3.3
… of astropy#603 in that, because Quantity does not define a __new__ method super().__new__ in Constant.__new__ resolves directly to object.__new__() which is now strict in taking no arguments (would have caught this sooner using 'python -Wd'). This fix is fine because Constant.__init__ also bypasses Quantity.__init__ so there's no need to pass any of the __init__ arguments to the super()'s __new__ call.
Remove me from coordinates and utils maintainer role
In the 0.2b1 release, astropy.constants doesn't import in python 3.3,
although they do in python 3.2. This was also the case for pre-beta
versions of 0.2.
In python3.2, this works correctly.
This problem affects importing pretty much all of the other sub-packages, many of
which do a
from .core import *
resulting in
from ..constants import cgs
This is the current fink version of python33 (3.3.0-3), if that is any help.