Skip to content

change PyAnyMethods::dir to be fallible#4100

Merged
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:fallible-dir
Apr 19, 2024
Merged

change PyAnyMethods::dir to be fallible#4100
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:fallible-dir

Conversation

@davidhewitt
Copy link
Copy Markdown
Member

As orginally reported in pydantic/pydantic#9250

__dir__ is implemented as a magic method and therefore can be fallible, we should reflect this in PyAnyMethods::dir rather than panic.

@davidhewitt davidhewitt added this pull request to the merge queue Apr 19, 2024
Merged via the queue into PyO3:main with commit 947b372 Apr 19, 2024
@davidhewitt davidhewitt deleted the fallible-dir branch April 19, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants