cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
_whitelogger has quit [Remote host closed the connection]
_whitelogger_ has joined #pypy
jacob22 has joined #pypy
jacob22 has quit [Read error: No route to host]
jacob22 has joined #pypy
sdktda has joined #pypy
jcea has quit [Ping timeout: 256 seconds]
svanheulen has joined #pypy
jcea has joined #pypy
<svanheulen>
i'm looking for a way to compile a windows dll with cffi using mingwi on linux. i have no problem manually compiling with mingw once i have the c file, but i'm not sure how to make cffi emit a windows c file when running on linux. is there any way to do this?
jcea has quit [Ping timeout: 246 seconds]
<svanheulen>
looks like pycparser is choking on my cdef because i use windows types. maybe it will work if i convert those to standard types?
sdktda has quit [Quit: Leaving]
<svanheulen>
that actually seems to do the trick, I just get a lot of warnings now about mismatched types, but that's easy to fix
<svanheulen>
doesn't seem to complain about using WINAPI though. not sure if it's just ignoring that or if it actually defines as __stdcall.
MithrasX has quit [Ping timeout: 250 seconds]
MithrasX has joined #pypy
jcea has joined #pypy
<svanheulen>
looks like i can also just set sys.platform to 'win32' and that makes cffi enable windows types
jvesely has quit [Quit: jvesely]
<svanheulen>
wait, no, that doesn't work. the old c file was just never deleted.
zmt00 has joined #pypy
<antocuni>
whooo, I just realized that numpy.ndarray(... dtype=object) does NOT implement tp_traverse, meaning that depending on what you put inside, you might generate a memory leak
<antocuni>
actually, I don't think the numpy is responsible for the memory leak I am debugging. It's just that I wrote a small cpyext extension to call tp_traverse on an object, and way trying to use a numpy array to test it
<antocuni>
because I assumed it did implement tp_traverse :)
adamholmberg has quit [Remote host closed the connection]
fryguybob has joined #pypy
adamholmberg has joined #pypy
Smigwell has quit [Ping timeout: 264 seconds]
<ronan>
I'm trying to understand why sys.exc_info() sometimes doesn't get cleared after a RecursionError