summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2010q1/000180.html
diff options
context:
space:
mode:
Diffstat (limited to 'pipermail/pycrypto/2010q1/000180.html')
-rw-r--r--pipermail/pycrypto/2010q1/000180.html149
1 files changed, 149 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2010q1/000180.html b/pipermail/pycrypto/2010q1/000180.html
new file mode 100644
index 0000000..f614f78
--- /dev/null
+++ b/pipermail/pycrypto/2010q1/000180.html
@@ -0,0 +1,149 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [pycrypto] python crypto 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%20python%20crypto%20with%20python%203.0%20or%203.1&In-Reply-To=b7338e009e16d0bf54dc7a5c34558de6%40localhost">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000179.html">
+ <LINK REL="Next" HREF="000181.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[pycrypto] python crypto with python 3.0 or 3.1</H1>
+ <B>Grail Dane</B>
+ <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20python%20crypto%20with%20python%203.0%20or%203.1&In-Reply-To=b7338e009e16d0bf54dc7a5c34558de6%40localhost"
+ TITLE="[pycrypto] python crypto with python 3.0 or 3.1">grail69 at hotmail.com
+ </A><BR>
+ <I>Thu Jan 14 18:32:04 CST 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000179.html">[pycrypto] python crypto with python 3.0 or 3.1
+</A></li>
+ <LI>Next message: <A HREF="000181.html">[pycrypto] python crypto with python 3.0 or 3.1
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#180">[ date ]</a>
+ <a href="thread.html#180">[ thread ]</a>
+ <a href="subject.html#180">[ subject ]</a>
+ <a href="author.html#180">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>
+Hi
+Thanks for the speedy reply :)
+I am a little confused though as the doco for 3.1 says:
+PyVarObjectThis is an extension of PyObject that adds the ob_size field. This is only used for objects that have some notion of length. This type does not often appear in the Python/C API. It corresponds to the fields defined by the expansion of the PyObject_VAR_HEAD macro.This appears to be the same as what is written in the doco for 2.6.4 as well, which pycrypto seems to work with.
+Well i will keep looking to see what i can find out.
+CheersGrail
+&gt;<i> Date: Thu, 14 Jan 2010 10:07:36 +0100
+</I>&gt;<i> From: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">don at amberfisharts.com</A>
+</I>&gt;<i> To: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
+</I>&gt;<i> Subject: Re: [pycrypto] python crypto with python 3.0 or 3.1
+</I>&gt;<i>
+</I>&gt;<i> Hi,
+</I>&gt;<i>
+</I>&gt;<i> as far as I know there hasn't been a move to port pyCrypto to python 3.x
+</I>&gt;<i> so simply compiling against python 3.x is bound to fail!
+</I>&gt;<i> If you try to port yourself and during that effort ran into this compiler
+</I>&gt;<i> error then if you look at the documentation [1] or this blog post [2]
+</I>&gt;<i> (it's
+</I>&gt;<i> a bit outdated since the docs have been fixed in the meantime) you will
+</I>&gt;<i> see
+</I>&gt;<i> that the first few lines (besides other things) of a python extension type
+</I>&gt;<i> have
+</I>&gt;<i> changed from
+</I>&gt;<i>
+</I>&gt;<i> PyObject_HEAD_INIT(NULL)
+</I>&gt;<i> 0, /* ob_size */
+</I>&gt;<i> &quot;myTypeName&quot;, /* tp_name */
+</I>&gt;<i>
+</I>&gt;<i> to
+</I>&gt;<i>
+</I>&gt;<i> PyVarObject_HEAD_INIT(NULL, 0)
+</I>&gt;<i> &quot;myTypeName&quot;, /* tp_name */
+</I>&gt;<i>
+</I>&gt;<i> If I recall correctly, the ob_size has be moved to a different structure
+</I>&gt;<i> and no longer
+</I>&gt;<i> is a member of PyTypeObject.
+</I>&gt;<i> So to sum it up:
+</I>&gt;<i> * no porting effort exist so far, AFAIK
+</I>&gt;<i> * no, the error is not bogus
+</I>&gt;<i>
+</I>&gt;<i> sincerely yours
+</I>&gt;<i> //Lorenz
+</I>&gt;<i>
+</I>&gt;<i> [1] <A HREF="http://docs.python.org/dev/py3k/extending/newtypes.html">http://docs.python.org/dev/py3k/extending/newtypes.html</A>
+</I>&gt;<i> [2]
+</I>&gt;<i> <A HREF="http://rhodesmill.org/brandon/2008/porting-a-c-extension-module-to-python-30/">http://rhodesmill.org/brandon/2008/porting-a-c-extension-module-to-python-30/</A>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> On Thu, 14 Jan 2010 07:52:59 +0000, Grail Dane &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">grail69 at hotmail.com</A>&gt;
+</I>&gt;<i> wrote:
+</I>&gt;<i> &gt; Hi GuysI am new to the list but have recently run into this issue.Has
+</I>&gt;<i> &gt; there been any movement?Personally I am stuck when gcc tries to compile
+</I>&gt;<i> &gt; src/_fastmath.cwhich seems to die with an error about 'ob_size' member
+</I>&gt;<i> not
+</I>&gt;<i> &gt; existing :(This seems to be bogus as I traced back the struct's to
+</I>&gt;<i> include
+</I>&gt;<i> &gt; PyObject_VAR_HEADwhich does have this as member.Any further help on this
+</I>&gt;<i> &gt; would be appreciated ;)Cheers Grail&gt;On Fri, Dec 04, 2009 at 11:44:00AM
+</I>&gt;<i> &gt; +0100, Tobias Koeck wrote:&gt;&gt;Is it possible to run python crypto with
+</I>&gt;<i> python
+</I>&gt;<i> &gt; 3.0 or 3.1. If not is
+</I>&gt;<i> &gt;&gt;&gt;it planed to adjust?
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt;&gt;Sure, and it'll happen sooner if somebody volunteers to do it. :-)
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt;&gt;There will need to be be some strategy for Python 2.x compatibility, and
+</I>&gt;<i>
+</I>&gt;<i> &gt;&gt;the contributor(s) need to to meet the PyCrypto Code Submission
+</I>&gt;<i> &gt;&gt;Requirements:
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt;&gt;<A HREF="http://www.dlitz.net/software/pycrypto/submission-requirements/">http://www.dlitz.net/software/pycrypto/submission-requirements/</A>
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt;&gt;--
+</I>&gt;<i> &gt;&gt;Dwayne C. Litzenberger &lt;dlitz at dlitz.net&gt;
+</I>&gt;<i> &gt;&gt; Key-signing key - 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7
+</I>&gt;<i> &gt;&gt; Annual key (2009) - C805 1746 397B 0202 2758 2821 58E0 894B 81D2 582E
+</I>&gt;<i> &gt;&gt;
+</I>&gt;<i> &gt; _________________________________________________________________
+</I>&gt;<i> &gt; View photos of singles in your area! Browse profiles for FREE
+</I>&gt;<i> &gt; <A HREF="http://clk.atdmt.com/NMN/go/150855801/direct/01/">http://clk.atdmt.com/NMN/go/150855801/direct/01/</A>
+</I>&gt;<i> _______________________________________________
+</I>&gt;<i> pycrypto mailing list
+</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
+</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
+</I>
+_________________________________________________________________
+Shopping Trolley Mechanic If It Exists, You'll Find it on SEEK
+<A HREF="http://clk.atdmt.com/NMN/go/157639755/direct/01/">http://clk.atdmt.com/NMN/go/157639755/direct/01/</A>
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: <A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/34d3050a/attachment.htm">http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/34d3050a/attachment.htm</A>
+</PRE>
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000179.html">[pycrypto] python crypto with python 3.0 or 3.1
+</A></li>
+ <LI>Next message: <A HREF="000181.html">[pycrypto] python crypto with python 3.0 or 3.1
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#180">[ date ]</a>
+ <a href="thread.html#180">[ thread ]</a>
+ <a href="subject.html#180">[ subject ]</a>
+ <a href="author.html#180">[ 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>