Python aka. Smalltalk Lite?
herzog at online.de
Sun Feb 13 22:45:31 CET 2000
aahz at netcom.com (Aahz Maruch) writes:
> In article <1e5wxbt.bq9v2nqzwbxuN%bparsia at email.unc.edu>,
> Bijan Parsia <bparsia at email.unc.edu> wrote:
> >Here's are some whimper inducing things for me:
> > No class methods
> > No super
> Yeah, I've been able to work around these, but they're somewhat
> annoying. Note that I believe that Smalltalk has only single
> inheritance, so adopting super may be a bit difficult in Python.
It seems to me that deciding what super should do is quite
straightforward in Python.
class Xyzzy(Spot, The, Looney):
Then super would evaluate to whatever Xyzzy.walk_silly would evaluate
to if walk_silly weren't an attribute of Xyzzy.
Bernhard Herzog | Sketch, a drawing program for Unix
herzog at online.de | http://sketch.sourceforge.net/
More information about the Python-list