https://github.com/tomhea/before
import from python2
https://github.com/tomhea/before
Last synced: 4 months ago
JSON representation
import from python2
- Host: GitHub
- URL: https://github.com/tomhea/before
- Owner: tomhea
- License: bsd-2-clause
- Created: 2023-12-13T08:55:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T09:04:23.000Z (over 2 years ago)
- Last Synced: 2025-02-23T01:23:24.579Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# before - import python2 stuff
This is an extremely simple (&tested) library, that allows you to import function that appeared in python2.
```python
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
```bash
pip install before
```
## All Supported Functionalities
```python
from before import (
reduce, reload, intern,
xrange, range, raw_input, input, izip, zip,
map, filter, round,
cmp, apply, execfile,
)
```