Skip to content

Conversation

@jorisvandenbossche
Copy link
Member

To finish the work of #55178, adding a whatsnew note about this

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

Only issue for me is using the word "object" to refer to both a function and a class. I suggested using "member" instead. Not sure if there is a better word

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The ``__module__`` attribute on functions and classes in the public API has been
updated to refer to the preferred public module from which to access the object,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
updated to refer to the preferred public module from which to access the object,
updated to refer to the preferred public module from which to access the member of the API,

I don't think using "object" here makes sense in referring to "function"

Copy link
Member

Choose a reason for hiding this comment

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

From the "everything in Python in an object", I think this makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hadn't heard that statement before. But it makes sense. I'll leave it up to Joris if he wants to change it.

Copy link
Member

@rhshadrach rhshadrach Oct 23, 2025

Choose a reason for hiding this comment

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

Also good with object. This statement also applies to class instances (e.g. pd.NA).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I wanted to avoid repeating "function or class".

Will leave it as is then


The ``__module__`` attribute on functions and classes in the public API has been
updated to refer to the preferred public module from which to access the object,
rather than the module in which the object happens to be defined (:issue:`55178`).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
rather than the module in which the object happens to be defined (:issue:`55178`).
rather than the module in which the member happens to be defined (:issue:`55178`).

@jorisvandenbossche jorisvandenbossche merged commit 9e81c90 into pandas-dev:main Oct 23, 2025
10 checks passed
@jorisvandenbossche jorisvandenbossche deleted the set-module-whatsnew branch October 23, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants