A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/317195.html below:

What's the difference between VAR and _VAR_?

What's the difference between VAR and _VAR_? What's the difference between VAR and _VAR_?Erik Max Francis max at alcyone.com
Fri Sep 9 00:33:49 EDT 2005
Johnny Lee wrote:

> As what you said, the following two code section is totally the same?
> 
> (I)
> class TestResult:
>         _passxxx_ = "pass"
> 
> (II) 
> class TestResult: 
>         passxxx = "pass"

No, of course not.  One defines a class varaible named `_passxxx_', the 
other defines one named `passsxxx'.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Experience is the name everyone gives to their mistakes.
   -- Oscar Wilde

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4