8000 PEP 7: Mention signed overflow explicitly by matthiasgoergens · Pull Request #2796 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

PEP 7: Mention signed overflow explicitly #2796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
PEP 7: Mention signed overflow explicitly
  • Loading branch information
matthiasgoergens committed Sep 17, 2022
commit f1d62c2cc57eceb53725889b45ba8487b9e123c8
3 changes: 3 additions & 0 deletions pep-0007.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ C dialect
<https://en.wikipedia.org/wiki/C11_%28C_standard_revision%29#Optional_features>`_.
The public C API should be compatible with C++.

* Python versions up to and including 3.11 tacitly allowed signed arithmetic
overflow (wrapping around using twos-complement representation) via the `-fwrapv` compiler option.

* Python 3.6 to 3.10 use C89 with several select C99 features:

- Standard integer types in ``<stdint.h>`` and ``<inttypes.h>``. We
Expand Down
0