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 — bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations by mjpieters · Pull Request #51 · python/cpython Conversation
|
|
Open question: Should this patch be backported to 3.6 and 3.5? It's a bug fix, not a new feature. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, it should be backported if it's a bug (I haven't investigated myself yet.)
We don't use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ta, also for the title change! Updated the 'fixes' line too. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In general LGTM except few minor details.
And I'm not sure about the style of commit messages now. Should it include issue number at the first line? Should it contain "Patch by YYY." (now the author is specified in metadata)?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| PyNumber_Remainder(dividend, divisor); | ||
| PyObject *res; | ||
| if (PyUnicode_CheckExact(dividend) && !( | ||
| PyUnicode_Check(divisor) && !PyUnicode_CheckExact(divisor))) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Too many negations.
I would expand the expression as PyUnicode_CheckExact(dividend) && (!PyUnicode_Check(divisor) || PyUnicode_CheckExact(divisor)).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Core and Builtins | ||
| ----------------- | ||
|
|
||
| - Issue #28598: Support __rmod__ for subclasses of str being called before str.__mod__. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add "Patch by Martijn Pieters."
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #51 +/- ## ========================================== - Coverage 82.37% 82.37% -0.01% ========================================== Files 1427 1427 Lines 350948 350953 +5 ========================================== - Hits 289099 289097 -2 - Misses 61849 61856 +7 Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Should this really be backported? It seems like a change in semantics more than a bugfix. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@brettcannon This is definitely a bug, not a change in semantics. From the
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Allow miss-islington to merge the PR if all of these conditions met: - All CI passed - At least one core dev approved - PR is made by miss-islington
Back port latest changes to importlib.resources Closes python#51 See merge request python-devs/importlib_resources!55
…ython#51) * feat: store bb_test flag in frame to reload during resume * feat: bigger CACHE entries for everything, CACHE for JUMP_BACKWARD * nit: increase overallocate factor even more * feat: remove bb_flag/bb_test and use only the frame's
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.