diff options
Diffstat (limited to 'pipermail/pycrypto/2010q1/000204.html')
-rw-r--r-- | pipermail/pycrypto/2010q1/000204.html | 171 |
1 files changed, 171 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2010q1/000204.html b/pipermail/pycrypto/2010q1/000204.html new file mode 100644 index 0000000..7dba3e9 --- /dev/null +++ b/pipermail/pycrypto/2010q1/000204.html @@ -0,0 +1,171 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] Pycrypto working with python 3.0 or 3.1 + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20Pycrypto%20working%20with%20python%203.0%20or%203.1&In-Reply-To=20100315011040.GA1975%40rivest.dlitz.net"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000203.html"> + <LINK REL="Next" HREF="000205.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] Pycrypto working with python 3.0 or 3.1</H1> + <B>Christoph Tapler</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20Pycrypto%20working%20with%20python%203.0%20or%203.1&In-Reply-To=20100315011040.GA1975%40rivest.dlitz.net" + TITLE="[pycrypto] Pycrypto working with python 3.0 or 3.1">christoph.tapler at gmx.net + </A><BR> + <I>Mon Mar 15 14:41:05 CST 2010</I> + <P><UL> + <LI>Previous message: <A HREF="000203.html">[pycrypto] Pycrypto working with python 3.0 or 3.1 +</A></li> + <LI>Next message: <A HREF="000205.html">[pycrypto] Pycrypto working with python 3.0 or 3.1 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#204">[ date ]</a> + <a href="thread.html#204">[ thread ]</a> + <a href="subject.html#204">[ subject ]</a> + <a href="author.html#204">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Hi, + +I could find the relevant change documented in +<A HREF="http://docs.python.org/py3k/whatsnew/3.0.html">http://docs.python.org/py3k/whatsnew/3.0.html</A> , "Removed Syntax" section. +Using "from . import X" instead of "import X" should fix the issue. +I will try to adapt the Test Suite asap. + +Cheers, +Christoph + + +On 15.03.2010 02:10, Dwayne C. Litzenberger wrote: +><i> Are absolute imports standard in Python 3? +</I>><i> +</I>><i> <A HREF="http://www.python.org/dev/peps/pep-0328/">http://www.python.org/dev/peps/pep-0328/</A> +</I>><i> +</I>><i> On Sun, Mar 14, 2010 at 04:11:58PM +0100, Christoph Tapler wrote: +</I>>><i> Hi Grail, +</I>>><i> +</I>>><i> I have tried to fix the test suite, but I came across a problem, +</I>>><i> which seems to be specific to Python 3. It seems to me that Python 3 +</I>>><i> behaves differently in terms of hierarchical imports. +</I>>><i> +</I>>><i> To demonstrate this difference, I have attached a small example (just +</I>>><i> start level_test.py in Python 2 / 3). If you execute this example in +</I>>><i> Python 2, everything works fine. However, in Python 3, the second +</I>>><i> (nested) import fails. I don't understand why. +</I>>><i> +</I>>><i> Do you (or anybody else of course ;-) ) have an idea how this issue +</I>>><i> could be resolved? Btw, this pattern appears several times in the test +</I>>><i> suite. +</I>>><i> +</I>>><i> Kind Regards, +</I>>><i> Christoph +</I>>><i> +</I>>><i> On 04.03.2010 03:37, Grail Dane wrote: +</I>>>><i> Hi Christoph +</I>>>><i> +</I>>>><i> Good to see this is coming together for you, and as one of the users +</I>>>><i> mentions, +</I>>>><i> using the unified option is a general rule of thumb for patches / diffs. +</I>>>><i> +</I>>>><i> You are correct about the test suite as I have not had a chance to alter +</I>>>><i> the tests to Python 3 context. +</I>>>><i> +</I>>>><i> Cheers +</I>>>><i> Grail +</I>>>><i> +</I>>>><i> ------------------------------------------------------------------------ +</I>>>><i> Date: Wed, 3 Mar 2010 21:58:09 +0100 +</I>>>><i> From: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">christoph.tapler at gmx.net</A> +</I>>>><i> To: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>>>><i> Subject: Re: [pycrypto] Pycrypto working with python 3.0 or 3.1 +</I>>>><i> +</I>>>><i> Hi Grail, +</I>>>><i> +</I>>>><i> I have applied your patch on my Windows machine. Your AES encryption / +</I>>>><i> decryption seems to work well - In case +</I>>>><i> AZCkZ1wU5d0psrwlaoS5R4tz1dRL6rBBNzjIvK9NHSo= is the result ;-) +</I>>>><i> Moreover, I have tried the diff tool. Not sure if the output is usable +</I>>>><i> for you. Just +</I>>>><i> let me know if this format is okay or not. The patch contains a few +</I>>>><i> rather trivial +</I>>>><i> fixes for the Windows environment. With those fixes the build is successful. +</I>>>><i> However, the test suite doesn't build, needs adaptions as well (but I +</I>>>><i> think only +</I>>>><i> in Python). +</I>>>><i> +</I>>>><i> Cheers, +</I>>>><i> Christoph +</I>>>><i> +</I>>>><i> On 03.03.2010 03:48, Grail Dane wrote: +</I>>>><i> +</I>>>><i> OK ... OK ... OK - stop the presses +</I>>>><i> +</I>>>><i> Well, maybe not just yet, anyhoo, the attached patch allows the +</I>>>><i> source to compile +</I>>>><i> and run the attached script<woohoo> +</I>>>><i> +</I>>>><i> Cheers +</I>>>><i> Grail +</I>>>><i> +</I>>>><i> ------------------------------------------------------------------------ +</I>>>><i> Meet local singles online. Browse profiles for FREE! +</I>>>><i> <<A HREF="http://clk.atdmt.com/NMN/go/150855801/direct/01/">http://clk.atdmt.com/NMN/go/150855801/direct/01/</A>> +</I>>>><i> +</I>>>><i> +</I>>>><i> _______________________________________________ +</I>>>><i> pycrypto mailing list +</I>>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A><mailto:<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>> +</I>>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>>>><i> +</I>>>><i> +</I>>>><i> +</I>>>><i> +</I>>>><i> ------------------------------------------------------------------------ +</I>>>><i> Find out now. Link all your email accounts and social updates with +</I>>>><i> Hotmail.<<A HREF="http://windowslive.ninemsn.com.au/oneinbox?ocid=T162MSN05A0710G">http://windowslive.ninemsn.com.au/oneinbox?ocid=T162MSN05A0710G</A>> +</I>>>><i> +</I>>>><i> +</I>>>><i> +</I>>>><i> _______________________________________________ +</I>>>><i> pycrypto mailing list +</I>>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>>><i> +</I>><i> +</I>><i> +</I>>><i> _______________________________________________ +</I>>><i> pycrypto mailing list +</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>><i> +</I>><i> +</I> +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000203.html">[pycrypto] Pycrypto working with python 3.0 or 3.1 +</A></li> + <LI>Next message: <A HREF="000205.html">[pycrypto] Pycrypto working with python 3.0 or 3.1 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#204">[ date ]</a> + <a href="thread.html#204">[ thread ]</a> + <a href="subject.html#204">[ subject ]</a> + <a href="author.html#204">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">More information about the pycrypto +mailing list</a><br> +</body></html> |