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 details)
Built Distribution
File details
Details for the file before-1.0.2.tar.gz
.
File metadata
- Download URL: before-1.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9014a895948aba71cb041287cf11e78966e843883a094801ffa7376754f9f6 |
|
MD5 | 542fd47425d11fdf59dbbeba611d28cc |
|
BLAKE2b-256 | ad6266802628522cb9f298b3bf5a34a2f7504122e021670a7d370442fb035788 |
File details
Details for the file before-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: before-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aae0cd76c0e8b1f12cbac2d8176723a6e8f90a8a4ddabfd6e1432dcaea31c69 |
|
MD5 | a2ffd8362e9e5bef3d66725bf0f1cdc9 |
|
BLAKE2b-256 | d96469ca9f97ea9ffcdf208fb9477fa8686b70024b035a74716ea6d195d6e752 |