I'm fine with giving it a public interface. Please submit a patch with
docs included.

On Tue, May 27, 2008 at 9:47 AM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> [reposting this to python-dev, as it affects both 2.6 and 3.0]
>
> Hi,
>
> when we build extension classes in Cython, we have to first build the type to
> make it available to user code, and then update the type's tp_dict while we
> run the class body code (PyObject_SetAttr() does not work here). In Py2.6+,
> this requires invalidating the method cache after each attribute change, which
> Python does internally using the type_modified() function.
>
> Could this function get a public interface? I do not think Cython is the only
> case where C code wants to modify a type after its creation, and copying the
> code over seems like a hack to me.
>
> Stefan
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to