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
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
Dejan has quit [Quit: Leaving]
lritter has quit [Quit: Leaving]
jcea has quit [Ping timeout: 260 seconds]
Mortir has quit [Ping timeout: 260 seconds]
mgedmin has quit [Quit: ZNC - https://wiki.znc.in/ZNC]
mgedmin has joined #pypy
asmeurer__ has joined #pypy
tos9 has quit [Ping timeout: 264 seconds]
asmeurer__ has quit [Quit: asmeurer__]
jacob22 has quit [Quit: Konversation terminated!]
tos9 has joined #pypy
oberstet has joined #pypy
<antocuni> and now I get this while trying to push :( http://paste.openstack.org/show/800623/
<antocuni> ah, it works now
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7371 [antocuni: force build, hpy-error-value]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7371 [antocuni: force build, hpy-error-value]
jcea has joined #pypy
Mortir has joined #pypy
otisolsen70 has joined #pypy
lritter has joined #pypy
b`exarkun` is now known as exarkun
jacob22 has joined #pypy
tos9 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
tos9 has joined #pypy
camelCaser has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
Mortir has left #pypy [#pypy]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7372 [mattip: force build, win64-cpyext]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-64/builds/40 [mattip: force build, win64-cpyext]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-64/builds/119 [mattip: force build, win64-cpyext]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8468 [mattip: force build, win64-cpyext]
jcea has quit [Quit: jcea]
jcea has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-64/builds/119 [mattip: force build, win64-cpyext]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8468 [mattip: force build, win64-cpyext]
oberstet has quit [Quit: Leaving]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7372 [mattip: force build, win64-cpyext]
<Hodgestar> I created https://foss.heptapod.net/pypy/pypy/-/merge_requests/779 because I wanted to fix a tiny bug in cpyext. I wrote a test (that I expect to fail -- the fix is still commented out in the branch) but I'm not sure how to trigger a test run on a buildbot.
<mattip> http://buildbot.pypy.org/builders -> Force Selected Builds, choose a bot or two (own-linux-x86-64 and/or pypy-c-jit-linux-x86-64 are good places to start)
<mattip> then fill in Your name: and Branch: and click Force Build
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-64/builds/40 [mattip: force build, win64-cpyext]
<Hodgestar> mattip: Woot. Thanks!
<mattip> you can also go directly to the builder page and force it
<mattip> no need to fill in revision, repository, project
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7373 [hodgestar: force build, cpyext-pylong-assize-t-fix-exc-type]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-64/builds/41 [mattip: force build, default]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-64/builds/120 [mattip: force build, default]
<Hodgestar> antocuni: How can I retrieve exception classes like "FileExistsError" that are not on the space from the space (e.g. I can get StopIteration with space.w_StopIteration, but there is no space.w_FileExistsError).
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-64/builds/120 [mattip: force build, default]
<pjenvey> Hodgestar: IIRC you can getattr it from the exceptions module (or wherever it lives), e.g. https://foss.heptapod.net/pypy/pypy/-/blob/branch/default/pypy/module/_rawffi/interp_rawffi.py#L317
<antocuni> Hodgestar: yes, either what pjenvey says, or you can probably fish it directly from pypy.module.exceptions.interp_exceptions
<Hodgestar> pjenvey, antocuni: Thanks!
<antocuni> Hodgestar: wait... pypy.module.exceptions.interp_exceptions.W_StopIteration is "obviously" different that space.w_StopIteration
<Hodgestar> I have been playing with space.getbuiltinmodule and space.getattr, but in tests they will happily return fakes for pretty much any value (e.g. space.getbuiltinmodule("xxx") returns a W_MyMod and space.getattr(w_mod, space.newtext("meep")) likewise returns a W_MyObject.
<antocuni> weird
<antocuni> let me look
<antocuni> Hodgestar: in which context do you get W_MyMod?
<antocuni> ah, it's for test_ztranslation
<antocuni> you are using the fake objspace
<Hodgestar> Yep.
<antocuni> but in normal test, you get a "real" objspace where space.getbuiltinmodules work
<antocuni> so you can just use space.getbuiltinmodule('__exceptions__')
<antocuni> forget about the fake objspace, unless you are trying to fix test_ztranslation (but I don't think you are there yet, are you?)
<Hodgestar> I am currently trying to fix test_ztranslation.
<Hodgestar> But for now I am just trying to get test_ztranslation to load the new ctx.
<antocuni> do the other tests pass?
<bbot2> Success: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7373 [hodgestar: force build, cpyext-pylong-assize-t-fix-exc-type]
<antocuni> Hodgestar: ah I see, it's "just" a matter of making the fake objspace smarter
<antocuni> look at fake/objspace.py:setup()
<antocuni> it creates a fake attribute for all exceptions inside ObjSpace.ExceptionTable
<antocuni> however, these are not all the exceptions; actually, I'm not even sure what ObjSpace.ExceptionTable does at all :)
<Hodgestar> I saw a bit earlier, and yes indeed those are only the space.w_XXX type exceptions.
<antocuni> I don't think so
<Hodgestar> Should it have all exceptions in the real space?
<antocuni> e.g. space.w_StopAsyncIteration exists, but it's not listed in ObjSpace.ExceptionTable
<antocuni> I think those w_*Error attributes are added by ObjSpace.export_builtin_exceptions (in baseobjspaspace.py)
<antocuni> so, you can just do the same in the fakeobjspace
<antocuni> you can e.g. add all names which comes from pypy.module.exceptions.moduledef.Module.interpleveldefs.keys()
<Hodgestar> Is this related to the register_proxyable stuff for exceptions in pypy/moduledef.py?
* Hodgestar looks at export_builtin_exceptions.
<antocuni> I don't think so, register_proxyable seems related to "transparent proxies", which I'm not even sure they are still a thing nowadays
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-64/builds/41 [mattip: force build, default]
jcea has quit [Quit: jcea]
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy
<Hodgestar> Woot. Tests are passing for https://foss.heptapod.net/pypy/pypy/-/merge_requests/778.
jcea has quit [Quit: jcea]
jcea has joined #pypy
<antocuni> horray
jcea has quit [Client Quit]
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
otisolsen70 has quit [Quit: Leaving]
jcea has quit [Client Quit]
jcea has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
igitoor has quit [Ping timeout: 260 seconds]
igitoor has joined #pypy
jcea has quit [Client Quit]
igitoor has joined #pypy
igitoor has quit [Changing host]
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy