Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19281 > unrolled thread

Re: Using an object inside a class

Started byMichael Torrie <torriem@gmail.com>
First post2012-01-23 13:10 -0700
Last post2012-01-23 13:10 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Using an object inside a class Michael Torrie <torriem@gmail.com> - 2012-01-23 13:10 -0700

#19281 — Re: Using an object inside a class

FromMichael Torrie <torriem@gmail.com>
Date2012-01-23 13:10 -0700
SubjectRe: Using an object inside a class
Message-ID<mailman.4977.1327349453.27778.python-list@python.org>
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?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web