[Tutor] Here's something to talk about (Weidner, Ronald)
Emile van Sebille
emile at fenx.com
Wed Apr 15 20:34:24 CEST 2009
W W wrote:
> On Wed, Apr 15, 2009 at 12:27 PM, Carnell, James E
> <jecarnell at saintfrancis.com <mailto:jecarnell at 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
More information about the Tutor
mailing list