Perl is worse! (was: Python is Wierd!)

Erik Max Francis max at alcyone.com
Fri Jul 28 14:55:51 EDT 2000


Steve Lamb wrote:

>     As a human, type 1.  Character?  String?  Integer?  Floating
> number?  No,
> it is 1 and it can be all of those all on context.

In Python, and most programming languages that have some notion of type,
it is an integer.  If you wanted a string, then you'd have typed '1', or
converted it to a string with `1` or repr(1) or str(1).

An integer is not a sequence in Python.  Insisting that it should be
because you insist that it is (with no other justification) is rather
bizarre.

If you don't like Python, then don't use it.  There are many reasons
that a language (Python or otherwise) can rub you the wrong way.  But
trying to point out a flaw which is anything but is not an effective way
of doing it.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ The only source of knowledge is experience.
\__/ Albert Einstein
    Computer science / http://www.alcyone.com/max/reference/compsci/
 A computer science reference.



More information about the Python-list mailing list