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
shunning has quit [Remote host closed the connection]
agates[m] has quit [*.net *.split]
awygle has quit [*.net *.split]
agates[m] has joined #pypy
awygle has joined #pypy
xtarget has quit [Remote host closed the connection]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
_whitelogger has joined #pypy
<mattip> what is stored in the rpython/_cache? IT somehow is not rebuilt correctly for the changed cpyext unicode object,
<mattip> should we just rm it for each test run?
ionelmc has quit [Quit: Connection closed for inactivity]
<kenaan> mattip buildbot 709f8fb564ac /: add a dockerfile to run a centos6-based x64 buildslave
<mattip> now to add the 'patchelf --set-rpath "\$ORIGIN/../lib' from portable-pypy, create a lib dir, and put all the dependent SOs there
<mattip> via a '--make-portable' flag in package.py, that will default to True if the host OS is centos6
_whitelogger has joined #pypy
dddddd has quit [Read error: Connection reset by peer]
jvesely has quit [Quit: jvesely]
_whitelogger has joined #pypy
tsaka_ has joined #pypy
<arigato> OK now I'm impressed by google:
<arigato> I searched "how do I configure html href name links so that the page scrolls at the right place"
<arigato> the first hit is "offsetting an html anchor to adjust for fixed header - Stack Overflow"
<arigato> which is exactly what I was looking for
<mattip> :)
<arigato> of course this page's title and probably content doesn't really have the words I typed
antocuni has joined #pypy
Guest90013 has quit [Ping timeout: 268 seconds]
xtarget has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
<kenaan> mattip default 28382af84334 /lib_pypy/_curses_build.py: backport ncurses changes from portable-pypy
<tos9> arigato: you type full questions into google?
<tos9> maybe I should try that again, I know that's what "they want"
oberstet has quit [Ping timeout: 250 seconds]
<kenaan> mattip buildbot 968866aaeff1 /docker/Dockerfile: update docker run for --user
lritter has joined #pypy
oberstet has joined #pypy
jvesely has joined #pypy
xtarget_ has joined #pypy
xtarget_ has quit [Client Quit]
xtarget has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Rhy0lite has joined #pypy
jacob22_ has quit [Ping timeout: 268 seconds]
tsaka__ has joined #pypy
tsaka_ has quit [Ping timeout: 276 seconds]
xtarget has joined #pypy
xtarget has quit [Client Quit]
<arigato> tos9: usually not, but here I did because I didn't know exactly how to phrase my problem---it seems to have worked in this case
jvesely has quit [Quit: jvesely]
phoe62 has quit [Quit: The Lounge - https://thelounge.github.io]
<tos9> ah cool
* arigato implements _PySet_Next
<mattip> arigato: cool, thanks, I was just looking at starting it so go ahead
<mattip> it seems to steal a reference to the returned entry
<mattip> and I think we should set hash[0] = -1
<mattip> would you like an implementation, without a test?
<arigato> yes please
<arigato> you mean that it returns a borrowed result (just like PyDict_Next)
<mattip> +!
<mattip> +1
<arigato> I just started to copy what's done for PyDict_Next but if you already did, then sure
<arigato> I also have a test
* mattip pushed a branch
<kenaan> mattip _PySet_NextEntry 386490448614 /pypy/module/cpyext/setobject.py: start to implement _PySet_NextEntry
<mattip> as always, feel free to fix/start over
<arigato> right :-) same as what I was thinking
<arigato> thanks
<kenaan> arigo _PySet_NextEntry 4b97719a1d45 /pypy/module/cpyext/: in-progress
dddddd has joined #pypy
<mattip> ronan: is there a pastebin of the way to cause this to happen locally?
jvesely has joined #pypy
jcea has joined #pypy
AdamTer has joined #pypy
antocuni has joined #pypy
jvesely has quit [Quit: jvesely]
jvesely has joined #pypy
lastmikoi has left #pypy [#pypy]
xtarget has joined #pypy
YannickJadoul has joined #pypy
xtarget has quit [Client Quit]
AdamTer has quit [Remote host closed the connection]
AdamTer has joined #pypy
ekaologik has joined #pypy
ekaologik has quit [Ping timeout: 265 seconds]
<mattip> ronan: thanks
<arigato> mattip: done!
ekaologik has joined #pypy
<kenaan> arigo default 4748c02be810 /pypy/module/cpyext/: Add _PySet_Next{,Entry}. Based on the _PySet_NextEntry branch but for pypy2
<kenaan> arigo _PySet_NextEntry c3a4841ed936 /: abandon this py3.6-based branch, done in default in 4748c02be810
<mattip> arigato: that was too simple. If you want a challenge, find out why the gist ronan pasted hangs :)
<arigato> or try to merge default into py3.6... :-/
<mattip> heh
ekaologik has quit [Ping timeout: 276 seconds]
<ronan> My new favourite public CPython API: https://docs.python.org/3/c-api/reflection.html#c.PyEval_GetFuncDesc
<mattip> arigato: I can do the merge
<mattip> ronan: it returns a const char *, what is the lifetime of that?
<ronan> mattip: it's a static constant
<ronan> (I think)
<ronan> C string literals are static constants, right?
ekaologik has joined #pypy
Ai9zO5AP has quit [Quit: WeeChat 2.5]
Ai9zO5AP has joined #pypy
antocuni has quit [Ping timeout: 265 seconds]
<mattip> yes, my mistake
<arigato> ronan: makes sense! (maybe)
<arigato> about PyEval_GetFuncDesc()
* arigato looks at improving the error message for issue #3109
<kenaan> rlamy py3.6 66ff7d1e3593 /pypy/interpreter/: Fix PyFrame._guess_function_name_parens()
<kenaan> mattip py3.6 87d2c3bfeef2 /: merge default into py3.6
<kenaan> mattip py3.6 33fe0dcb31b8 /pypy/interpreter/: merge heads
<kenaan> rlamy py3.7 4a29e3fa9b40 /pypy/: Merged in Yannick_Jadoul/pypy/py3.7-bpo-31333 (pull request #675) bpo-31333: Adding built-in module _abc
<kenaan> Yannick_Jadoul py3.7-bpo-31333 1afc6d0f0699 /pypy/module/_abc/: Adding built-in module _abc
<kenaan> Yannick_Jadoul py3.7-bpo-31333 4ad607fdca5d /pypy/: Not importing _weakrefset anymore to implement _abc module, and added '_abc' to essential_modules ...
<kenaan> Yannick_Jadoul py3.7-bpo-31333 8c14c8098e5a /pypy/module/_abc/app_abc.py: Fixing _abc._get_dump to return sets, rather than the new SimpleWeakSet wrapper
<kenaan> Yannick_Jadoul py3.7-bpo-31333 1e2d3e37d725 /pypy/module/_abc/: Added tests and fixed _reset_registry and _reset_caches
<kenaan> Yannick_Jadoul py3.7-bpo-31333 cf9fa90f1848 /pypy/config/pypyoption.py: Moving _abc from essential_modules to default_modules
<cfbolz> YannickJadoul: if you want, you could have commit rights now. Then you could work on a branch in the main repo and still ask us for reviews
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7782 [ronan: force build, py3.7]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2161 [ronan: force build, py3.7]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/4915 [ronan: force build, py3.7]
<arigato> cfbolz: would you agree with this new error message?:
<arigato> >>>> class A([]): pass
<arigato> File "<inline>", line 1 in <module>
<arigato> class A([]): pass
<arigato> Traceback (application-level):
<arigato> TypeError: metaclass found to be 'list', but calling <type 'list'> with args (name, bases, dict) raised 'list() takes at most 1 argument (3 given)'
<cfbolz> arigato: nice!
<YannickJadoul> cfbolz: Oh, nice :)
<YannickJadoul> I don't really mind either way, but you all prefer that workflow?
<cfbolz> arigato: maybe we can even use the real name and the real bases? The dict is impractical of course
<arigato> ah yes
<cfbolz> YannickJadoul: the PyPy approach is indeed to all work in the main repo
<arigato> cfbolz: I tried to use the hack of only changing the error message if the current exception is, of course, a TypeError, but also if it doesn't have any traceback attached so far
<cfbolz> Right
<arigato> does it make any sense? and would it be useful in more cases?
<YannickJadoul> cfbolz: OK, will do :) And then just create PRs as usual, or ask in IRC/somewhere else?
<cfbolz> arigato: ah, no traceback is a nice extra idea. Yes, sounds sensible
<cfbolz> YannickJadoul: yes, just ask here, or open a pull request if you want
<ronan> YannickJadoul: also, that way you can kick buildbots on your branches
<cfbolz> Right
<arigato> OK cool
<cfbolz> YannickJadoul: what's your bit bucket user name?
<YannickJadoul> cfbolz: As you prefer; I don't mind. I tend to like writing up decisions I made and linking to the relevant CPython, but if that's just extra spam for you...
<YannickJadoul> It's Yannick_Jadoul
<YannickJadoul> (Very boringly :) )
<cfbolz> YannickJadoul: that can still go in the merge commits (where it will remain visible even after we have to leave bit bucket)
<YannickJadoul> cfbolz: Ah, yes, true. Though I don't make those if any of you would merge. But I'll remember to add them to the commit message myself, then
<arigato> YannickJadoul: fwiw, our style is to prefer slightly messy commit histories and the more comments in the messages the better, rather than cleaned-up histories where the original trials of the person doing it might be lost
<YannickJadoul> arigato: Ha, opposite to my habit of force-pushing the minor details that failed the CI on GitHub
<ronan> YannickJadoul: I like opening PRs for branches, that saves me having to remember the correct procedure for merging, and it's nice to have a GUI for the review
<YannickJadoul> But anyway, that's not possible with mercurial anyway
<cfbolz> YannickJadoul: Yay, welcome to being a PyPy committer!
<cfbolz> Keep up the good work!
<YannickJadoul> Hehe, thanks! :) I'll wear this badge with pride ;)
<mattip> antoniocuni added pypy/tool/release/smartstrip.py about two years ago. It uses objcopy. I am using it on libpypy.so produced by gcc8 on centos6
<mattip> it errors out, "not enough room for program headers, try linking with -N"
<mattip> anyone know what '-N' does?
<mattip> this happened on the keep-debug-symbols branch 005844269621
<arigato> '-N' is documented '...disable linking against shared libraries.'
<mattip> --no-keep-debug used strip instead which failed to strip but succeeded to build the package
<mattip> arigato: so it will link with the *.a libraries instead?
<arigato> no, it will probably explode completely
<mattip> I wonder why centos/gcc8 is linking differently
<arigato> the error message sounds a lot like "the author of objcopy didn't put efforts in covering all cases, and in your case it doesn't work, sorry"
<mattip> it happens when using strip as well, just the failure does not crash the packaging script
<kenaan> mattip buildbot c40bc42d1f79 /docker/Dockerfile: add more documentation around using docker
<arigato> it seems to be indeed a bug in patchelf
<arigato> I have no clue but maybe it's possible to upgrade patchelf to a version with the fix
tsaka__ has quit [Ping timeout: 268 seconds]
<mattip> ok, thanks
Rhy0lite has quit [Quit: Leaving]
YannickJadoul has quit [Quit: Leaving]
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
Guest90013 has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7782 [ronan: force build, py3.7]
AdamTer has quit [Remote host closed the connection]
lastmikoi has joined #pypy
mdash has quit [Quit: leaving]
<kenaan> cfbolz default 73f583091cbf /pypy/objspace/std/test/test_jsondict.py: test showing the problem of #3108
<kenaan> cfbolz default 86da6cb357f1 /pypy/module/_pypyjson/: fix #3108: the map based parser didn't deal with json dicts with repeated keys correctly
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2161 [ronan: force build, py3.7]
ssbr` has joined #pypy
<mattip> I smell a bug-fix release
Guest90013 has quit [Ping timeout: 264 seconds]
<mattip> with the unicode changes and pyc filename changes it will be pypy7.3
ekaologik has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
YannickJadoul has joined #pypy
<mattip> it seems using `patchelf --set-rpath` was at fault. I needed to strip the binary, and only after that set the rpath
* mattip off
mattip has left #pypy ["Leaving"]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/4915 [ronan: force build, py3.7]
Ai9zO5AP has quit [Ping timeout: 276 seconds]
jvesely has quit [Quit: jvesely]
mikroskeem has quit [Read error: Connection reset by peer]
mikroskeem has joined #pypy
Ai9zO5AP has joined #pypy
shunning has joined #pypy
jacob22_ has joined #pypy
<shunning> I wonder if this can lead to different JIT behavior
jvesely has joined #pypy
inhahe has quit [Ping timeout: 276 seconds]
inhahe has joined #pypy
shunning has quit [Remote host closed the connection]
kipras has joined #pypy
jacob22_ has quit [Ping timeout: 240 seconds]