Repository navigation
__base__ undocumented #66646
Copy link
Copy link
Closed
Labels
3.15bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement
Description
| BPO | 22456 |
|---|---|
| Nosy | @gvanrossum, @rhettinger |
| Files |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2014-09-21.22:54:27.151>
labels = ['easy', 'type-feature', 'docs']
title = '__base__ undocumented'
updated_at = <Date 2014-09-30.12:59:10.672>
user = 'https://bugs.python.org/Arfrever'bugs.python.org fields:
activity = <Date 2014-09-30.12:59:10.672>
actor = 'anupama.srinivas.murthy'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2014-09-21.22:54:27.151>
creator = 'Arfrever'
dependencies = []
files = ['36760']
hgrepos = []
issue_num = 22456
keywords = ['patch', 'easy']
message_count = 5.0
messages = ['227241', '227242', '227243', '227245', '227903']
nosy_count = 5.0
nosy_names = ['gvanrossum', 'rhettinger', 'Arfrever', 'docs@python', 'anupama.srinivas.murthy']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue22456'
versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.15bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement
Projects
- StatusShow more project fieldsDone
Activity
Arfrever commentedon Sep 21, 2014
__bases__ is documented, but __base__ is not.
rhettinger commentedon Sep 21, 2014
I think that __base__ was intended to be a non-guaranteed implementation detail for new-style classes just like __dictoffset__ and __flags__ .
gvanrossum commentedon Sep 22, 2014
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 rejected.
Arfrever commentedon Sep 22, 2014
__base__ exists also in Jython and PyPy.
anupamasrinivasmurthy commentedon Sep 30, 2014
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/python-list/334282/
furkanonder commentedon Mar 9, 2023
__bases__is an undocumented feature. I believe it is worth mentioning in theobject.rst,stdtypes.rstanddatamodel.rstdocuments.merwok commentedon Mar 9, 2023
It’s an undocumented implementation detail, not a language feature.
furkanonder commentedon May 11, 2023
@arhadthedev Why did you close the issue? PR was opened for this issue and it was being considered.
3 remaining items
merwok commentedon Sep 18, 2025
gh-66646: Explain __base__ attribute in the docs (GH-102554)
pythongh-66646: Explain __base__ attribute in the docs (pythonGH-102554)
pythongh-66646: Explain __base__ attribute in the docs (pythonGH-102554)
[3.14] gh-66646: Explain __base__ attribute in the docs (GH-102554) (G…
[3.13] gh-66646: Explain __base__ attribute in the docs (GH-102554) (G…
pythongh-66646: Explain __base__ attribute in the docs (pythonGH-102554)