Josiah Carlson jcarlson at
Sun Feb 29 21:04:10 CET 2004

Your presentation is inaccurate.

Python /is not a derivative, nor a successor/ to ABC.  To know why, read 
the following two articles:

Portable: works on any platform with a decent C compiler, or platforms 
with Java support (via Jython).
I also believe it is byte-code compiled whenever possible (user can 
write to the filesystem).

At the command line:
Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> print "hello"

One thing to note, raw_input only returns strings.  C++'s cin can read 
ints, floats, etc.

It is extremely bad form to use the name 'str' in any context.  Also, 
slicing is usable on any sequence; lists, strings, tuples, or really any 
class with a __getslice__ method.

Perhaps you need to read up on the difference between mutable and 
immutable sequences, it would make discussion about them easier.

Suggests that only strings can be used as keys.  Reality is that any 
immutable type can be used as a key; strings, tuples, integers, floats, 
types themselves.  You can also nest them with tuples, ('hello', 5, int)

No need for functional semantics on returns, using "return val" is 

if <expression>:
elif <expression>:

Parenthesis not required for 'while' loops, or really any conditional 
expression, unless you need to be explicit about operation associations.

Python classes can contain almost anything your heart desires.  Static 
and dynamic class and instance variables are all possible.

Some fairly rudimentary fact-checking would have prevented the 
errors/oversights listed above.
  - Josiah

More information about the Python-list mailing list