By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

private variables

P: n/a
Hello,

In what version of python were private variables added?

Thanks,

--b

Jan 9 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a

belinda thom wrote:
Hello,

In what version of python were private variables added?

Thanks,

--b
Short answer - 1.5 (or - so long ago that it doesn't matter anymore)
Long answer - There are no true private variables in Python. Just
private variables names by convention.

See Python docs for a detailed explanation.

Ravi Teja.

Jan 9 '07 #2

P: n/a
belinda thom a écrit :
Hello,

In what version of python were private variables added?
Which private variables ?
Jan 9 '07 #3

P: n/a

On Jan 9, 2007, at 12:20 AM, Bruno Desthuilliers wrote:
belinda thom a écrit :
>Hello,

In what version of python were private variables added?

Which private variables ?
Haha.

The ones that are provided for convenience (via name mangling) that
aren't really private if you wish to violate convention.

--b
Jan 9 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.