cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | mac OS and Fedora are not Windows
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
dddddd has quit [Ping timeout: 252 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 244 seconds]
dddddd has joined #pypy
<abrown>
quick question: I am trying to read an OS environment variable in RPython and `if 'DEBUG' in os.environ` is not allowed
<abrown>
neither is `os.environ.get('DEBUG', False)`
<abrown>
and I am trying to avoid a try-catch around it: does anyone know the RPython way to do this?
<simpson>
Kind of surprised that the `in` version isn't allowed. The .get() wouldn't work because `False` isn't a string.
<simpson>
There's a bunch of dict-like operations that should work.
<abrown>
so you think os.environ.get('DEBUG', '0') would work? I can try that...
<abrown>
nope
<abrown>
thanks anyway
abrown has quit [Ping timeout: 240 seconds]
yaewa has joined #pypy
moei has quit [Ping timeout: 272 seconds]
_whitelogger has joined #pypy
Hasimir has joined #pypy
dddddd has quit [Remote host closed the connection]
_whitelogger has quit [Remote host closed the connection]
_whitelogger_ has joined #pypy
_whitelogger has joined #pypy
marvin has quit [Remote host closed the connection]
marvin has joined #pypy
marvin has quit [Remote host closed the connection]
marvin_ has joined #pypy
yaewa has quit [Quit: Leaving...]
moei has joined #pypy
antocuni has joined #pypy
mcepl[m] has left #pypy ["User left"]
lritter has joined #pypy
nunatak has joined #pypy
antocuni has quit [Ping timeout: 252 seconds]
dddddd has joined #pypy
nunatak has quit [Quit: Leaving]
Zaab1t has joined #pypy
jacob22__ has quit [Ping timeout: 250 seconds]
jacob22__ has joined #pypy
abrown has joined #pypy
abrown has quit [Quit: Leaving]
dcrosta has joined #pypy
dcrosta has quit [Ping timeout: 272 seconds]
Hasimir has quit [Ping timeout: 268 seconds]
tbodt has quit [Ping timeout: 250 seconds]
tbodt has joined #pypy
catern has joined #pypy
<catern>
hey #pypy, question about cffi, I am extracting the libexecdir from a C library at "setup.py build" time and I want to store it somewhere so I can use it at run time, I was thinking of embedding the string into the cffi extension module as a const char *, how would I best format a Python string into my call to ffibuilder.set_source?
jacob22__ has quit [Remote host closed the connection]