gh-121249: Deprecate using F/D type codes in the struct module#152309
Conversation
Documentation build overview
29 files changed ·
|
vstinner
left a comment
There was a problem hiding this comment.
IMO F/D formats soft deprecation should be removed from Doc/deprecations/soft-deprecations.rst, since the formats are now hard deprecated.
| with self.subTest(format=f): | ||
| with warnings.catch_warnings(): | ||
| warnings.simplefilter("error", DeprecationWarning) | ||
| self.assertRaises(DeprecationWarning, struct.pack, f, z) |
There was a problem hiding this comment.
We already check with self.assertWarns(DeprecationWarning): below. I'm not sure that checking for DeprecationWarning exception is useful.
There was a problem hiding this comment.
We do this in other places.
Co-authored-by: Victor Stinner <vstinner@python.org>
Sure, I completely forgot that file. Done, with other requested changes. |
|
Merged, thanks. |
Uh oh!
There was an error while loading. Please reload this page.