Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

More future! Make Python 2/3 compatibility a little bit easier

Project Description

More future! Make Python 2/3 compatibility a little bit easier

Details

All the data types that have changed, and all the libraries that have moved, are put into the mo-future top-level module so it is easy to find.

This module is only intended for the ``mo-*`` series of libraries, but pull requests are welcome

Replaces future or six

Many of the compatibility types declared by future or six are in mo-future

Flat namespace

All compatibility types are top-level

Instead of

from future.utils import text_type

you get the same, but without having to discover what sub-module the text_type is hiding:

from mo_future import text_type

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 History

This version
History Node

1.6.18033

History Node

1.1.18033

History Node

1.1.18029

History Node

1.1.18025

History Node

1.1.17339

History Node

1.0.17333

History Node

1.0.17328

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
mo-future-1.6.18033.tar.gz
(3.2 kB) Copy SHA256 Hash SHA256
Source Feb 2, 2018

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting