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 | Matti: I made a bit of progress, the tests now only segfault towards the end
otisolsen70 has quit [Quit: Leaving]
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
shodan45 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
shodan45 has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Ping timeout: 276 seconds]
jacob22_ has joined #pypy
shodan45 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
shodan45 has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jcea has quit [Ping timeout: 240 seconds]
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22 has joined #pypy
jacob22__ has joined #pypy
jacob22 has quit [Client Quit]
jacob22_ has quit [Ping timeout: 276 seconds]
jacob22 has joined #pypy
jacob22__ has quit [Quit: Konversation terminated!]
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
nel has joined #pypy
<nel> hello! can someone help me?
<nel> i have pypy 7.3.9 and it is having trouble storing japanese characters. when i enter a string with jp chars in the interpreter it gets converted to question marks.
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Ping timeout: 276 seconds]
<LarstiQ> nel: that sounds like an encoding issue?
<LarstiQ> what's sys.getdefaultencoding()? What is your terminal using? does it work with cpython?
<nel> sys.getdefaultencoding() == 'utf-8' and sys.getfilesystemencoding() == 'utf-8'
<nel> yes, it works in normal python
<nel> i'm using windows terminal
<nel> what's weird to me is that it's literally equal to '?'. ('あ' == '?') is True
<LarstiQ> ah, is the window terminal using utf8?
<LarstiQ> also, pypy2 or pypy3, byte or unicode strings?
<nel> also, b'\xe3\x81\x82'.decode('utf-8') returns different values in cpython and pypy
<nel> i have pypy3
<LarstiQ> something like https://stackoverflow.com/questions/24140497/unbaking-mojibake might also be insightful
<mattip> nel: pypy on windows has problems with its console,
<mattip> we have not been able to get the winconsoleio module working
<nel> i see, let me try on linux. if that works i'll just switch to cpython for this project and wait for the fix.
<mattip> it might be quite a wait, the work needs a champion
<nel> yeah works just fine on wsl
<nel> thanks for the response tho
<nel> i specifically want to use stackless module. are you aware if i can install it in cpython?
<mattip> nel: I am confused about b'\xe3\x81\x82'.decode('utf-8'), it seems to me to give the same result everywhere
<mattip> on windows, I see the unicode character, not '?'
<nel> matt: do you see 'あ'? i see 'πüé' on pypy3 on windows
<mattip> what does pypy -c "import sys; print(sys.version)" show?
<nel> 3.9.10 (b332b321bbaa72bffb0207da5b7fe4c38047d3b2, Mar 16 2022, 16:03:21)
<nel> [PyPy 7.3.9 with MSC v.1929 64 bit (AMD64)]
<mattip> so maybe because I have codepage 850?
<mattip> from the dos terminal, what does "chcp" show
<nel> Active code page: 437
<mattip> can you try "chcp 850" (for latin-1) or "chcp 65001" (for utf-8)?
<mattip> you can make this permanent by this
<mattip> (I would be surprised if stackless still works, I think the last release was ~8 years ago. These days asyncio is the new shiny)
<nel> chcp 65001 is displaying the character alright
<nel> input is still incorrect though, now ('あ' == ' ') is True lol
<mattip> with cp 850 it works, with cp 65001 I get a ValueError: source code string cannot contain null bytes
<nel> asyncio looks neat. does it have channels? i cant find anything builtin, only other pip libraries.
<mattip> there is low-level built in support, and wrapper libraries to provide the sugar needed to make it usable
<mattip> I am not an expert, but a search showed me https://pypi.org/project/asyncio-channel/
<mattip> but we diverge ...
<nel> yeah
<nel> thank you for your help :)
<mattip> nel: did you try "chcp 850"?
<nel> 'あ' == '?' and b'\xe3\x81\x82'.decode('utf-8') == 'Òüé'
<mattip> weird. I opened an issue https://foss.heptapod.net/pypy/pypy/-/issues/3777
derpydoo has joined #pypy
<mgorny> mattip: found a small bug in hashlib: https://foss.heptapod.net/pypy/pypy/-/issues/3778 ;-)
greedom has joined #pypy
<nel> mattip: thanks. for clarity - with chcp 65001, 'あ' == ' ' (that's a space, not empty str)
<nel> nevermind
<nel> i'm hitting UP and RETURN and getting a different string each time
<nel> giving up on the dos terminal. using a modern terminal, i'm getting 'あ' == '?' consistently with chcp 850 and `ValueError: source code string cannot contain null bytes` with chcp 65001
<nel> also, i'm now getting b'\xe3\x81\x82'.decode('utf-8') == 'πüé' for both chcp 850 and 65001
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
otisolsen70 has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
nel has quit [Quit: Leaving]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
_whitelogger has joined #pypy
mattip has quit [Ping timeout: 268 seconds]
jacob22_ has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22_ has joined #pypy
jacob22 has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
mattip has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Ping timeout: 260 seconds]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22_ has joined #pypy
jacob22 has quit [Client Quit]
jacob22_ has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22_ has joined #pypy
jacob22 has quit [Client Quit]
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
derpydoo has quit [Quit: derpydoo]
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Ping timeout: 276 seconds]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22_ has joined #pypy
jacob22 has quit [Read error: No route to host]
jacob22_ has quit [Read error: Connection reset by peer]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Client Quit]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22 has joined #pypy
jacob22_ has quit [Client Quit]
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Ping timeout: 255 seconds]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Client Quit]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
<mattip> jacob22: could you fix your connection?
<jacob22> No, i'll just log off until I have a better one.
jacob22 has quit [Client Quit]
greedom has quit [Remote host closed the connection]
greedom has joined #pypy
lritter has joined #pypy
otisolsen70 has quit [Quit: Leaving]
<mjacob> cfbolz: if you can move around the dates a bit, i can try to convince marmoute to come to the pypy sprint as well :)
tsraoien has joined #pypy
<marmoute> That would be douable :-)
tsraoien has quit [Ping timeout: 276 seconds]
<mattip> mjacob: we have constraints. What do you mean "move around a bit"?
<mattip> that is pretty much the only week that works
<mjacob> mattip: there's a mercurial conference on september 21-23
<mjacob> depending on where and when exactly the pypy sprint is, i might still visit both
<mattip> I think cfbolz was proposing Dusseldorf, Sept 19-23
<mattip> I cannot come if it is any later, and I think others have commitments before Sept 18
<mjacob> oh, that's unfortunate (given that the chance of a complete overlap seems low)