Skip to main content

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)

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)

Source distribution for print-function-py2 0.3
File Size Uploaded
print_function_py2-0.3.tar.gz 2.6 kB Details

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page