cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "nothing compares to the timeshifter, my personal polar expedition in software" - pedronis
drolando has quit [Remote host closed the connection]
drolando has joined #pypy
dan- has quit [Ping timeout: 240 seconds]
raynold has quit [Quit: Connection closed for inactivity]
antocuni has joined #pypy
tnorth has joined #pypy
mattip has joined #pypy
amaury has joined #pypy
<kenaan>
arigo unicode-utf8 e6e4622c8bc2 /pypy/module/_multibytecodec/: Revert some changes that are not needed any more here
<kenaan>
arigo unicode-utf8 40990369b37a /: Tweak for the JIT, similar to W_UnicodeObject in the py3.5 branch
<kenaan>
arigo unicode-utf8 d9fe594a639b /: Force 'allow_surrogates' to be specified in check_utf8()
<kenaan>
arigo unicode-utf8 6bc169e4d079 /: Rewrite unicode.index/find to use rutf8.codepoints_in_utf8(). It should ensure that the complexity of these me...
<kenaan>
arigo unicode-utf8 f029e18069d3 /pypy/objspace/std/: Add startswith/endswith in the hypothesis test. Fixes. Includes a fix that should also be in default...
<kenaan>
arigo default 88bed3bb8ad4 /pypy/objspace/std/: Test with hypothesis, fix for a corner case of startswith()
amaury has quit [Ping timeout: 248 seconds]
tnorth has quit [Ping timeout: 258 seconds]
tnorth has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
tnorth has quit [Ping timeout: 246 seconds]
jamadden has joined #pypy
jamadden has quit [Remote host closed the connection]
<Ulfalizer>
i have a variable that caches a calculated result, which might be None (which is distinct from "no cached value"). currently, i set _NO_CACHED_VAL = [] globally and then test for a cached value with 'if cached_val is not _NO_CACHED_VAL: return cached_val'. is there some other handy object i could use for _NO_CACHED_VAL that's guaranteed to be globally unique (and preferably efficient to access too)?
<Ulfalizer>
'None' won't work as that's a valid cached value.
<Ulfalizer>
not strictly pypy-related, so sorry about that. people here probably have a good grasp of python internals though.
<arigato>
maybe use "_NO_CACHED_VAL = object()"
<Ulfalizer>
sounds like a good idea. i'll read up a bit about object guarantees. thanks! :)
oberstet has quit [Ping timeout: 240 seconds]
<antocuni>
arigato: btw, I ran the cpyext benchmarks with tuples freelists
<antocuni>
however, there is no measurable speedup
<antocuni>
I think this happens because to call a VARARGS C function, we allocate an applevel tuple and then we convert it to PyObject
<antocuni>
so the PyObject tuples are freed only when the GC runs, and the freelists are almost never used
<kenaan>
arigo unicode-utf8 0aa72483c0e8 /pypy/objspace/std/listobject.py: Re-disable, turns out to be manually disabled almost everywhere else anyway.
<kenaan>
arigo unicode-utf8 a5262fe7cebf /pypy/: Translation fixes. The 'fix' in unicodeobject merely shows the next problem
oberstet has joined #pypy
michaelgreene has quit [Ping timeout: 248 seconds]
<kenaan>
antocuni cpyext-avoid-roundtrip 7860795a7204 /pypy/module/cpyext/: we cannot cache the empty tuple as CPython does, else we end up having the same py_obj for differ...
<kenaan>
antocuni cpyext-refactor-methodobject c549ac0e8be0 /: a (hopefully quick) 'sub-branch' of cpyext-avoid-roundtrip to refactor and cleanup methodob...
<kenaan>
antocuni cpyext-refactor-methodobject 1ca2a0f2262f /pypy/module/cpyext/test/test_methodobject.py: split this one gigantic test into smaller ones
<kenaan>
antocuni cpyext-refactor-methodobject b05962717d68 /pypy/module/cpyext/: rename these classes
<kenaan>
antocuni cpyext-refactor-methodobject 0509cab76af7 /pypy/module/cpyext/methodobject.py: move the descr_call inside the classes, to reduce a bit the cluttering
michaelgreene has joined #pypy
<kenaan>
antocuni cpyext-avoid-roundtrip 1fe00f592e00 /pypy/module/cpyext/test/test_sequence.py: fix this test
<kenaan>
antocuni cpyext-refactor-methodobject e627947095d3 /pypy/module/cpyext/test/test_sequence.py: merge the fix from cpyext-avoid-roundtrip
<kenaan>
antocuni cpyext-refactor-methodobject e06951cd3fe6 /pypy/module/cpyext/: introduce a specialized class for METH_VARARGS functions
<kenaan>
antocuni cpyext-refactor-methodobject cefeba1a1de2 /pypy/module/cpyext/: when calling a METH_VARARGS, create directly a PyTuple, instead of passing from a w_tuple; ...
_whitelogger has joined #pypy
lritter has joined #pypy
marky1991 has quit [Ping timeout: 255 seconds]
tnorth has joined #pypy
antocuni has quit [Ping timeout: 260 seconds]
raynold has joined #pypy
<kenaan>
arigo extradoc 111393a517be /planning/cpyext.txt: write down these to-do items
pilne has quit [Quit: Quitting!]
arigato has quit [Quit: Leaving]
drolando has quit [Remote host closed the connection]
drolando has joined #pypy
amaury has joined #pypy
tbodt has joined #pypy
tnorth has quit [Ping timeout: 246 seconds]
forgottenone has quit [Ping timeout: 248 seconds]
amaury has quit [Ping timeout: 255 seconds]
raynold has quit [Quit: Connection closed for inactivity]