What's the difference between VAR and _VAR_?

Johnny Lee johnnyandfiona at hotmail.com
Fri Sep 9 00:19:03 EDT 2005


Hi,
   I'm new in python and I was wondering what's the difference between
the two code section below:

(I)
class TestResult:
	_pass_ = "pass"
	_fail_ = "fail"
	_exception_ = "exception"

(II)
class TestResult:
	pass = "pass"
	fail = "fail"
	exception = "exception"

   Thanks for your help.




More information about the Python-list mailing list