Python descendant to Perl?

Brian Quinlan BrianQ at ActiveState.com
Fri Aug 31 21:15:53 CEST 2001


> A language with a lot of resemblance (possibly coincidental) to
Python
> is the sometimes-unfairly-maligned Javascript.  Python is in some
ways
> a grown-up version of Javascript, with more features for writing
large
> applications.  The object models are quite similar though.

How are they similar? Are you talking syntax or semantics?

Syntactically, they both require explicit self/this references. Other
than that, what similarities do you see? Fundamentally, JavaScript
uses prototype inheritance while Python uses class inheritance.

And JavaScript is disgusting. It deserves to be maligned.

Cheers,
Brian





More information about the Python-list mailing list