On Fri, Apr 13, 2012 at 12:59 PM, Dag Sverre Seljebotn <d.s.seljeb...@astro.uio.no> wrote: > I'll go one further: Intern Python bytes objects. It's just a PyObject*, but > it's *required* (or just strongly encouraged) to have gone through > > sig = sys.modules['_nativecall']['interned_db'].setdefault(sig, sig) > > Obviously in a PEP you'd have a C-API function for such interning > (completely standalone utility). Performance of interning operation itself > doesn't matter... > > Unless CPython has interning features itself, like in Java? Was that present > back in the day and then ripped out?
http://docs.python.org/library/functions.html#intern ? (C API: PyString_InternInPlace, moved from __builtin__.intern to sys.intern in Py3.) - N _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel