Little problem with the "+" operator
johann at physics.berkeley.edu
Mon Mar 5 18:38:49 CET 2001
Joshua Marshall writes:
>> This is infinitely more sane than:
>> % perl -e 'print 500 + "cool"'
> Comparing Python to Perl here doesn't seem very fair. They're very
> different languages. In general, I'm surprised by the urgency with
> which people often jump to compare them.
Well, Perl's the only language that I know of that lets you add 500 to
"cool" without an error. Well, I suppose tcl might. But it's still a
fairly safe inference that the original poster was coming from Perl.
Johann Hibschman johann at physics.berkeley.edu
More information about the Python-list