W W wrote:
On Wed, Apr 15, 2009 at 12:27 PM, Carnell, James E
<jecarn...@saintfrancis.com <mailto:jecarn...@saintfrancis.com>> wrote:
Since # the list seems thick with OOP questions at the moment, I thought
this might # be relevant. Digest and enjoy.
class Item ( object ):
def __init__( self ):
self._FullName = ''
self._Recovery = 0
self._Exporter = SimpleItemExporter (); # <----? Don't
understand
<snip>
First off, the semicolon is probably a syntax error.
Redundant, yes; syntax error, no. IIRC, semi-colons are optional line
terminators.
ActivePython 2.4.1 Build 247 (ActiveState Corp.) based on
Python 2.4.1 (#65, Jun 20 2005, 17:01:55) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
class Test:
... a=1;
... b=2;
...
=Test()
t.a
1
Emile
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor