[Numpy-discussion] global overloading of 1+1 -> MyClass(1, 1)
Christian Heimes
lists at cheimes.de
Wed Aug 20 09:01:00 EDT 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