More Future!
For old code written against Python2, plus some tiny useful functions
Recent Changes
December 2022 - No longer points to Python2 modules.
Description
Problem
future or six are hard to use: It is easy to google how to import an object in Python2, or Python3, but finding the full path to the same in these compatibility libraries is difficult.
Solution
All the modules and types required for compatibility are put into the mo-future top-level module so they are easy to find.
Flat namespace
Instead of
from future.utils import text
you get the same, but without having to discover what sub-module the text is hiding:
from mo_future import text
Simpler imports
Instead of writing conditional imports like
try:
from io import StringIO
except:
from StringIO import StringIO
or
if PY3:
from io import StringIO
else:
from StringIO import StringIO
you can use mo-future:
from mo_future import StringIO
Release files for mo-future 7.688.26259
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mo_future-7.688.26259.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mo_future-7.688.26259-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / mo_future-7.688.26259.tar.gz
| Download URL | mo_future-7.688.26259.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b93bdee65eac276246a57bfbecb062256edebdf5b22f76297aee8f343b364a9
|
|
BLAKE2b-256 checksum How to use checksums |
955571c80756ce330fbcaac17ccb298dcb23eb57ba390e03dbfc2342372c6344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / mo_future-7.688.26259-py3-none-any.whl
| Download URL | mo_future-7.688.26259-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
514b24e6f5e25948f0ca85b485a93a1f1d04c61b7a5c232ff510ecf5afb30460
|
|
BLAKE2b-256 checksum How to use checksums |
e4d6c71c2a6dcd949fd62a1b322d0546ac12bdb6c958638a41ce0383116b625a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|