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
gef has quit [Ping timeout: 252 seconds]
gef has joined #pypy
jcea has quit [Ping timeout: 245 seconds]
gef has quit [Ping timeout: 240 seconds]
tos9 has quit [Quit: Lost terminal]
gef has joined #pypy
gef has quit [Ping timeout: 252 seconds]
<mjacob>
arigato: good morning :)
<mjacob>
is there a way with CFFI and code like https://bpa.st/DSTA , to exclude the possibility that both free_resources_on_...() functions are called?
gef has joined #pypy
<mjacob>
considering that KeyboardInterrupt could happen at any time
<mjacob>
could CFFI raise anything after the free_resources_on_success() C function returned?
gef has quit [Ping timeout: 246 seconds]
gef has joined #pypy
otisolsen70 has joined #pypy
gef has quit [Ping timeout: 265 seconds]
tsaka_ has quit [Ping timeout: 240 seconds]
gef has joined #pypy
gef has quit [Ping timeout: 240 seconds]
pmp-p has quit [Ping timeout: 250 seconds]
pmp-p has joined #pypy
gef has joined #pypy
xcm has quit [Remote host closed the connection]
xcm_ has joined #pypy
xcm_ is now known as xcm
pmp-p has quit [Read error: Connection reset by peer]
gef_ has joined #pypy
gef has quit [Ping timeout: 260 seconds]
glyph has quit [Read error: Connection reset by peer]
glyph has joined #pypy
pmp-p has joined #pypy
gef_ has quit [Ping timeout: 268 seconds]
gef has joined #pypy
otisolsen70 has quit [Quit: Leaving]
gef has quit [Ping timeout: 268 seconds]
tsaka_ has joined #pypy
<arigato>
mjacob: you are probably safe, but in theory a MemoryError can occur anywhere
<cfbolz>
arigato: hey! michael leuschel asked whether we could put dotviewer on pypi so he can pip install it. ok for you? I would try to do it
<arigato>
sure
<cfbolz>
I'll try to make it mixed python3 compatible as well
<cfbolz>
(almost there)
<arigato>
shrug, I see the point
<cfbolz>
arigato: yeah, people really don't have a python2 installed any more
<cfbolz>
arigato: something else, did you see that nowadays terminals really have clickable link support? finally catching up with your hack :-)
<cfbolz>
also image support
tsaka_ has quit [Quit: Konversation terminated!]
<arigato>
heh
<cfbolz>
now I want a working pytest plugin like yours ;-)
<arigato>
I don't think I've used the image support since forever :-)
<cfbolz>
if you are ever in a jitty mood, maybe we can brainstorm ideas
<cfbolz>
it's building an infinite amount of bridges, that immediately fail
<cfbolz>
it's worse than the usual bridge chaining
dstufft has quit [Excess Flood]
dstufft has joined #pypy
gef has quit [Ping timeout: 246 seconds]
tos9 has joined #pypy
rubdos has quit [Quit: WeeChat 3.0.1]
gef has joined #pypy
gef has quit [Ping timeout: 240 seconds]
Dejan has joined #pypy
Dejan has quit [Changing host]
Dejan has joined #pypy
rubdos has joined #pypy
gef has joined #pypy
<mjacob>
arigato: or KeyboardInterrupt, i think. although not probably, the results of a double free could be bad, so unless something could be done from the cffi side, i'm going to rewrite the code like this, although it results in boilerplate duplication: https://bpa.st/GLMA
otisolsen70 has joined #pypy
jcea has joined #pypy
<arigato>
mjacob: this pattern looks exactly like "try: .. finally: lib.free_stuff()", no?
<arigato>
ah no, you're calling different functions in the success and in the exceptional case
<arigato>
I'm not sure I see how it is more or less boilerpalty than your previous paste, though
jcea has quit [Read error: Connection reset by peer]
jcea has joined #pypy
otisolsen70_ has joined #pypy
otisolsen70_ has quit [Remote host closed the connection]
otisolsen70 has quit [Ping timeout: 252 seconds]
marmoute_ has joined #pypy
astrojl_matrix has quit [Ping timeout: 276 seconds]