Basic functools support
They do a refcount==1 optimization, where they mutate a tuple if they see that it isn't shared. I don't know if we can have a good way of supporting this. Maybe we can always tell extensions that refcounts are >1? Not sure if there's any macro magic we can do to make "obj->ob_refcnt" return something of our choosing.
Showing
test/tests/functools_test.py
0 → 100644
Please register or sign in to comment