Custom operator

Gerrit gerrit at
Thu Feb 5 23:07:48 CET 2004

mathias wrote:
> I would like to define a custom operator in Python. 
> (It is not about overloading an existing operator but about 
> defining special new operators)

You cannot define new syntax in Python.

This is on purpose, Python would be a different language if it could.
"import this"

Why do you want it?


PrePEP: Builtin path type
Asperger's Syndrome - a personal approach:

More information about the Python-list mailing list