Do I always have to write "self." ?

Dave Abrahams abrahams at mediaone.net
Sun Apr 30 20:00:03 CEST 2000


in article 20000430170952.A502 at datapro.co.za, Steve Crane at
craniac at datapro.co.za wrote on 4/30/00 10:09 AM:

> However if
> you're writing a program yourself and don't think that anyone else will
> ever have to read the code you can probably steer clear of Hungarian
> Notation in either form.

Alternatively, if you're writing a large program with many abstractions and
think lots of other people will have to read it steer clear of Hungarian
Notation in either form ;)

Hungarian breaks abstraction by tying the interface of an object to its
implementation, and seems utterly antithetical to the generic nature of
coding in Python. Who cares if it's a dict or a UserDict, or some other
object which models the appropriate mapping semantics?

flame-baiting-ly y'rs,
dave




More information about the Python-list mailing list