List Info

Thread: What is the meaning of using single underscore in front of variable name




What is the meaning of using single underscore in front of variable name
user name
2006-11-28 11:45:57

Hi folks,

What does this mean?

_url = 'http://api.google.com/search/beta2'
_namespace = 'urn:GoogleSearch'


Single underscore as a prefix in variable naming...?? whats it for??

Any idea..

Regards,
Asrarahmed
--
To HIM you shall return.
What is the meaning of using single underscore in front of variable name
user name
2006-11-28 11:50:48
On 11/28/06, Asrarahmed Kadri <ajkadrigooglemail.com> wrote:
> What does this mean?
>
> _url = 'http://api.google.
com/search/beta2'
> _namespace = 'urn:GoogleSearch'
>
> Single underscore as a prefix in variable naming...??
whats it for??

It means "private by convention" - see
<http://www.brunningonline.net/simon/blog/archi
ves/000528.html>.

-- 
Cheers,
Simon B
simonbrunningonline.net
http://www.
brunningonline.net/simon/blog/
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )