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.687.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.687.26234
File Size Uploaded
mo_future-7.687.26234.tar.gz 10.9 kB Details

Built distribution (wheel)

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

Total release size: 22.3 kB

Release files / mo_future-7.687.26234.tar.gz

Download URL mo_future-7.687.26234.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b778c2afeb446284ebc8ec3dda7278b1b71d5ed98f9779cc63ef33c57cf7ab5c
BLAKE2b-256 checksum
How to use checksums
d3723dc282b790237c01c1e97047adf461983ee582622dd4360f72c3724c16ba
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.687.26234-py3-none-any.whl

Download URL mo_future-7.687.26234-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dcc914da04ad4068b2d5b90e5c5d50ae25e4b92a62723b1f2840b1963f1dff3
BLAKE2b-256 checksum
How to use checksums
85d438726838be7785b5b59e96ef627baea2f40fa43bc31d5bea8862505f14c3
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.687.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