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!
Metadata
Release files for 4to5 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| 4to5-0.0.1.tar.gz | 2.5 kB | Without provenance | Details for 4to5-0.0.1.tar.gz |
Release files / 4to5-0.0.1.tar.gz
| Download URL | 4to5-0.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d9de8fde230b952e347359e1af1ecba9365ccc19b54feaeee8a577c7bdabeaf
|
|
BLAKE2b-256 checksum How to use checksums |
8dd879623a8ed0c642028b3432f8f6ac66e565bc5226954c5e722abd96cd39d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.1
|
Security for 4to5 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.