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