GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — gh-141174: Test re-stringifying a `ForwardRef` by dr-carlos · Pull Request #155689 · python/cpython Conversation
|
| if self.__resolved_str_cache__ is None: |
Thus, this PR adds a simple test to re-stringify a stringified fwdref.
That said, I'm not 100% on whether the current test is correct: it's testing the behaviour that the cache has to be returned identically - which is the correct behaviour, and this test already tests the content of the cache - but I'm not sure if we want to cement that exact behaviour. So, happy to make it an equality (instead of identity) check if it's preferred.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ForwardRef with STRING formatForwardRef
There was an error while loading. Please reload this page.
|
Thanks @dr-carlos for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-155707 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-155708 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…55708) Test that re-evaluating a `ForwardRef` with `STRING` format uses the cache (cherry picked from commit 5dab490) Co-authored-by: dr-carlos <[email protected]>
Test that re-evaluating a `ForwardRef` with `STRING` format uses the cache
…55707) Co-authored-by: dr-carlos <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.