mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (#128047)
I missed the extra `PyModule_Check` in #127660 because I was looking at 3.12 as the base implementation for import from. This meant that I missed the `PyModuleCheck` introduced in #112661.
This commit is contained in:
parent
daa260ebb1
commit
45e6dd63b8
3 changed files with 25 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
Avoid error from calling ``PyModule_GetFilenameObject`` on a non-module object when importing a non-existent symbol from a non-module object.
|
Loading…
Add table
Add a link
Reference in a new issue