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
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
samth has quit [Ping timeout: 265 seconds]
phlebas has quit [Ping timeout: 260 seconds]
cratuki has quit [Ping timeout: 260 seconds]
cratuki has joined #pypy
jeroud_ has quit [Ping timeout: 240 seconds]
jeroud_ has joined #pypy
samth has joined #pypy
phlebas has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
jcea has quit [Quit: jcea]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
marky1991 has quit [Ping timeout: 246 seconds]
runciter_ has joined #pypy
epony has quit [Ping timeout: 258 seconds]
runciter has quit [Ping timeout: 260 seconds]
runciter_ is now known as runciter
_whitelogger has joined #pypy
dddddd has quit [Remote host closed the connection]
otisolsen70 has joined #pypy
otisolsen70 has quit [Remote host closed the connection]
andi- has quit [Ping timeout: 260 seconds]
<mattip> benchmarks ran, there was some problem uploading them to the server :(
jeroud_ has left #pypy [#pypy]
jeroud has joined #pypy
thrnciar has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
mattip_ has joined #pypy
mattip has quit [Ping timeout: 256 seconds]
mattip_ is now known as mattip
<mattip> anyone have thoughts on this PyPy failure: int(a) raises an error but a.__int__() works
<mattip> where a is a numpy scalar
andi- has joined #pypy
<ronan> mattip: well, the exception seems to come from complex.__int__(), but I don't understand how we end up there
jcea has joined #pypy
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
lritter has joined #pypy
<arigo> mattip: try to use __pypy__.lookup_special(obj, "__int__"), to check if a.__int__() is really the same as the interp-level lookup of "__int__"
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
epony has joined #pypy
<ronan> mattip: so it's a pypy bug, I guess: calling int() on a subclass of complex goes directly to W_ComplexObject.int(), which doesn't check for overridden __int__
inhahe has quit []
inhahe has joined #pypy
<ronan> I'm wondering if the best fix is to do like in W_FloatObject.int(), or to kill W_ComplexObject.int() and implement complex.__init__ instead
todda7 has joined #pypy
<mattip> ronan: thanks. did you mean complex.__int__ ?
<ronan> oops, yes
<mattip> Would it be enough to change `def int` to `def descr_int` in complexobject.py ?
<mattip> >>>> float(np.complex128(3)) works
Rhy0lite has joined #pypy
<ronan> yes
<ronan> I'm trying it now
<mattip> ah, thanks. On default?
<mattip> adding a subclass test passes untranslated even without the change
<mattip> unless I messed up the test
<ronan> mattip: well, I guess you did. Everything is as expected for me.
<ronan> fixed!
<mattip> +1
marky1991 has quit [Ping timeout: 260 seconds]
dje_ has joined #pypy
Rhy0lite has quit [Ping timeout: 260 seconds]
<mattip> ronan: do you want to merge that into py3.6, py3.7?
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
marky1991 has joined #pypy
<ronan> mattip: yes, doing it now
<mattip> cool
marky1991 has quit [Ping timeout: 260 seconds]
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
<phlebas> how does pypy treat python's syntax error tests? especially those that check that the caret is at a specific location in the source? some of these locations seem ... not ideal. do you adhere strictly to cpython's tests there?
dddddd has joined #pypy
<cfbolz> phlebas: no
<phlebas> ok :-)
<cfbolz> We adapt the positions
<phlebas> I was afraid since they have tests for it, that someone actually wants some of those ... less than ideal ... positions
<cfbolz> phlebas: do you have a plan to deal with the new parser yet?
<phlebas> we were considering writing a backend to generate Java code for us. looked doable when I checked
<Dejan> phlebas, there is a GraalVM project that implements Python
<Dejan> maybe that could be of use to you
<phlebas> Dejan: yes, that's what i'm working on
<Dejan> ahhh :)
<phlebas> :)
<Dejan> omg you work on Wargus too
<Dejan> I used to play Stratagus very, very long ago
<Dejan> the reference game the one that is somewhat similar to StarCraft
<Dejan> I do not play games anymore :) just chess lol
<cfbolz> phlebas: cool, we would kind of have to do the same
<phlebas> Dejan: i also don't play it much, just work on it :D
<phlebas> cfbolz: it's unfortunate that I didn't know it would come about last year, because we spent some time to rewrite our parser early last year ;)
<cfbolz> phlebas: :-(
Dejan has quit [Ping timeout: 246 seconds]
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
thrnciar has quit [Ping timeout: 246 seconds]
BPL has joined #pypy
dje_ has quit [Quit: Leaving]
Rhy0lite has joined #pypy
tos9 has quit [Read error: Connection reset by peer]
tos9 has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
Dejan has joined #pypy
Dejan has quit [Changing host]
Dejan has joined #pypy
kirma has quit [Read error: Connection reset by peer]
thrnciar has joined #pypy
xcm has quit [Ping timeout: 246 seconds]
marky1991 has joined #pypy
xcm has joined #pypy
xcm has quit [Ping timeout: 246 seconds]
cratuki has left #pypy [#pypy]
xcm has joined #pypy
todda7 has quit [Ping timeout: 258 seconds]
thrnciar has quit [Ping timeout: 265 seconds]
thrnciar has joined #pypy
xcm has quit [Ping timeout: 246 seconds]
todda7 has joined #pypy
xcm has joined #pypy
kirma has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has joined #pypy
marky1991 has quit [Changing host]
tos9 has quit [Read error: Connection reset by peer]
tos9 has joined #pypy
todda7 has quit [Ping timeout: 256 seconds]
tos9 has quit [Ping timeout: 240 seconds]
tos9 has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
thrnciar has quit [Ping timeout: 256 seconds]
Rhy0lite has quit [Quit: This computer has gone to sleep]
lritter has quit [Quit: Leaving]
Rhy0lite has joined #pypy
Rhy0lite has quit [Client Quit]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy