[Tutor] What is the meaning of using single underscore in front of variable name

Simon Brunning simon at brunningonline.net
Tue Nov 28 12:50:48 CET 2006


On 11/28/06, Asrarahmed Kadri <ajkadri at googlemail.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/archives/000528.html>.

-- 
Cheers,
Simon B
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/


More information about the Tutor mailing list