• Kevin Modzelewski's avatar
    Basic functools support · eae111dd
    Kevin Modzelewski authored
    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.
    eae111dd
_functoolsmodule.c 11.4 KB