Does Python compete with Java?

Robert Brewer fumanchu at amor.org
Tue Apr 13 13:29:06 EDT 2004


Jakub Fast wrote:
> not-very-readable syntax: operator overloads and static 
> methods. is this an issue that is argued over?

Those are (at least) two issues, but, yes, they are argued over. You
might want to search comp.lang.python and the python-dev mailing list
for examples of each; there are quite a few.

The syntax for staticmethod (and classmethod, etc.) is currently being
discussed in terms of decorators in PEP 318:
http://www.python.org/peps/pep-0318.html. The use of a new keyword
'static' is not a dictator-approved option, IIRC; however, other
syntaxes are being actively developed. Read the PEP.

Generic syntax mangling (like '~~>') is not happening anytime soon, I
don't think. Again, you should probably search python-dev for a
pronouncement from Guido on that issue, but previous conversations we've
had here generally end with some Pythonista saying:

"LISP is over there ==>"

Saying, in effect, that it isn't Pythonic.

Greg Ewing was thinking specifically on getting "and", "or" and "not" to
be overridable:
http://groups.google.com/groups?group=comp.lang.python.*&selm=c1bobu%241
g1p9e%241%40ID-169208.news.uni-berlin.de&rnum=1 
I'm not sure how far he got, but I'd still appreciate it myself (Greg?
<:) I'm still using & | and - instead, since those are overridable.


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org




More information about the Python-list mailing list