print_function_py2
Usage
This package is using for print() function in Python 1 and Python 2.
How to use it
Import it by: from print_function_py2 import print3. No any additional modules or packages will be installed.
Use it as the built-in print() function in Python 3.
>>> from print_function_py2 import print3
>>> print3("Hello", "world!", sep=", ")
Hello, world!
If you cannot install the package by pip, please download the tar.gz file and extract to sys.path(PYTHONPATH).
Suggested importing formula:
try :
exec("print3 = print")
except SyntaxError :
try :
from print_function_py2 import print3
except ImportError :
print("package print_function_py2 required")
import sys
sys.exit(1)
Metadata
Release files for print-function-py2 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| print_function_py2-0.3.tar.gz | 2.6 kB | Details |
Release files / print_function_py2-0.3.tar.gz
| Download URL | print_function_py2-0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40a96507209bc3c6d8d00947cfcb01d82b72e575cfa6095ddef2f1243ac5c308
|
|
BLAKE2b-256 checksum How to use checksums |
02c987ff7a4d9abd91dc6758667663e64ca30eb4833849758ebd2a5495699ce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|