[PyPy-issue] [issue601] Argument corruption with cpyext on Mac OS X?

Dan Villiom Podlaski Christiansen pypy-dev-issue at codespeak.net
Sun Dec 5 13:51:23 CET 2010


New submission from Dan Villiom Podlaski Christiansen <danchr at gmail.com>:

Building the attached C source as an extension module on Mac OS X will yield some surprising results:

>>>> import test
>>>> for x in xrange(3): print test.arglen1("abc")
1
1
1
>>>> for x in xrange(3): print test.arglen2("abc")
9778048
1
9778048
>>>> 

The only difference between arglen1 and arglen2 is that the latter specifies METH_KEYWORDS, 
otherwise, their implementation is the same.

----------
effort: ???
files: test.c
messages: 1950
nosy: danchr, pypy-issue
priority: bug
release: ???
status: unread
title: Argument corruption with cpyext on Mac OS X?

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue601>
_______________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: application/octet-stream
Size: 589 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20101205/41a2ed00/attachment.obj>


More information about the Pypy-issue mailing list