antocuni changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "PyPy: the Gradual Reduction of Magic (tm)"
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
drolando has quit [Remote host closed the connection]
drolando has joined #pypy
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 260 seconds]
drolando has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamadden has quit [Ping timeout: 248 seconds]
jcea has quit [Quit: jcea]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Garen_ has quit [Read error: Connection reset by peer]
Garen has joined #pypy
iblis17 has quit [Read error: Connection reset by peer]
iblis17 has joined #pypy
Frankablu has quit [Ping timeout: 264 seconds]
Frankablu has joined #pypy
infernix has joined #pypy
speeder39 has joined #pypy
tbodt has joined #pypy
adamholmberg has joined #pypy
tbodt has quit [Client Quit]
adamholmberg has quit [Ping timeout: 276 seconds]
fryguybob has quit [Ping timeout: 248 seconds]
fryguybob has joined #pypy
lritter_ has joined #pypy
lritter__ has quit [Ping timeout: 276 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
danieljabailey has quit [Ping timeout: 252 seconds]
danieljabailey has joined #pypy
adamholmberg has joined #pypy
oberstet has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 248 seconds]
dddddd has quit [Remote host closed the connection]
forgottenone has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
forgottenone has joined #pypy
marr has joined #pypy
speeder39 has quit [Quit: Connection closed for inactivity]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 255 seconds]
energizer has quit [Ping timeout: 256 seconds]
forgottenone has quit [Ping timeout: 248 seconds]
xqb has quit [Ping timeout: 255 seconds]
xqb has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
nanonyme has joined #pypy
nanonyme has left #pypy ["WeeChat 2.0.1"]
nanonyme has joined #pypy
jamadden has joined #pypy
infernix has quit [Ping timeout: 265 seconds]
forgottenone has joined #pypy
jamadden has quit [Quit: Leaving.]
jamadden has joined #pypy
jamadden has quit [Client Quit]
infernix has joined #pypy
jamadden has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
lritter_ has quit [Ping timeout: 268 seconds]
<nanonyme> arigato, ping, I'm resulting in tons of strangeness here with out-of-line ABI-mode. Specifically 'utf-8' codec can't decode byte on library name though it's supposed to be a unicode object (Python3). The strangeness is I don't see anything from within CFFI in my traceback, only my own code
<nanonyme> I guess the dlopen hits C code immediately, would that explain why the traceback looks so weird?
<arigato> I can't really say anything without a way to reproduce the problem myself
<nanonyme> I don't think you can reproduce it easily without having Windows
<arigato> I do have Windows nowadays
<nanonyme> Ah
<nanonyme> Basically what repros this for me is I have a path containing ™ symbol and DLL is inside it
<arigato> ah, simply
<arigato> I can give it a try
<nanonyme> I don't know if it repros in other setups than out-of-line ABI mode
<nanonyme> Noticed on Python 3.5.2
<arigato> will try, /me lunch now
<nanonyme> Sure
<nanonyme> But I'm very bad at tracking C code
<nanonyme> It's possible I could sort this out by just upgrading to Python3 and passing it a UTF-8 bytestring since 3.6 changed filesystem encoding to UTF-8
<nanonyme> But I'd totally prefer CFFI would work consistently with unicode objects :)
jcea has joined #pypy
<Rotonen> nanonyme: get yourself a C ide - visual debuggers with mouse hover of everything at debug runtime greatly help
<Rotonen> much easier to keep mental track of things than parsing a textual locals table
<Rotonen> YMMV etc.
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
<nanonyme> arigato, right, so looks like CFFI on Python3 on Windows without "PEP 528 and PEP 529, Windows filesystem and console encoding changed to UTF-8." is just broken
<nanonyme> arigato, I tried pre-encoding to UTF-8 and got garbage back meaning it most likely tried to decode with mbcs. You cannot encode with mbcs because it doesn't support all valid Windows path characters
<nanonyme> Pre-encoding trick starts with Python3 assuming that feature because then decoding with filesystem encoding results in original unicode object
<nanonyme> Starts working even
Rhy0lite has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 256 seconds]
<nanonyme> Meh, looks like the workaround doesn't help either, something is still breaking the path preventing the DLL load
inad922 has joined #pypy
raynold has quit [Quit: Connection closed for inactivity]
Taggnostr has quit [Quit: No Ping reply in 180 seconds.]
Taggnostr has joined #pypy
adamholmberg has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
jcea has quit [Client Quit]
marky1991 has joined #pypy
jcea has joined #pypy
<kenaan_> cfbolz py3.5 ff6a031587c2 /pypy/objspace/std/: fix mapdict-size-limit on pypy3
<kenaan_> cfbolz default 87ece4f2df4d /pypy/objspace/std/mapdict.py: re-enable on default as well
dddddd has joined #pypy
demonimin has joined #pypy
<nanonyme> arigato, had a chance to test?
<cfbolz> mattip (logs): cpyext-datetime2 didn't add a single test. did you forgot to add the test file or something?
<cfbolz> I suspect the code is broken on py3.5, because the changes to datetime.py didn't get merged (that's not automatic, the file is in a different location in py3.5 :-( )
<cfbolz> if you add the test, I will fix stuff on py3.5
<nanonyme> Rotonen, my main difficulty is tracing through the Python<->C boundary when I'm not totally sure what C functions are getting called when something that looks like a class gets instantiated and a method is called
<Rotonen> visual studio is actually rather good at diving in when something crashes
<Rotonen> dunno with pypy, though
<Rotonen> but cpython provides some hook so the windows crash dialog lets you debug desymbolicatedly if have the source in the correct location (something like c:\cpython35 or such, hardcoded as far as i can see)
<Rotonen> so you can actually see what and where
marky1991_2 has joined #pypy
marky1991 has quit [Ping timeout: 248 seconds]
reaperhulk has quit [*.net *.split]
reaperhulk has joined #pypy
rubdos_ has joined #pypy
rubdos has quit [Ping timeout: 276 seconds]
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
drolando has joined #pypy
inad922 has quit [Ping timeout: 255 seconds]
raynold has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
rubdos_ is now known as rubdos
<nanonyme> Rotonen, wasn't a crash, just a Python exception raised from C code
<nanonyme> It's annoying to debug when the language specification says half of the stack is implementation details
<Rotonen> if you raise on that pyside, that should still do the trick there?
<Rotonen> but that starts indeed depending on circumstance
<nanonyme> It might have been easier to debug on pure PyPy I guess but this was specifically about the library on PyPI
tbodt has joined #pypy
jamadden has quit [Ping timeout: 260 seconds]
oberstet has quit [Ping timeout: 240 seconds]
forgottenone has quit [Quit: Konversation terminated!]
energizer has joined #pypy
oberstet has joined #pypy
jamadden has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rhy0lite has quit [Quit: Leaving]
tbodt has joined #pypy
tbodt has quit [Read error: Connection reset by peer]
oberstet has quit [Ping timeout: 260 seconds]
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
energizer has quit [Disconnected by services]
energizer has joined #pypy
jamesaxl has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
jacob22__ has joined #pypy
jamesaxl has joined #pypy
jcea has quit [Read error: Connection reset by peer]
jcea has joined #pypy
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
jacob22__ has quit [Ping timeout: 276 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
demonimin has quit [Ping timeout: 276 seconds]
demonimin has joined #pypy
energizer has quit [Disconnected by services]
energizer has joined #pypy
energizer has quit [Remote host closed the connection]
energizer has joined #pypy
jamesaxl has quit [Quit: WeeChat 2.0.1]