Message4602

Author kfitch42
Recipients fijal, kfitch42
Date 2009-04-28.02:02:41
SpamBayes Score 1.0491608e-14
Marked as misclassified No
Message-id <1240884162.94.0.214807055353.issue1328@psf.upfronthosting.co.za>
In-reply-to
Content
I wanted to play around with this, so I applied both patches. Then ran
it, and typed in your example ... it failed because it couldn't import
ctypes. I look again and realized that you didn't include ctypes itself
... so I copied it out of my CPython install (Python v2.5.2 from Ubuntu
8.04.2 x64) The ctypes/__init__.py mentions something about being
v1.0.3. At this point I get:
Jython 2.5b3+ (trunk:6266M, Apr 27 2009, 21:48:35) 
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.5.0_16
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kfitch/projects/jython/dist/Lib/ctypes/__init__.py", line
155, in <module>
    _check_size(py_object, "P")
  File "/home/kfitch/projects/jython/dist/Lib/ctypes/__init__.py", line
143, in _check_size
    actual, required = sizeof(typ), calcsize(typecode)
struct.error: bad char in struct format
>>> 

I seems that the "P" char is not understood by the struct implementation
in Jython (it works in my CPython).
History
Date User Action Args
2009-04-28 02:02:42kfitch42setmessageid: <1240884162.94.0.214807055353.issue1328@psf.upfronthosting.co.za>
2009-04-28 02:02:42kfitch42setrecipients: + kfitch42, fijal
2009-04-28 02:02:42kfitch42linkissue1328 messages
2009-04-28 02:02:41kfitch42create