Do I always have to write "self." ?
abrahams at mediaone.net
Sun Apr 30 14:00:03 EDT 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?
More information about the Python-list