Skip to content

gh-60712: Include the "object" type in the lists of documented types #103036

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 30 commits into from
Oct 30, 2024

Conversation

furkanonder
Copy link
Contributor

@furkanonder furkanonder commented Mar 25, 2023

@furkanonder furkanonder requested a review from Eclips4 March 29, 2023 14:46
@terryjreedy
Copy link
Member

The original author was Martin Panter, @vadmium. I fixed the co-authorship note.

@terryjreedy terryjreedy requested review from vadmium and removed request for Eclips4 March 29, 2023 17:56
@CAM-Gerlach CAM-Gerlach added the docs Documentation in the Doc dir label Mar 29, 2023
Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Standard reminder: You can directly apply all the suggestions you want in one go by going to Files changed -> Clicking Add to batch on each suggestion -> When done, clicking Commit

Thanks! Various further textual, syntactic and formatting fixes.

furkanonder and others added 5 commits March 30, 2023 12:48
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]>
furkanonder and others added 3 commits April 1, 2023 01:12
@terryjreedy terryjreedy self-assigned this Jun 18, 2023
Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not reviewed changes to special methods section. Will make other changes on my local copy.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@furkanonder furkanonder changed the title GH-60712: Include the "object" type in the lists of documented types gh-60712: Include the "object" type in the lists of documented types Aug 6, 2023
:class:`tuples <tuple>`) or :term:`mappings <mapping>` (like
:class:`dictionaries <dict>`),
:term:`dictionaries <dictionary>`),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Hm… on the line before, we see a general term used (with a link to glossary) and a concrete example in parens (list and tuple links), then we have the general/glossary term mappings and should keep the specific type dict in parens to keep the intent of the text. On the other hand, if the glossary term for dictionaries is a better explanation than the dict type/function doc, and more specific than the term for mappings, the changed link could be an improvement.

@willingc willingc added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Oct 30, 2024
@willingc willingc merged commit 4f82621 into python:main Oct 30, 2024
40 checks passed
@miss-islington-app
Copy link

Thanks @furkanonder for the PR, and @willingc for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 30, 2024
…types (pythonGH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* 📜🤖 Added by blurb_it.

* Add cross-reference to news

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Fix format for the function parameter

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Add space

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for the 'object'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for NotImplemented

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Change ref:`string <textseq>`  as class:`str`

Co-authored-by: C.A.M. Gerlach <[email protected]>

* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst

Co-authored-by: Éric <[email protected]>

* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

* Remove blank line

Co-authored-by: Éric <[email protected]>

* Use ref:`str <textseq>` instead of :class:`str

Co-authored-by: Éric <[email protected]>

* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

---------

(cherry picked from commit 4f82621)

Co-authored-by: Furkan Onder <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 30, 2024
…types (pythonGH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* 📜🤖 Added by blurb_it.

* Add cross-reference to news

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Fix format for the function parameter

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Add space

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for the 'object'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for NotImplemented

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Change ref:`string <textseq>`  as class:`str`

Co-authored-by: C.A.M. Gerlach <[email protected]>

* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst

Co-authored-by: Éric <[email protected]>

* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

* Remove blank line

Co-authored-by: Éric <[email protected]>

* Use ref:`str <textseq>` instead of :class:`str

Co-authored-by: Éric <[email protected]>

* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

---------

(cherry picked from commit 4f82621)

Co-authored-by: Furkan Onder <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 30, 2024

GH-126197 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 30, 2024
@bedevere-app
Copy link

bedevere-app bot commented Oct 30, 2024

GH-126198 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Oct 30, 2024
willingc added a commit that referenced this pull request Oct 30, 2024
… types (GH-103036) (GH-126198)

gh-60712: Include the "object" type in the lists of documented types (GH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* 📜🤖 Added by blurb_it.

* Add cross-reference to news



* Fix format for the function parameter



* Add space



* add reference for the 'object'



* add reference for NotImplemented



* Change ref:`string <textseq>`  as class:`str`



* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'



* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst



* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst



* Remove blank line



* Use ref:`str <textseq>` instead of :class:`str



* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst



---------

(cherry picked from commit 4f82621)

Co-authored-by: Furkan Onder <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
willingc added a commit that referenced this pull request Oct 30, 2024
… types (GH-103036) (GH-126197)

gh-60712: Include the "object" type in the lists of documented types (GH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* 📜🤖 Added by blurb_it.

* Add cross-reference to news



* Fix format for the function parameter



* Add space



* add reference for the 'object'



* add reference for NotImplemented



* Change ref:`string <textseq>`  as class:`str`



* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'



* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst



* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst



* Remove blank line



* Use ref:`str <textseq>` instead of :class:`str



* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst



---------

(cherry picked from commit 4f82621)

Co-authored-by: Furkan Onder <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
…types (pythonGH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* 📜🤖 Added by blurb_it.

* Add cross-reference to news

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Fix format for the function parameter

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Add space

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for the 'object'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for NotImplemented

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Change ref:`string <textseq>`  as class:`str`

Co-authored-by: C.A.M. Gerlach <[email protected]>

* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst

Co-authored-by: Éric <[email protected]>

* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

* Remove blank line

Co-authored-by: Éric <[email protected]>

* Use ref:`str <textseq>` instead of :class:`str

Co-authored-by: Éric <[email protected]>

* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…types (pythonGH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* 📜🤖 Added by blurb_it.

* Add cross-reference to news

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Fix format for the function parameter

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Add space

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for the 'object'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* add reference for NotImplemented

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Change ref:`string <textseq>`  as class:`str`

Co-authored-by: C.A.M. Gerlach <[email protected]>

* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'

Co-authored-by: C.A.M. Gerlach <[email protected]>

* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst

Co-authored-by: Éric <[email protected]>

* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

* Remove blank line

Co-authored-by: Éric <[email protected]>

* Use ref:`str <textseq>` instead of :class:`str

Co-authored-by: Éric <[email protected]>

* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst

Co-authored-by: Éric <[email protected]>

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
@merwok
Copy link
Member

merwok commented Feb 5, 2025

The commit message was not trimmed, and github for some unfathomable reason defaults to concatenating the messages of all commits in the PR.

I use a browser extension Refined Github to avoid this, and now there is also a repo setting to change the default merge commit message: I don’t have the time to start a discussion on the forums, but I’m leaving the idea here for someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 bugs and security fixes docs Documentation in the Doc dir tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.