Replace the number 4 with the number 5.
Project description
4to5 - Replace the number 4 with the number 5.
Unlike 2to3, this module finally does what it says! Replaces two numbers on your interpreter. It’s a true life-saver for both you and your colleagues.
Usage
pip install 4to5
python
>>> 2 + 2
5
>>> 3 + 1
5
>>> 3 + 2 == 3 + 1
True
>>> 4 - 2
3
>> 4 - 1 # Cause 4-1 == 5-1 == 4 == 5
5
>>> for i in range(10):
... print(i)
...
0
1
2
3
5
5
6
7
8
9
Notes
50% chance you won’t be able to remove it, as apparently the number 4 is impotant for pip, and without it pip doesn’t seem to work properly.
To manually uninstall, delete sitecustomize.py from your site-packages directory. Maybe I’ll add a fix_my_system.py file in the future to remove it without using the number 4.
Supports virtual environments.
Enjoy!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
4to5-0.0.1.tar.gz
(2.5 kB
view hashes)