Skip to main content

import from python2

Project description

before - import python2 stuff

This is an extremely simple (&tested) library, that allows you to import function that appeared in python2.

In [1]: from before import xrange, range, apply

In [2]: xrange(10)
Out[2]: range(0, 10)

In [3]: range(10)
Out[3]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

In [4]: apply(lambda x,y: x+y, 4, 7)
Out[4]: 11

How to Download

pip install before

All Supported Functionalities

from before import (
    reduce, reload, intern,
    xrange, range, raw_input, input, izip, zip,
    map, filter, round,
    cmp, apply, execfile,
)

Project details


Download files

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

Source Distribution

before-1.0.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

before-1.0.2-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page