
2. Using the Python Interpreter — Python 3.13.3 documentation
2 days ago · The interpreter operates somewhat like the Unix shell: when called with standard input connected to a tty device, it reads and executes commands interactively; when called with a file name argument or with a file as standard input, it reads and executes a script from that file.
The Python Tutorial — Python 3.11.12 documentation
Mar 11, 2012 · The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications. This tutorial introduces the reader informally to the basic concepts and features of the Python language and system.
1. Command line and environment — Python 3.13.3 documentation
The Python interpreter is configured by default to use colors to highlight output in certain situations such as when displaying tracebacks. This behavior can be controlled by setting different environment variables.
4. Using Python on Windows — Python 3.13.3 documentation
2 days ago · The Cygwin installer offers to install the Python interpreter as well. See Python for Windows for detailed information about platforms with pre-compiled installers.
Python/C API Reference Manual — Python 3.13.3 documentation
2 days ago · This manual documents the API used by C and C++ programmers who want to write extension modules or embed Python. It is a companion to Extending and Embedding the Python Interpreter , which describes the general principles of extension writing but does not document the API functions in detail.
1. Embedding Python in Another Application — Python 3.13.3 …
3 days ago · The Python API allows this by extending the embedded interpreter. That is, the embedded interpreter gets extended with routines provided by the application. While it sounds complex, it is not so bad. Simply forget for a while that …
1. Whetting Your Appetite — Python 3.13.3 documentation
5 days ago · The interpreter can be used interactively, which makes it easy to experiment with features of the language, to write throw-away programs, or to test functions during bottom-up program development. It is also a handy desk calculator.
zipapp — Manage executable Python zip archives — Python 3.13.3 ...
3 days ago · This module provides tools to manage the creation of zip files containing Python code, which can be executed directly by the Python interpreter. The module provides both a Command-Line Interface and a Python API .
3. An Informal Introduction to Python
2 days ago · Using Python as a Calculator¶ Let’s try some simple Python commands. Start the interpreter and wait for the primary prompt, >>>. (It shouldn’t take long.) 3.1.1. Numbers¶ The interpreter acts as a simple calculator: you can type an expression at it and it will write the value.
14. Interactive Input Editing and History Substitution - Python
3 days ago · Some versions of the Python interpreter support editing of the current input line and history substitution, similar to facilities found in the Korn shell and the GNU Bash shell. This is implemented using the GNU Readline library, which supports various styles of editing.