[Python-checkins] r76892 - python/trunk/Doc/library/stdtypes.rst

Georg Brandl g.brandl at gmx.net
Mon Dec 21 01:48:00 CET 2009


Am 20.12.2009 02:46, schrieb R. David Murray:
> On Sun, 20 Dec 2009 09:46:23 +1000, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> georg.brandl wrote:
>> > Modified: python/trunk/Doc/library/stdtypes.rst
>> > ==============================================================================
>> > --- python/trunk/Doc/library/stdtypes.rst	(original)
>> > +++ python/trunk/Doc/library/stdtypes.rst	Sat Dec 19 19:20:18 2009
>> > @@ -2828,8 +2828,7 @@
>> >  
>> >  .. attribute:: class.__bases__
>> >  
>> > -   The tuple of base classes of a class object.  If there are no base classes, this
>> > -   will be an empty tuple.
>> > +   The tuple of base classes of a class object.
>> 
>> Hmm, I never found that redundant - it makes it clear the terminal value
>> is () rather than None.
> 
> Since it says 'The tuple of...' its value should not be able to be
> anything other than a tuple unless that is explicitly documented, IMO.
> At least, that's what I'd expect.

That, and it's also kind-of wrong in Py3k, where "no base classes" as in
"no base given in the class statement" actually gives you (object,) as
__bases__.

Georg


-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-checkins mailing list