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
jcea has quit [Ping timeout: 268 seconds]
jcea has joined #pypy
jacob22_ has quit [Read error: Connection reset by peer]
jacob22_ has joined #pypy
jcea has quit [Ping timeout: 268 seconds]
jacob22_ has quit [Read error: Connection reset by peer]
jacob22_ has joined #pypy
ronan has quit [Ping timeout: 272 seconds]
ronan has joined #pypy
proteusguy has quit [Ping timeout: 268 seconds]
proteusguy has joined #pypy
otisolsen70 has joined #pypy
jacob22_ has quit [Read error: Connection reset by peer]
jacob22_ has joined #pypy
ronan_ has joined #pypy
ronan has quit [Ping timeout: 260 seconds]
oberstet has joined #pypy
ronan_ has quit [Ping timeout: 272 seconds]
otisolsen70 has quit [Quit: Leaving]
jcea has joined #pypy
lritter has joined #pypy
<nulano> mattip, I'm looking at some of the py3.7 failures, and I think a4bc70b4f004 breaks lib-python.3.test.test_winreg.test_changing_value
<nulano> Did that actually improve anything with the issue (#3342)?
<mattip> no it did not
<mattip> I never really figured out what was going on there
<nulano> can I revert it in the py3.7-winreg branch then?
<mattip> sure, whatever works
<mattip> the same for any other dubious changes I made, feel free to revert/rework/delete them
ronan_ has joined #pypy
phoe6 has joined #pypy
ronan_ has quit [Ping timeout: 258 seconds]
lritter has quit [Quit: Leaving]
asomeone has joined #pypy
_stink_ has joined #pypy
asomeone has quit [Quit: Connection closed]
<_stink_> hi, i'm new to cffy. i have a python class, and inside one of the methods i call a C function that registers a python callback. this works fine if the python callback is a plain old function and *not* an instance method. but inside the callback, i want access to the class instance.
<_stink_> i have tried using an instance method as the callback, but the arguments don't include self when called. i have tried using a function defined inside the method that registers the callback, hoping that self will stay in scope when the callback is called, but that segfaults.
<_stink_> i have tried using new_handle()/from_handle() to pass the instance through to the callback function, but that segfaults.
<_stink_> any advice on what to try next?
<_stink_> *cffy -> cffi of course.
<cfbolz> _stink_: you need to keep the thing that you pass to new_handle alive on the python side
<cfbolz> (as in, there needs to be a reference to that instance somewhere)
<_stink_> aha!
<_stink_> thank you i'll try a few things
<cfbolz> :-)
<_stink_> oh yes, now i am seeing "from_handle() detected that ... points to garbage"
<cfbolz> cool (didn't even know about that feature)
Taggnostr has quit [Quit: Switching to single player mode.]
Taggnostr has joined #pypy
jcea has quit [Ping timeout: 260 seconds]
Lightsword has joined #pypy
Lightsword has quit [Client Quit]
Lightsword has joined #pypy
whitewolf has quit [Remote host closed the connection]
[Arfrever] has quit [Quit: leaving]
[Arfrever] has joined #pypy
whitewolf has joined #pypy
[Arfrever] is now known as Guest35338