Unicode Objects and Codecs — Python 3.14.7 documentation

docs.python.org

Tin mới

Byte Array Objects

Python Module Index

3.14.7 Documentation

Python/C API reference manual

Concrete Objects Layer

Names (identifiers and keywords)

Return 1 if the string is a valid identifier according to the language definition, section Names (identifiers and keywords). Return 0 otherwise.

PyType_GetFullyQualifiedName()

Get the fully qualified name of an object type; call PyType_GetFullyQualifiedName().

bytes-like objects

bytes, bytearray and other bytes-like objects are decoded according to the given encoding and using the error handling defined by errors. Both can be NULL to have the interface use the default values (see Built-in Codecs

sys.getdefaultencoding()

Return the name of the default string encoding, "utf-8". See sys.getdefaultencoding().

File System Encoding¶

Functions encoding to and decoding from the filesystem encoding and error handler (PEP 383 and PEP 529).

PyArg_Parse* converter

If obj is NULL, the function releases a strong reference stored in the variable referred by result and returns 1.

object.__getitem__

This codec is special in that it can be used to implement many different codecs (and this is in fact what was done to obtain most of the standard codecs included in the encodings package). The codec uses mappings to enco