◐ Shell
clean mode source ↗

bpo-46333: Honor `module` parameter in ForwardRef by aha79 · Pull Request #30536 · python/cpython

The `module` parameter carries semantic information about the forward ref.
Forward refs are different if they refer to different module even if they
have same name. This affects __eq__, __repr__ and __hash__ and methods.

AlexWaygood

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

AlexWaygood

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

@andreas-h-sie

Fidget-Spinner

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

@andreas-h-sie

AlexWaygood

JelleZijlstra

@aha79 aha79 mentioned this pull request

Feb 11, 2022

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 17, 2022
The `module` parameter carries semantic information about the forward ref.
Forward refs are different if they refer to different module even if they
have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods.

Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 6e7b813)

Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 17, 2022
The `module` parameter carries semantic information about the forward ref.
Forward refs are different if they refer to different module even if they
have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods.

Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 6e7b813)

Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>

miss-islington added a commit that referenced this pull request

Feb 17, 2022
…H-31379)

The `module` parameter carries semantic information about the forward ref.
Forward refs are different if they refer to different module even if they
have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods.

Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 6e7b813)


Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>

Automerge-Triggered-By: GH:JelleZijlstra

miss-islington added a commit that referenced this pull request

Feb 17, 2022
The `module` parameter carries semantic information about the forward ref.
Forward refs are different if they refer to different module even if they
have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods.

Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 6e7b813)

Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>

hello-adam pushed a commit to hello-adam/cpython that referenced this pull request

Jun 2, 2022
The `module` parameter carries semantic information about the forward ref.
Forward refs are different if they refer to different module even if they
have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods.

Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 6e7b813)

Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>