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
Release history Release notifications | RSS feed
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)
Built Distribution
before-1.0.2-py3-none-any.whl
(2.9 kB
view hashes)