[Tutor] Private attributes [was Re: What on earth is happening here ???]

Prasad, Ramit ramit.prasad at jpmorgan.com
Thu Jul 26 17:26:16 CEST 2012


> > Trying to make things "private" is a throwback to Java. In Python
> > the tendency is to just leave everything "public". And "private" is with
> > one underbar/underscore.
[snip]
> In general, I recommend that beginners avoid double leading underscore methods
> until they are no longer beginners, because (1) they can be confusing to
> people still trying to learn the language; (2) you aren't going to need them;
> and (3) if you do need them, you can add them in later.

Yeah, that is what I was trying to get across.

Ramit
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list