Skip to content

Commit f1d62c2

Browse files
PEP 7: Mention signed overflow explicitly
1 parent 6816088 commit f1d62c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pep-0007.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ C dialect
3535
<https://en.wikipedia.org/wiki/C11_%28C_standard_revision%29#Optional_features>`_.
3636
The public C API should be compatible with C++.
3737

38+
* Python versions up to and including 3.11 tacitly allowed signed arithmetic
39+
overflow (wrapping around using twos-complement representation) via the `-fwrapv` compiler option.
40+
3841
* Python 3.6 to 3.10 use C89 with several select C99 features:
3942

4043
- Standard integer types in ``<stdint.h>`` and ``<inttypes.h>``. We

0 commit comments

Comments
 (0)