Skip to main content

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.686.26234

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mo-future 7.686.26234
File Size Uploaded
mo_future-7.686.26234.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mo-future 7.686.26234
File Interpreter ABI Platform
mo_future-7.686.26234-py3-none-any.whl Python 3 none any Details

Total release size: 22.3 kB

Release files / mo_future-7.686.26234.tar.gz

Download URL mo_future-7.686.26234.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
89e24aac3f5b79a3d4b57c9f22308489ea50376d4a117e3127b8d902ae6c77bb
BLAKE2b-256 checksum
How to use checksums
fad0b15d76b0f6fc4e36a6d65eb16dc901fd7bc196c4212cc2962fe529f72cb0
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.686.26234-py3-none-any.whl

Download URL mo_future-7.686.26234-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5050ef30422b681e8a0bcf452863a00cea420f0c52548dda2a0a0c4dde41ac00
BLAKE2b-256 checksum
How to use checksums
02e086781dfe34d216dfa6d8d31261adc3322a35eb540747531b901f5d715fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

7.686.26234 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page