About 323 results
Open links in new tab
  1. string — Common string operations — Python 3.13.3 …

    2 days ago · class string.Formatter ¶ The Formatter class has the following public methods: format(format_string, /, *args, **kwargs) ¶ The primary API method. It takes a format string and an arbitrary set of positional and keyword arguments. It is just a wrapper that calls vformat().

  2. Built-in Types — Python 3.13.3 documentation

    2 days ago · Some operations are supported by several object types; in particular, practically all objects can be compared for equality, tested for truth value, and converted to a string (with the repr() function or the slightly different str() function).

  3. Object Protocol — Python 3.13.3 documentation

    2 days ago · As PyObject_Repr(), compute a string representation of object o, but escape the non-ASCII characters in the string returned by PyObject_Repr() with \x, \u or \U escapes.

  4. 3. Data model — Python 3.13.3 documentation

    3 days ago · Called by str(object), the default __format__() implementation, and the built-in function print(), to compute the “informal” or nicely printable string representation of an object.

  5. json — JSON encoder and decoder — Python 3.13.3 documentation

    2 days ago · Parameters: obj (object) – The Python object to be serialized. fp (file-like object) – The file-like object obj will be serialized to. The json module always produces str objects, not bytes objects, therefore fp.write() must support str input.

  6. 7. Input and Output — Python 3.13.3 documentation

    2 days ago · Formatted string literals (also called f-strings for short) let you include the value of Python expressions inside a string by prefixing the string with f or F and writing expressions as {expression}.

  7. Bytes Objects — Python 3.13.3 documentation

    4 days ago · Take a C printf() -style format string and a variable number of arguments, calculate the size of the resulting Python bytes object and return a bytes object with the values formatted into it.

  8. pickle — Python object serialization — Python 3.13.3 documentation

    3 days ago · The pickle module implements binary protocols for serializing and de-serializing a Python object structure.

  9. 9. Classes — Python 3.13.3 documentation

    2 days ago · For instance, if you have a function that formats some data from a file object, you can define a class with methods read() and readline() that get the data from a string buffer instead, and pass it as an argument.

  10. io — Core tools for working with streams — Python 3.13.3 …

    2 days ago · Source code: Lib/io.py Overview: The io module provides Python’s main facilities for dealing with various types of I/O. There are three main types of I/O: text I/O, binary I/O and raw I/O.

Refresh