[Numpy-discussion] global overloading of 1+1 -> MyClass(1, 1)

Christian Heimes lists@cheimes...
Wed Aug 20 08:01:00 CDT 2008


Ondrej Certik wrote:
> Are we able to provide an actual patch to Python that implements this?
> If so, then I am.
> Imho the proposal should come with an actual patch, otherwise it's
> difficult to judge it.

Your better off with writing a PEP first. In order to implement the 
proposal you've to make changes to the parser and tokenizer - perhaps to 
the grammar, too. The code is rather complex and tricky - and not very 
well documented.

Christian



More information about the Numpy-discussion mailing list