About 50 results
Open links in new tab
  1. 4. Execution model — Python 3.14.3 documentation

    3 days ago · Each command typed interactively is a block. A script file (a file given as standard input to the interpreter or specified as a command line argument to the interpreter) is a code block. A script …

  2. timeit — Measure execution time of small code snippets - Python

    3 days ago · This module provides a simple way to time small bits of Python code. It has both a Command-Line Interface as well as a callable one. It avoids a number of common traps for …

  3. __main__ — Top-level code environment — Python 3.14.3 documentation

    3 days ago · This is where using the if __name__ == '__main__' code block comes in handy. Code within this block won’t run unless the module is executed in the top-level environment. Putting as few …

  4. Glossary — Python 3.14.3 documentation

    3 days ago · The default Python prompt of the interactive shell when entering the code for an indented code block, when within a pair of matching left and right delimiters (parentheses, square brackets, …

  5. contextlib — Utilities for with-statement contexts — Python 3.14.3 ...

    3 days ago · See also PEP 343 - The “with” statement The specification, background, and examples for the Python with statement.

  6. multiprocessing — Process-based parallelism — Python 3.14.3 …

    3 days ago · The parent process starts a fresh Python interpreter process. The child process will only inherit those resources necessary to run the process object’s run() method.

  7. doctest — Test interactive Python examples — Python 3.14.3 …

    3 days ago · The string is converted to a Python script, where doctest examples in s are converted to regular code, and everything else is converted to Python comments. The generated script is returned …

  8. What’s new in Python 3.14 — Python 3.15.0a6 documentation

    5 days ago · Passing any arguments has been deprecated since Python 3.14, as the Python version does not permit any arguments, but the C version allows any number of positional or keyword …

  9. 3. An Informal Introduction to Python

    3 days ago · Python knows a number of compound data types, used to group together other values. The most versatile is the list, which can be written as a list of comma-separated values (items) between …

  10. Built-in Functions — Python 3.14.3 documentation

    3 days ago · This function supports dynamic execution of Python code. source must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then …