cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | so many corner cases, so little time
lritter has quit [Ping timeout: 256 seconds]
lritter has joined #pypy
lritter has quit [Ping timeout: 245 seconds]
slav0nic has quit [Ping timeout: 252 seconds]
<Atque> mgorny: Start a data science company, make $1trillion dollars and bankroll pypy?
<Atque> pypy is really good for lots of things. The dream would be having the latest cpython version's features and a drop in replacement, but that's unlikely to happens resourcewise I imagine.
<Corbin> It's a matter of politics, not just resources. That said, if the desire is to just see one particular feature in PyPy, it might be possible for an individual to contribute that feature on their own.
<Atque> Corbin: Is there pushback on some features?
<Corbin> Atque: No, PyPy welcomes contributions. The source of problems is that CPython and PyPy are distinct; features proposed and popular within the CPython community don't always come with a plan for how non-CPython systems will implement them.
<Atque> Yeah, makes sense. So there's no overall body setting the development of python variants (CPython, PyPy, Jython, IronPython etc.)?
<Corbin> No. Depending on who you ask and how you measure, my prior estimate is that around 98% of the Python ecosystem uses CPython exclusively. We are on the edges of a monoculture.
Atque has quit [Quit: ...]
Atque has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
Atque has quit [Quit: ...]
<mattip> ctismer: I opened an issue about the warnings on NumPy 1.22+
<ctismer> mattip: Thank you! That could explain other problems as well.
Atque has joined #pypy
Atque has quit [Quit: ...]
Atque has joined #pypy
greedom has joined #pypy
the_drow has quit [Ping timeout: 268 seconds]
agronholm has quit [Ping timeout: 268 seconds]
tumbleweed has quit [Ping timeout: 268 seconds]
danchr_ has joined #pypy
krono has quit [Ping timeout: 268 seconds]
danchr has quit [Ping timeout: 268 seconds]
tumbleweed has joined #pypy
agronholm has joined #pypy
krono has joined #pypy
the_drow has joined #pypy
greedom has quit [Remote host closed the connection]
otisolsen70 has joined #pypy
otisolsen70_ has joined #pypy
otisolsen70 has quit [Ping timeout: 256 seconds]
otisolsen70__ has joined #pypy
otisolsen70_ has quit [Ping timeout: 256 seconds]
otisolsen70__ has quit [Remote host closed the connection]
<ctismer> mattip: Can you please elaborate? `isinstance(ndarray.__class_getitem__, types.MethodType)` does not compute for me.
Atque has quit [Quit: ...]
<mattip> you need to be using numpy 1.22 and higher and pypy 3.8 or higher
<ctismer> >>>> isinstance(numpy.ndarray(3).__class_getitem__, types.MethodType)
<ctismer> mattip: Ah, you need to use an instance to get this. This works:
<ctismer> True
<cfbolz> I don't see how that could be False, honestly
<mattip> in CPython type(numpy.ndarray.__class_getitem__).mro() is [<class 'builtin_function_or_method'>, <class 'object'>]
<mattip> in PyPy it is [<class 'method'>, <class 'object'>]
<cfbolz> yes, but we don't have builtin_function_or_method as a type
<mattip> well, we need to differentiate between cpyext class methods and python ones, since
<mattip> you can write to __doc__ on python methods, but not on cpyext ones
<ctismer> mattip: This case does not apply to my problems, directly. But it shows again that methods are sometimes treated wrong. Example:
<ctismer> cfbolz: We need something that determines a builtin method, somehow.
<mattip> "builtin" is a deceptive name, but yeah
<ctismer> I have this ugly patch for PyPy since quite some time:
<ctismer> but this is maybe not the only needed patch. There might be other things that need patching as well.
<ctismer> the isinstance is for instance not yet covered 😃
[Arfrever] has quit [Ping timeout: 268 seconds]
<mattip> it seems we have more things to do before the release of py3.9, like pep573
<cfbolz> mattip: ah, ouch, is pep 573 a lot of work?
<mattip> the bit I committed on the branch is enough to get cython tests to pass, but it would be nice to do the rest too
<mattip> the CI running at https://github.com/pypy/binary-testing/actions is helpful
<mattip> to see what is broken
<cfbolz> mattip: cool that it helps
[Arfrever] has joined #pypy
lritter has joined #pypy
greedom has joined #pypy
greedom has quit [Remote host closed the connection]
Atque has joined #pypy
<exarkun> Anyone know about pypy 3.8 support in cibuildwheel? It seems to be missing?
<mattip> exarkun: update 2.3.0
<exarkun> I'm using 2.3.1
<exarkun> Bah. I put "pp38-" instead of "pp38-*" in the config.
epony has quit [Quit: QUIT]
<mgorny> just submitted a PR fixing cherrypy
<mgorny> turned out the test suite was failing and then crashing pytest... because upstream neglected to close files
infernix has quit [Ping timeout: 240 seconds]
infernix has joined #pypy
dmalcolm_ has quit [Remote host closed the connection]
dmalcolm__ has joined #pypy