One Python standard library per day: Introducing __python

Source: Internet
Author: User
Tags stack trace

The Python library contains several different types of components.


It contains data types, such as numbers and lists, that are often considered to be part of the language "core". For these types, the Python language core defines the form of text and, in its semantic

Some restrictions are set, but there is no full definition of semantics. (On the other hand, the language core does define syntactic attributes, such as the spelling and precedence of operators.)


The library also contains built-in functions and exceptions-objects that can be used by all Python code and do not require an import statement. Some of these are defined by the core language, but many of the key words

Righteousness is not required, and is only described here.


However, most of the library is made up of a series of modules. Some modules are written in C and are built into the Python interpreter; The rest is written in Python, and in the source code

Form import. Some modules provide a very Python-specific interface, such as a print stack trace; Some provide interfaces specific to a particular operating system, such as access to specific hardware; Others provide special

Interfaces that are scheduled for a particular application domain, such as the World Wide Web. Some modules are available for all versions and ports of Python; Others are available only if the underlying system supports or needs it; There are only a few

Specific configuration options are available when you translate and install Python.


This document is organized "from the Inside Out", first describing the built-in functions, data types and exceptions, and finally the modules described in the section of the relevant module.

There is no link between the modules and no specific directory or order is required.


This means that if you read this manual from the beginning and skip to the next chapter when you are tired, you will have a reasonable overview of the available modules and areas of application that the Python library supports. Of course, you also

You can browse the directory (in front of the manual), or look at the index-specific features, modules or long (in the back). Finally, if you like the random subject study, you can choose a random

Page number (see Module random) and read section one or two. Regardless of the order in which you read the parts of this manual, you can start with the "built-in functions" chapter because the remainder of this manual

Assume that you are familiar with this manual.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.