arigato 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 | mac OS and Fedora are not Windows
lritter has quit [Quit: Leaving]
tsaka__ has quit [Ping timeout: 248 seconds]
inhahe_ has joined #pypy
inhahe has quit [Ping timeout: 245 seconds]
jcea has quit [Quit: jcea]
speeder39_ has quit [Quit: Connection closed for inactivity]
rindolf has joined #pypy
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #pypy
_whitelogger has joined #pypy
_whitelogger has joined #pypy
Graypup_ has quit [Ping timeout: 258 seconds]
Graypup_ has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
bbot2 has quit [Quit: buildmaster reconfigured: bot disconnecting]
bbot2 has joined #pypy
<arigato> ronan: sorry for the delay. buildbot restarted
tsaka__ has joined #pypy
rindolf has quit [Remote host closed the connection]
tsaka__ has quit [Quit: Konversation terminated!]
tsaka__ has joined #pypy
tsaka__ has quit [Ping timeout: 264 seconds]
_whitelogger has joined #pypy
antocuni has joined #pypy
dpn` has quit [Ping timeout: 252 seconds]
string has quit [Ping timeout: 252 seconds]
simpson has quit [Ping timeout: 252 seconds]
reaperhulk has quit [Ping timeout: 252 seconds]
norox has quit [Ping timeout: 276 seconds]
norox has joined #pypy
string has joined #pypy
dpn` has joined #pypy
simpson has joined #pypy
lritter has joined #pypy
reaperhulk has joined #pypy
BPL has joined #pypy
antocuni has quit [Ping timeout: 244 seconds]
agronholm has quit [Quit: ZNC - http://znc.in]
<ronan> arigato: thanks
dddddd has joined #pypy
tsaka__ has joined #pypy
kipras has joined #pypy
antocuni has joined #pypy
tsaka__ has quit [Ping timeout: 245 seconds]
ajlawrence has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<BPL> Hi, anyone familiar with cppyy?
tsaka__ has joined #pypy
<BPL> ok, n.mind, I'll ask it anyway. Let's say in c++ I've got some `unsigned char* buffer` pointing out to some allocated memory. If I do in python `p = (ctypes.c_ubyte * len(pbits.x)).from_buffer(pbits.x)` I'll get a nice c_ubyte_Array object, so far so good, now...
<BPL> if I've got in c++ `unsigned char* layers[MAX_BUFFERS]` pointing out to some allocated memory and I do in python `(ctypes.c_ubyte * len(pbits.layers[0])).from_buffer(pbits.layers[0])` I'll get a nice crash telling me that "TypeError: object of type 'int' has no len()"
<BPL> so, what am I doing wrong? How should I get the c_ubyte_Array out layers? Ty in advance
<BPL> Ok... here's a mcve that clarifies my question https://bpaste.net/show/OPXp , line #31 will produce the exception I've mentioned above, anyone knows how to fix that?
xcm has quit [Remote host closed the connection]
tsaka__ has quit [Ping timeout: 258 seconds]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
tsaka__ has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
antocuni has quit [Ping timeout: 244 seconds]
Ninpo has quit [Ping timeout: 268 seconds]
antocuni has joined #pypy
eregon_ has quit [Ping timeout: 268 seconds]
ilbelkyr_ has joined #pypy
eregon has joined #pypy
antocuni has quit [Ping timeout: 272 seconds]
ilbelkyr has quit [Ping timeout: 600 seconds]
Ninpo has joined #pypy
antocuni has joined #pypy
agronholm has joined #pypy
antocuni has quit [Remote host closed the connection]
jcea has joined #pypy
agronholm has quit [Quit: ZNC - http://znc.in]
agronholm has joined #pypy
<kenaan> rlamy stdlib-3.6.9 e5a0ccd44fa7 /lib_pypy/_cffi_ssl/_stdssl/__init__.py: Quick hack to get ssl working again
<kenaan> rlamy stdlib-3.6.9 2d781dffdbc3 /lib-python/conftest.py: Add missing RegrTests
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6348 [ronan: force build, stdlib-3.6.9]
speeder39_ has joined #pypy
agronholm has quit [Ping timeout: 250 seconds]
<arigato> BPL: I'd like to help, but the bpaste.net link you posted goes to 404
<arigato> a general note, if you're using ctypes you're not using cppyy (or at least you're not really supposed to use them together)
<arigato> (and a more precise question: you should explain what "pbits" is)
agronholm has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6348 [ronan: force build, stdlib-3.6.9]
tsaka__ has quit [Ping timeout: 245 seconds]
jacob22 has quit [Remote host closed the connection]
jacob22 has joined #pypy
ilbelkyr_ is now known as ilbelkyr
speeder39_ has quit [Quit: Connection closed for inactivity]
tsaka__ has joined #pypy
ajlawrence has quit [Remote host closed the connection]
<BPL> arigato: Sorry, I'm back, yeah, I'd deleted that pastie cos few hours ago I'd discovered a workaround... still, I think there was one issue with cppyy in that regard so i decided to open a ticket, in case you're interested => https://bitbucket.org/wlav/cppyy/issues/142/issue-when-accessing-public-member
lritter has quit [Quit: Leaving]