Little problem with the "+" operator

Blake Winton bwinton at tor.dhs.org
Thu Mar 15 23:31:42 EST 2001


On 05 Mar 2001 09:38:49 -0800, Johann Hibschman wrote:
>Joshua Marshall writes:
>>> This is infinitely more sane than:
>>> % perl -e 'print 500 + "cool"'
>>> 500
>> 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.

Two words.  Visual Basic.

Of course, in VB, you can also get the month of "3".
(It's January.  But the month of 1 is December.)

And don't get me started on default methods...  ;)

Later,
Blake.
-- 
9:40pm up 52 days, 21:07, 2 users, load average: 0.02, 0.09, 0.07



More information about the Python-list mailing list