About 55,300 results
Open links in new tab
  1. 2. Using the Python Interpreter — Python 3.13.3 documentation

    3 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.

  2. 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.

  3. 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. 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.

  5. 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.

  6. 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 …

  7. 4. Execution model — Python 3.13.3 documentation

    3 days ago · The Python interpreter raises an exception when it detects a run-time error (such as division by zero). A Python program can also explicitly raise an exception with the raise statement. Exception handlers are specified with the try … except statement.

  8. 7. Using Python on iOS — Python 3.13.3 documentation

    2 days ago · As a result, the only way you can use Python on iOS is in embedded mode - that is, by writing a native iOS application, and embedding a Python interpreter using libPython, and invoking Python code using the Python embedding API. The full Python interpreter, the standard library, and all your Python code is then packaged as a standalone bundle ...

  9. 1. Whetting Your Appetite — Python 3.13.3 documentation

    3 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.

  10. Python/C API Reference Manual — Python 3.13.3 documentation

    3 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.

Refresh