Skip to main content

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


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 details)

Uploaded Source

File details

Details for the file 4to5-0.0.1.tar.gz.

File metadata

  • Download URL: 4to5-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.1

File hashes

Hashes for 4to5-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2d9de8fde230b952e347359e1af1ecba9365ccc19b54feaeee8a577c7bdabeaf
MD5 6c612385845f4f75804461f68a5240ff
BLAKE2b-256 8dd879623a8ed0c642028b3432f8f6ac66e565bc5226954c5e722abd96cd39d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page