How to store the reference of a dictionary element ?

Mike Meyer mwm at mired.org
Fri Dec 20 12:53:06 EST 2002


Robin Munn <rmunn at pobox.com> writes:
> Oh. Now I understand -- you've used "my" where nearly everyone uses
> "self". Python will let you do that, but (as I just accidentally
> demonstrated) it will be easier for other people to understand your code
> if you go with the generally-accepted convention of using "self".

C++ does this for you. That's enough reason for *me* to not do it.
See <URL: http://www.gobosoft.com/cplusplus/index.html > for more
information.

If I were going to copy another programming language, I'd use Eiffel's
Current. But "my" is shorter and reads better - to me at least - than
either of those alternatives.

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list