kanaka has quit [Remote host closed the connection]
cstratak has joined #pypy
cstratak has quit [Ping timeout: 240 seconds]
cstratak has joined #pypy
arigato has quit [Ping timeout: 240 seconds]
inad922 has joined #pypy
DragonSA has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
mihaid has joined #pypy
Ubuntu-BR has joined #pypy
marr has quit [Ping timeout: 240 seconds]
cstratak has quit [Quit: Leaving]
arigato has joined #pypy
<inad922>
hi
<inad922>
When I write some extension in C/C++ and plug it into python via cffi and I want to use a struct from there. Is it used via ctypes?
Ubuntu-BR has quit [Quit: Konversation terminated!]
yuyichao has quit [Ping timeout: 272 seconds]
<arigato>
inad922: what is your question? (cffi is an alternative to ctypes)
<inad922>
arigato: Suppose I write some function in C which returns a struct. I create a python file like "import cffi; ffi = cffi.FFI(); ffi.cdef('struct return function definition goes here...'); lib = ffi.dlopen('...')". And when I use the function via the lib object what is the type of the object returned by the function?
<arigato>
'cdata object'
<arigato>
that's not from ctypes, if that's the question
<inad922>
Yep, that was my question. Thanks arigato!
kenaan has joined #pypy
<kenaan>
tobweber stmgc[c8-adaptive-trx-length-per-thread] 5f7220351ad9 /c8/stm/: Remove former transaction length back off mechanism and comment out debug output
<kenaan>
tobweber stmgc[c8-adaptive-trx-length-per-thread] aa3ac5b4c94e /c8/stm/nursery.c: Remove min transaction length (is now zero)
<kenaan>
tobweber stmgc[c8-adaptive-trx-length-per-thread] 6074cbac03a5 /c8/: Initialize single thread mode properties of thread local in setup.c
<kenaan>
tobweber stmgc[c8-adaptive-trx-length-per-thread] 9ca9e3e987a3 /c8/stm/core.c: Do not set transactions inevitable on start
<kenaan>
tobweber stmgc[c8-adaptive-trx-length-per-thread] b74e3a67f424 /c8/stm/: Add timing macros to hide internals from user code when generating custom paylo...
yuyichao has joined #pypy
inad922 has quit [Ping timeout: 260 seconds]
lapinot has joined #pypy
<kenaan>
antocuni faster-rstruct-2 cce350f856ce /: move setzeros into the base class rlib.buffer.Buffer, because it is used by rstruct to pack and needs t...
<kenaan>
antocuni faster-rstruct-2 b207c44e74ae /: WIP: add a failing test, which is triggered when W_BytearrayObject._offset > 0
<kenaan>
antocuni faster-rstruct-2 7538ecbcf8b5 /: turn GCBuffer into a base class again :(, so that we will be able to provide default methods
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
<ronan>
pff, site.py is a mess
<kenaan>
rlamy py3.5 ae338b18eb22 /pypy/interpreter/app_main.py: Run sys.__interactivehook__() also when using -i
amaury has joined #pypy
<kenaan>
rlamy py3.5 96d6c8419ada /lib-python/3/site.py: Disable enablerlcompleter() since it's broken on PyPy (note that virtualenv's site.py doesn't use it either)
<o11c|vacation>
er, no it isn't
amaury has quit [Ping timeout: 272 seconds]
black_ant has joined #pypy
black_ant has quit [Ping timeout: 260 seconds]
<kenaan>
rlamy py3.5 3f4f47fa82af /lib-python/3/site.py: Reenable the parts of enablerlcompleter() that do work (thanks o11c!)
<ronan>
o11c|vacation: it has stuff that's distro-specific, implementation-specific or part of the language spec...
<ronan>
and virtualenv has its own which is incompatible
<o11c|vacation>
ronan: talking about rlamy's commits specifically
<ronan>
o11c|vacation: ah, I thought you were answering my comment
<ronan>
*comment here
<ronan>
o11c|vacation: BTW, what's your use case for sys.__interactivehook__?
<o11c|vacation>
ronan: that's what enables rlcompleter in python3's site.py
<o11c|vacation>
otherwise you have to set it up *yourself* for every interactive session
<ronan>
OK, I didn't really expect our readline to be that compatible
<o11c|vacation>
it's definitely missing a lot, but at least basic tab-completion works