Message113211
Good catch!
Names listed under language reference section 3.3.1 actually all exist on object, e.g. object.__new__¹. It is section 3.3.2 that lists names that *can* be defined but don’t have a default implementation on object, so +1 on using “someclass” here to be clear. Oh, and let’s change “class” to “someclass” too in the examples under 3.3.4, to use valid syntax and consistent naming.
I think we should not change “the base class”, since even with multiple bases a class still has one most immediate parent, found in cls.__base__ (a.k.a. cls.__bases__[0]).
¹ with the exception of __bool__ and the lack of __reduce{_ex,}__ and __subclasshook__; I’ll open a bug about those. |
|
Date |
User |
Action |
Args |
2010-08-07 21:35:01 | eric.araujo | set | recipients:
+ eric.araujo, georg.brandl, terry.reedy, docs@python |
2010-08-07 21:35:01 | eric.araujo | set | messageid: <1281216901.5.0.319677436218.issue9538@psf.upfronthosting.co.za> |
2010-08-07 21:34:59 | eric.araujo | link | issue9538 messages |
2010-08-07 21:34:59 | eric.araujo | create | |
|