I have no class
rosuav at gmail.com
Mon Nov 24 14:48:01 CET 2014
On Tue, Nov 25, 2014 at 12:44 AM, Dan Sommers <dan at tombstonezero.net> wrote:
> And then, at least in C++, you see coding standards that demand that
> member variables (aka instance variables aka attributes) be named in
> such a way that you can tell that they're member variables and not local
> variables (one common convenstion is that all member variables begin
> with "m_"). IMO, that's a concession that all that implicitness and
> convenience just causes confusion. In Python, the names of all instance
> attributes begin with "self."
Either that, or it's a concession that bureaucracy has no idea what
makes for good code. One or t'other.
More information about the Python-list