cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
Guest39454 has joined #pypy
Guest39454 has quit [Remote host closed the connection]
alexband has joined #pypy
Peng5 has joined #pypy
Peng5 has quit [Read error: Connection reset by peer]
trobotham8 has joined #pypy
trobotham8 has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
demonimin has quit [Ping timeout: 252 seconds]
speeder39 has joined #pypy
alexband has quit [Remote host closed the connection]
alexband has joined #pypy
mindjuju26 has joined #pypy
alexband has quit [Ping timeout: 252 seconds]
lritter has quit [Ping timeout: 240 seconds]
alexband has joined #pypy
mindjuju26 has quit [Remote host closed the connection]
jcea has quit [Quit: jcea]
_whitelogger has joined #pypy
Garen has joined #pypy
Garen_ has quit [Ping timeout: 244 seconds]
Guest16880 has joined #pypy
Guest16880 has quit [Remote host closed the connection]
speeder39 has quit [Quit: Connection closed for inactivity]
speeder39 has joined #pypy
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
lolmac has joined #pypy
lolmac has quit [Remote host closed the connection]
arigato has joined #pypy
alexband has quit [Remote host closed the connection]
alexband has joined #pypy
alexband has quit [Ping timeout: 245 seconds]
alexband has joined #pypy
alexband has quit [Ping timeout: 240 seconds]
<cfbolz>
arigato: hey?
<arigato>
hi
alexband has joined #pypy
Masklinn has quit []
alexband has quit [Remote host closed the connection]
alexband has joined #pypy
alexband has quit [Remote host closed the connection]
alexband has joined #pypy
speeder39 has quit [Quit: Connection closed for inactivity]
Thargoid has joined #pypy
Thargoid is now known as Guest53911
<mattip>
on cpython 2, this succeeds b'\xed\xa0\xbc\xed\xb2\xb1'.decode('utf8')
<mattip>
but on cpython3 it raises 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte
<arigato>
yes
<arigato>
that's surrogates
<mattip>
is this a difference beyond surrogates in python2 vs 3?
<arigato>
yes
<arigato>
er no
<arigato>
the difference is surrogates
<mattip>
ahh, ok, so I need to actually add handling for allow_surrogates to unicodehelper.str_decode_utf8
Guest53911 has quit [Remote host closed the connection]
<mattip>
maybe easy, just pass it to rutf8._invalid_byte_2_of_3 ...
<arigato>
I forgot the details, but it's called "utf8sp" in runicode.py
<mattip>
thanks
<arigato>
this "utf8sp" encoding is what is really used to store W_UnicodeObject as bytes
<arigato>
this must not be confused with the "utf8" encoding, which is slightly different, and also different on python 2 vs 3
<mattip>
right, that part works fine (I think), it was the actual call to decode -> stringmethods.descr_decode -> bad call to unicodehelper
<arigato>
ok
<mattip>
in objspace/std/test/test_typeobject.py, there is a test_type_construct_unicode_surrogate_issue, which does
<antocuni>
"abort: missing support for check:phases"
<antocuni>
I don't know exactly how to work around it; I tried hg push a couple of times, always the same error; I tried to rollback the commit, commit again, wait for few seconds, same error
<antocuni>
then I tried "hg push -b ." and it worked; not sure whether the "-b ." did the trick or it's just a coincidence
supercool27 has joined #pypy
supercool27 has quit [Remote host closed the connection]
Khayman has joined #pypy
TheAdversary has quit [Disconnected by services]
the_rat has quit [Ping timeout: 250 seconds]
TheAdversary has joined #pypy
ulope has quit [Ping timeout: 272 seconds]
ulope has joined #pypy
Hasimir has quit [Ping timeout: 246 seconds]
Khayman is now known as Hasimir
ctismer has quit [Ping timeout: 252 seconds]
il_ratto has joined #pypy
ThomasWaldmann has quit [Ping timeout: 272 seconds]
ThomasWaldmann has joined #pypy
ThomasWaldmann has joined #pypy
ThomasWaldmann has quit [Changing host]
ctismer has joined #pypy
alexband has quit [Remote host closed the connection]
alexband has joined #pypy
alexband has quit [Ping timeout: 252 seconds]
<LarstiQ>
antocuni: ask in #bitbucket?
antocuni has quit [Ping timeout: 272 seconds]
lcollini has quit [Remote host closed the connection]
demonimin has quit [Ping timeout: 272 seconds]
demonimin has joined #pypy
demonimin has joined #pypy
demonimin has quit [Changing host]
amz3 has joined #pypy
<amz3>
hello
<amz3>
is it ok if there is differences between ffi.buffer and a 'bytes' object?
<amz3>
I am using cffi
<amz3>
because ffi.buffer(0xdecafbad)[0] returns a bytes object, wheresas b'\x05'[0] returns 5
<amz3>
i log the issue and move on
<amz3>
what is the difference between bytes(buffer) and buffer[:]
<marmoute>
if antocuni comes back, ask him which version of Mercurial he is using and tell him it is probably a Bitbucket side issue (maybe they are playing with version upgrade)
speeder39 has quit [Quit: Connection closed for inactivity]
danieljabailey has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]