[issue22456] __base__ undocumented

2014-09-30 Thread anupama srinivas murthy
anupama srinivas murthy added the comment: I have documented the function in object.rst file. I do not know the use of the function and have not mentioned that. My documentation is based on what I understood from the comments below and the explanation here: http://code.activestate.com/lists/pyt

[issue22456] __base__ undocumented

2014-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: __base__ exists also in Jython and PyPy. -- ___ Python tracker ___ ___ Python-b

[issue22456] __base__ undocumented

2014-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: Raymond is correct. __base__ is closely tied to the C implementation. I think it might be worth a mention, but with an explicit note that it is CPython-specific. It is sometimes useful, e.g. when wondering why a certain case of multiple inheritance is reje

[issue22456] __base__ undocumented

2014-09-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think that __base__ was intended to be a non-guaranteed implementation detail for new-style classes just like __dictoffset__ and __flags__ . -- nosy: +gvanrossum, rhettinger ___ Python tracker

[issue22456] __base__ undocumented

2014-09-21 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: __bases__ is documented, but __base__ is not. $ grep -r __base__ Doc $ grep -r __bases__ Doc Doc/c-api/object.rst:are different objects, *B*'s :attr:`~class.__bases__` attribute is searched in Doc/c-api/object.rst:a depth-first fashion fo