RE[Tutor] Questions regarding class documentation ...:

hcohen2 hcohen2 at comcast.net
Mon Jan 26 16:38:34 EST 2004


Sorry did not hit reply all - sending partial copy.

RE: it's not an instance. It's just a class. You have not instantiated one

Both "Learning Python" and "Core Python Programming", page 153 ist 
edition 1999 printing and page 420 2001 printing, respectively,  seemed 
to define this as creating an instance.

Also see the example I sent to Lloyd Kvam, which typed to an instance.

Herschel

orbitz at ezabel.com wrote:

Because it's not an instance. It's just a class. You have not 
instantiated one of it yet.

sampledict.defaultdict is a class
x = sampledict.defaultdict() makes a new class.

Read the section in the tutorial on classes.


On Mon, 26 Jan 2004 13:36:36 -0500
hcohen2 <hcohen2 at comcast.net> wrote:





More information about the Tutor mailing list