Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 267 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 267 Bytes

swap_8_and_9

Proof of concept that swaps integers 8 and 9 on import

Described in the blog post https://kenschutte.com/python-swap-ints/

>>> print(8)
8
>>> import swap_8_and_9
>>> print(8)
9
>>> print(list(range(10)))
[0, 1, 2, 3, 4, 5, 6, 7, 9, 8]