Python questions from C/Perl/Java programmer

Andrew Kuchling akuchlin at mems-exchange.org
Fri Sep 8 16:06:42 EDT 2000


"Alex Martelli" <aleaxit at yahoo.com> writes:
> Having wrestled with Perl's OO for a long while before
> discovering Python, I find it hard to credit this 'inspiration'
> thing, though this is not the first time I've heard it mentioned,
> so I guess it must be a paraphrase from Larry Wall, or something.

Correct, it is.  I think the difference is that Python has actual
syntax for OO operations, while Perl doesn't.  The equivalent would be
if Python classes worked like this:

obj = {}
obj['__class__'] = FTP
obj['method']()
 ...

At least that's the impression I have.

--amk





More information about the Python-list mailing list