[pycrypto] Pycrypto working with python 3.0 or 3.1
grail69 at hotmail.com
Tue Mar 16 23:18:12 CST 2010
Ok ... so had a look at this and the only change to make is in the __init__.py under level1
change: import level2
to: from . import level2
All works good ;)
> Date: Sun, 14 Mar 2010 16:11:58 +0100
> From: christoph.tapler at gmx.net
> To: pycrypto at lists.dlitz.net
> Subject: Re: [pycrypto] Pycrypto working with python 3.0 or 3.1
> Hi Grail,
> I have tried to fix the test suite, but I came across a problem,
> which seems to be specific to Python 3. It seems to me that Python 3
> behaves differently in terms of hierarchical imports.
> To demonstrate this difference, I have attached a small example (just
> start level_test.py in Python 2 / 3). If you execute this example in
> Python 2, everything works fine. However, in Python 3, the second
> (nested) import fails. I don't understand why.
> Do you (or anybody else of course ;-) ) have an idea how this issue
> could be resolved? Btw, this pattern appears several times in the test
> Kind Regards,
Browse profiles for FREE! Meet local singles online.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pycrypto