Re: [Python-Dev] PEP 510: Specialize functions with guards

2016-01-19 Thread Victor Stinner
Oh, I think that the PEP 510 lacks two functions to: * remove a specific specialized code * remove all specialized code Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://ma

Re: [Python-Dev] PEP 510: Specialize functions with guards

2016-01-13 Thread Victor Stinner
I extracted a patch from my FAT Python project to implement the PEP 510: https://bugs.python.org/issue26098 FYI I also extracted the runtime part of the FAT Python optimizer and put it on GitHub: https://github.com/haypo/fat The fat module provides specialize(), get_specialized() and replace_cons

[Python-Dev] PEP 510: Specialize functions with guards

2016-01-12 Thread Victor Stinner
Hi, I posted a first version of this PEP on python-ideas and I got interesting feedback. The main changes in this second version is that the whole API is now private: no more exposed in Python at all, only in the Python C API (C level). The PEP is part of a serie of 3 PEP (509, 510, 511) adding a