PEP 312 (and thus 308) implemented with a black magic trick

Andrew Bennetts andrew-pythonlist at
Wed Mar 19 12:03:45 CET 2003

On Mon, Mar 17, 2003 at 01:58:28PM -0800, Michele Simionato wrote:
> Today I had an illumination on how to implement both PEP 312 and 308
> in current Python. I think I will share the idea, even if I would *not* 
> recommend to use such a dirty trick in production code.

Nasty. :)

So, who's going to be the first to implement ++x using this technique?


More information about the Python-list mailing list