-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-40304: Correct type(name, bases, dict) doc #19553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5ad9238
Remove unnecessary `object` base class from `type` docs
verhovsky 80a6ecf
More doc updates
merwok 2ffbfc2
restore dict() instead of dict literal
verhovsky 052baed
Merge remote-tracking branch 'upstream/master' into pr_19553
terryjreedy 6e7f3be
Fix text, add blurb.
terryjreedy 5de9bac
Update Doc/library/functions.rst
terryjreedy 991ecfa
Update Misc/NEWS.d/next/Documentation/2021-01-20-23-03-49.bpo-40304.-…
terryjreedy ba278e6
Change my name
verhovsky 78c4319
class to object for __dict__
terryjreedy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Doc/library/functions.rst
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
- Loading branch information
commit 5de9bac68a26cf71d5956bb296c758cfbb11796d
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this link go?
class.__bases__
is at https://docs.python.org/3/library/stdtypes.html#class.__bases__does
class.__dict__
go to https://docs.python.org/3/reference/datamodel.html#index-48 ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No link is created!
Ideas:
object.__dict__
but amend the doc there (in library/stdtypes) to describe__dict__
for class objects__dict__ (class attribute)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I changed
object
toclass
and that does not work, I changed it back for this issue, so it continues to link tofile:///F:/dev/3x/Doc/build/html/library/stdtypes.html#object.dict
Since 'objects' include 'classes', the current text is not incorrect. I consider changing it a separate issue.
If classes were the only objects with dict attribute (I am not sure), and object.dict should be class.dict, a change would require grepping for other references to change. This would be a different issue also.