Custom operator

Gerrit gerrit at nl.linux.org
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?

Gerrit.

-- 
PrePEP: Builtin path type
    http://people.nl.linux.org/~gerrit/creaties/path/pep-xxxx.html
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/




More information about the Python-list mailing list