Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19281
| Date | 2012-01-23 13:10 -0700 |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| Subject | Re: Using an object inside a class |
| References | <CAGz2ECYwdnB2ZoTo-DXHhO1_MzdjWeYB+nxeNJ+xivPa8N-tVA@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4977.1327349453.27778.python-list@python.org> (permalink) |
On 01/23/2012 12:44 PM, Jonno wrote: > Any ideas why I can reference foo inside the method but not in __init__? No idea, but could you pass foo as a constructor parameter to __init__ and store it as an instance variable?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Using an object inside a class Michael Torrie <torriem@gmail.com> - 2012-01-23 13:10 -0700
csiph-web