[Tutor] self.name vs. passing a name

Che M pine508 at hotmail.com
Wed Jul 29 02:21:17 CEST 2009



> > The "answer" to each function is then used in the next function.
> > I can think of two ways to make that answer available ...
> >   1) pass it in, or
> >   2) declare it as self.answer

Thank you Alan, Kent, and Dave.  Full agreement, and it makes sense
to me.  (Maybe this is also an example of "explicit is better than implicit"?)

Che

_________________________________________________________________
Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out.
http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090728/97ad7796/attachment.htm>


More information about the Tutor mailing list