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 [Ping timeout: 252 seconds]
CrazyPython has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
jcea has quit [Quit: jcea]
tos9_ has joined #pypy
tos9 has quit [Ping timeout: 252 seconds]
tos9_ is now known as tos9
gracinet has quit [Ping timeout: 276 seconds]
speeder39_ has quit [Quit: Connection closed for inactivity]
dddddd has quit [Remote host closed the connection]
lritter has joined #pypy
forgottenone has joined #pypy
jvesely has quit [Quit: jvesely]
* arigato implements issue #3092
<kenaan> arigo py3.6 234d0560480e /pypy/module/cpyext/: issue #3092 PyObject_GenericGetDict, PyObject_GenericSetDict
<kenaan> arigo cffi/cffi 32b6ed4cb029 /: Add a warning when we use in cdef() a global variable without also specifying a storage class (extern or static)
dddddd has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
antocuni has joined #pypy
forgottenone has quit [Ping timeout: 240 seconds]
<kenaan> arigo fix-descrmismatch-crash 8c25c3e5ab7d /pypy/: frozenset.__init__() does nothing on CPython, and can be called with random arguments.
jacob22 has joined #pypy
<kenaan> arigo fix-descrmismatch-crash 9acddd120236 /pypy/interpreter/: Make a new helper method for the common code, and move there the logic that should safely fetch the...
forgottenone has joined #pypy
<kenaan> arigo fix-descrmismatch-crash 78855fca6aa9 /pypy/: Improve the error message by using the class name 'set-or-frozenset'
<arigato> cfbolz, mattip: I've found a better way to fix the name 'internal subclass of W_Xyz' than to go ahead and change all interp*2app(), which is probably wrong in general
<kenaan> arigo fix-descrmismatch-crash c13fae180ec6 /pypy/objspace/std/: fix the error message also for W_AbstractBytesObject
<kenaan> arigo fix-descrmismatch-crash cc73504e9f94 /pypy/module/_weakref/: same fix for weakref-or-proxy
<kenaan> arigo fix-descrmismatch-crash 56cde2db6b50 /pypy/module/cStringIO/: Same fix for cStringIO
<kenaan> arigo fix-descrmismatch-crash c2572a2d1270 /pypy/objspace/std/test/: Some more cases of W_AbstractXxx but where the test already passes
<kenaan> arigo py3.6 3c57a384aae3 /pypy/objspace/std/bytesobject.py: the merge of 'fix-descrmismatch-crash' into 'py3.6' will need this line, not 'str'
<cfbolz> arigato: the whole mechanism is a bit weird, it was invented for transparent proxies, I think
<arigato> yes
<arigato> I think it should always call the call_descr_mismatch method with the first positional argument
<arigato> in one case it was using the first argument after 'self'
<cfbolz> arigato: yes, both parts look much nicer
jerith_ is now known as jerith
<cfbolz> I mean both exact_class_applevel_name and the change in gateway
<arigato> ok cool
antocuni has quit [Ping timeout: 240 seconds]
<arigato> type(iter({})).__length_hint__.im_func(0)
<arigato> ...I expect this is going far enough into obscure land to not have to care about the exact error message
<cfbolz> haha
<arigato> there's also _rawffi.Array((None, 1))
<arigato> that's even rather on the obscurity level
<arigato> farther
mgedmin has joined #pypy
<mgedmin> hello, awesome pypy'ers!
<mgedmin> and now I want to take a look at the source code, and I'm wondering if it's still on bitbucket?
<mgedmin> given the upcoming mercurial shutdown and everything
<mgedmin> ok, I think i know what needs to be fixed in the code and where, but I'm not sure when
<mgedmin> the same code is being used for pypy2.7 and 3.6, right?
<mgedmin> or do you use branches, or .... ?
<arigato> mgedmin: yes, it's on bitbucket
<arigato> there's default for pypy2.7, a branch "py3.6" for 3.6
<mgedmin> ah, a branch! of course
<arigato> if the fix you want to do is shared, then better to fix it first in default and then merge default into py3.6
<mgedmin> ... ohdear how does one switch branches in mercurial
<mgedmin> I don't know if you've had time to glance at the bug
<arigato> hg up branchname
<mgedmin> but it's a change in code.co_lnotab semantics that happened for Python 3.6
<mgedmin> so it must not be changed for pypy2.7
<arigato> ah ok, then fix it directly in the py3.6 branch
<mgedmin> the line increments in co_lnotab are 8-bit unsigned for Python <= 3.5 and 8-bit signed for Python >= 3.6
<mgedmin> and pypy3.6 generates them as unsigned, which breaks all kinds of things like coverage analysis
<nedbat> mgedmin: i thought I saw something mentioned about this already in the pypy world?
<mgedmin> I tried to search for an existing issue, but maybe my queries were sufficiently different?
<arigato> yes, I think it's done already in py3.6---but maybe we missed a detail somewhere
<mgedmin> oh snap, the code looks updated in the py3.6 branch
<arigato> check with the release candidate pypy3.6- v7.2.0
<mgedmin> "bitbucket is experiencing an incident" woohoo
<arigato> :-(
<mgedmin> https://bugs.python.org/issue26107, says the commit that fixed this
<mgedmin> wait that's a python bug, not a pypy bug
<mgedmin> pypy bug is #2943
<arigato> see 54b7799da0ff
<arigato> in particular, the fact that this change in cpython was done with no tests, which is why we released some versions of pypy3.6 without it
<arigato> "if a user-facing change is done in CPython with no tests, it's a drop in the ocean (cough)"
<mgedmin> joy
<mgedmin> anyway, sorry for wasting your time!
<mgedmin> I should've tried to search for _closed_ issues too
<arigato> ah, yes, no problem
<arigato> "we ran into a minor glitch", says bitbucket now (and still doesn't display anything)
dnshane has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dnshane has joined #pypy
jvesely has joined #pypy
<cfbolz> arigato: we are not yet passing the dis tests on 3.6
<cfbolz> Maybe we would have found it that way
<arigato> ah
jcea has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<arigato> mgedmin: see also http://buildbot.pypy.org/mirror/ , which I'm busy updating now
<arigato> for pypy2.7-v7.2.0rc0-*
<arigato> sorry, pypy2.7-v7.2.0rc2-*
<mgedmin> yeah, bitbucket came up enough for me to download it
<mgedmin> pypy3.6 7.2.0rc2 shows correct line numbers in -m dis
<arigato> is there anything more to do on the new issue #3093?
<mgedmin> close it as a duplicate
<mgedmin> I added a comment (assuming it went through, bitbucket was iffy) but I didn't touch any metadata
hodge has left #pypy [#pypy]
Hodgestar has joined #pypy
antocuni has joined #pypy
forgottenone has quit [Ping timeout: 265 seconds]
forgottenone has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
lritter has quit [Quit: Leaving]
jcea has quit [Quit: jcea]
<kenaan> mattip default c31b3fcf395f /.hgtags: Added tags for release-pypy2.7
<mattip> I am removing the 3.5 downloads from the pypy.org downloads, leaving 2.7, 3.6
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
kanaka has joined #pypy
kanaka has quit [Changing host]
kanaka has joined #pypy
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
<mattip> arigato: could you do a powerpc build of the release?
<arigato> mattip: OK
<arigato> (I don't want to know how you added two tags in one commit---hacks?)
<mattip> just edit the .hgtags file and commit
<arigato> right, so hacks :-)
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<mattip> we should update our x86 buildbots to ubuntu 16.04 at least
<kenaan> mattip pypy.org[extradoc] 4620c2cbcf08 /: update to 3.6.9 and update downloads for 7.2.0 release (ppc links commented out)
antocuni has quit [Ping timeout: 265 seconds]
<mattip> blog post preview
<mattip> fixes are welcome
BPL has joined #pypy
<mattip> heh, the cursed 14th of the month: speed.pypy.org run is slower this day every month
BPL has quit [Client Quit]
<arigato> uh
<mattip> ?
<mattip> should I wait for cffi 1.13 to be released?
marky1991 has quit [Ping timeout: 276 seconds]
<arigato> no, go ahead
<arigato> I'll release cffi tomorrow
<mattip> ok. pypy.org has updated, the release bundles are in place. The only thing left is to publish the blog post
<mattip> and then tell people about it and wait for the comments
<mattip> if someone has a second to look at the preview, that would be nice
<arigato> the preview looks fine to me
<arigato> maybe add "(soon to be released)" next to the sandbox line?
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<mattip> +1
<mattip> ok, published, I put a note on r/python
<arigato> thanks for all your work!
<cfbolz> mattip: Yay, thanks a lot!
marky1991 has joined #pypy
Civil has quit [Changing host]
Civil has joined #pypy
jacob22 has quit [Ping timeout: 246 seconds]
forgottenone has quit [Ping timeout: 268 seconds]
<arigato> ppc uploaded
<mattip> +1. thanks
<kenaan> arigo pypy.org[extradoc] b19fc2740663 /: Clarify that this is not the new sandboxing but the old one
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
abrown has quit [Remote host closed the connection]
ambv has joined #pypy
abrown has joined #pypy
<ambv> Congratulations on PyPy 7.2
<cfbolz> thanks Łukasz!
<mattip> ambv: you are next :)
<ambv> I'm literally waiting for the Windows installer to finish 3.8.0
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
<arigato> there are three recent mails to python-dev called [RELEASE], with the two PyPy ones it makes five new Pythons at once
<mattip> oops
<arigato> (though CPython 3.8 is not final yet)
<arigato> (but any minute now I guess :-)
<arigato> (sorry, that's four versions of CPython, and there are all rc so far)
antocuni has joined #pypy
<ambv> it's final now :-)
<tos9> hooray
<tos9> (to all the above)
marky1991 has quit [Remote host closed the connection]
<tos9> ambv / mattip: congrats x 2
marky1991 has joined #pypy
<ambv> :-)
jacob22 has joined #pypy
<arigato> yay :-)
BPL has joined #pypy
<antocuni> congrats :)
BPL has quit [Quit: Leaving]
<ambv> We are all happy campers
<ambv> official 3.6.9 support is huge
CrazyPython has joined #pypy
<mattip> next step - get projects to ship manylinux2010 pypy3 wheels so we don't have to build an alternate PyPI under antocuni's github
<energizer> altendky: of possible interest ^
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
ambv has quit [Quit: Textual IRC Client: www.textualapp.com]
CrazyPython has quit [Read error: Connection reset by peer]
<altendky> mattip: I try to help out projects getting ci and wheel builds setup and I like to include PyPy support. Though I can't say I've read up on supporting that properly. Is there something I should read for that?
<mattip> altendky: do they use cython or the C-API? creating c-extensions is tricky since
<mattip> 1) we would prefer pure python
<mattip> 2) or at most cffi
<mattip> 3) and if they have to use c-extensions, they should be using a project like manylinux to make sure the wheels support most glibc versions
<altendky> mattip: it depends. I've used cibuildwheel to manage the manylinux aspect for those that need to compile. I would encourage cffi over the cpython c-api but... Not going to rewrite entire libs usually.
<mattip> yeah, of course, you can't rewrite the world. cibuildwheel seems like a good wrapper.
<mattip> We don't yet have pypy in the manylinux docker image, antocuni has a repo that adds it
<mattip> but it uses portable-pypy which I don't think has 7.2 yet
<altendky> mattip: I'm happy to read if there's a link and honestly haven't really looked... But how many wheels and what varies between them to get 'full coverage' for PyPy? Like for cpython I would do win/Linux/Mac * 2.7/3.5/3.6/3.7(/3.8). Though maybe that's silly when it comes to cffi... Still plenty for me to learn.
<mattip> win/x86 linux/mac 2.7/3.6 is about all you can do currently on PyPI. manylinux2014 will support arm and aarch64, but it is not done yet
<mattip> travis has pypy 7.1, maybe we could encourage them to install 7.2
<altendky> mattip: i mostly go for azure pipelines at this point.
antocuni has quit [Ping timeout: 268 seconds]
starhsn has joined #pypy
jacob22 has quit [Ping timeout: 276 seconds]
starhsn has left #pypy [#pypy]
<altendky> mattip: in case you want to follow it. Not sure when I might prioritize it but it's on my 'list'. https://github.com/joerick/cibuildwheel/issues/143#issuecomment-541961702
marky1991 has quit [Remote host closed the connection]
CrazyPython has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]