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
inhahe has quit [Read error: Connection reset by peer]
alexge50 has quit [Read error: Connection reset by peer]
alexge50 has joined #pypy
lritter has quit [Quit: Leaving]
dddddd has quit [Ping timeout: 264 seconds]
oberstet has joined #pypy
tsaka_ has quit [Ping timeout: 265 seconds]
oberstet has quit [Remote host closed the connection]
_whitelogger has joined #pypy
thrnciar has joined #pypy
tsaka_ has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
thrnciar has quit [Read error: Connection reset by peer]
thrnciar has joined #pypy
thrnciar_ has joined #pypy
thrnciar has quit [Ping timeout: 264 seconds]
phlebas has quit [Ping timeout: 252 seconds]
EWDurbin has quit [Ping timeout: 252 seconds]
phlebas has joined #pypy
EWDurbin has joined #pypy
thrnciar has joined #pypy
thrnciar_ has quit [Ping timeout: 264 seconds]
Dejan has joined #pypy
Dejan has quit [Changing host]
Dejan has joined #pypy
tsaka_ has quit [Ping timeout: 240 seconds]
kbtr_ has quit [Ping timeout: 256 seconds]
kbtr has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
tsaka_ has joined #pypy
dddddd has joined #pypy
Dejan has quit [Quit: Leaving]
tsaka_ has quit [Quit: Konversation terminated!]
tsaka_ has joined #pypy
thrnciar has quit [Ping timeout: 260 seconds]
oberstet has joined #pypy
jcea has joined #pypy
BPL has joined #pypy
jacob22 has joined #pypy
epsilonKNOT has joined #pypy
jcea has joined #pypy
xcm has joined #pypy
lritter has joined #pypy
<ronan>
mattip: I'm looking at os.listdir()
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<mattip>
ronan: thanks. Willing to discuss it if any input is needed, or to try out a fix on a windows machine
<ronan>
I'm just trying to remember how the whole traits/Path mess works for now
<arigo>
I think I already tried to fix the windows situation for os.listdir() one or two months ago, but probably failing
<mattip>
the thing is, there are two versions of rposix.listdir(), so
<mattip>
1) I don't think you can wrap it with the call_rpython decorator (correct name?)
<ronan>
call_rposix
<ronan>
and yes, that's what I just concluded as well
<mattip>
2) one returns a list of str, the other returns a list of unicode, so the annotator gets annoyed with newbyte_list and unicode
<mattip>
I tried to unravel (2) in the win-listdir branch, but then hit (1)
<mattip>
I am not sure if the fix is correct or not
<ronan>
the annotator will already complain at result = rposix.listdir(path)
<ronan>
because can't be both a list of str and of unicode
<ronan>
*becuse result
<mattip>
somehow it worked before ...
<mattip>
9757602c869f was the last successful build of py3.6 on win32
xcm has quit [Read error: Connection reset by peer]
<ronan>
yes, it worked because the paths for as_bytes == True and as_bytes == False were separate
<mattip>
ah
xcm has joined #pypy
<ronan>
I guess separating them again should work
<mattip>
annoying indeed
<mattip>
at some point we should work out a utf8 strategy for these windows system calls, and get rid of all the unicode mess
Ododo has joined #pypy
<Ododo>
Hello. i don't understand well how the addres mapping of the program works with cffi. I have a shared function witch returns a void *. When a print the pointer value in the c program before returning i have something like 0x7fffed857720, which becomes 0xffffffffed857725 in the cffi object repr. i would expect the repr to be something like 0x00007fffed857720 .