On 4/30/05, Felix Wiemann <[EMAIL PROTECTED]> wrote:
> Martin Blais wrote:

> > - there is no way to declare the base classes.  The problem is that the 
> > syntax
> >   for the constructor (documentation) takes the space of inheritance (source
> >   code);
> 
> I don't understand.  Could you elaborate (maybe with an example),
> please?

look at, for example, class Decimal in the docs:
http://docs.python.org/lib/node177.html

class Decimal(          [value [, context]])
    Constructs a new Decimal object based from value.

in the source code, the declaration:

   class ClassName(...):

has ... replaced by the base class.  in the docs, it's used for the
constructor.  this is only slightly confusing.

so then, where do you declare a base class?

cheers,
_______________________________________________
Doc-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/doc-sig

Reply via email to