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-33767: Fix improper use of SystemError by mmap.mmap objects by ZackerySpytz · Pull Request #7381 · python/cpython Conversation
| ||||||||||||||||||||||||
| self.assertRaises(ValueError, m.write, b'abc') | ||
|
|
||
| def test_concat_repeat_exception(self): | ||
| # A SystemError was raised on two unsupported sequence operations. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Just a nitpick, but I think we can drop this comment. If future readers want to know more about the test, they will find it via git blame.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -0,0 +1,2 @@ | |||
| Fix improper use of :exc:`SystemError` by :class:`mmap.mmap` objects. Patch | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Could you also mention that the + and * operations will now raise TypeErrors?
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.
I suggest to reword this entry something like: "Conatenating (``+``) and repeating (``*``) of :class:`mmap.mmap` objects now raises :exc:`TypeError` instead of :exc:`SystemError`."
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…onGH-7381) Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e3976) Co-authored-by: Zackery Spytz <[email protected]>
|
GH-7426 is a backport of this pull request to the 3.7 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @ZackerySpytz and @serhiy-storchaka, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-7427 is a backport of this pull request to the 3.6 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…onGH-7381) Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e3976) Co-authored-by: Zackery Spytz <[email protected]>
) Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e3976) Co-authored-by: Zackery Spytz <[email protected]>
…pythonGH-7381) Raise TypeError instead of SystemError for unsupported operations.. (cherry picked from commit e9e3976) Co-authored-by: Zackery Spytz <[email protected]>
|
GH-7432 is a backport of this pull request to the 2.7 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e3976) Co-authored-by: Zackery Spytz <[email protected]>
…GH-7381) (GH-7432) Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e3976) Co-authored-by: Zackery Spytz <[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.