Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-129667: Update annotation in documentation#129669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
donBarbos wants to merge7 commits intopython:main
base:main
Choose a base branch
Loading
fromdonBarbos:issue-129667
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Revert some updates
  • Loading branch information
@donBarbos
donBarbos committedMar 30, 2025
commitc24d1a16b46fe76243f71633c1667c71bbc47e2d
2 changes: 1 addition & 1 deletionDoc/library/code.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,7 @@ build applications which provide an interactive interpreter prompt.
``'__console__'`` and key ``'__doc__'`` set to ``None``.


.. class:: InteractiveConsole(locals=None, filename="<console>",*,local_exit=False)
.. class:: InteractiveConsole(locals=None, filename="<console>", local_exit=False)

Closely emulate the behavior of the interactive Python interpreter. This class
builds on :class:`InteractiveInterpreter` and adds prompting using the familiar
Expand Down
12 changes: 6 additions & 6 deletionsDoc/library/codecs.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,7 +55,7 @@ any codec:

The full details for each codec can also be looked up directly:

.. function:: lookup(encoding, /)
.. function:: lookup(encoding)

Looks up the codec info in the Python codec registry and returns a
:class:`CodecInfo` object as defined below.
Expand All@@ -65,7 +65,7 @@ The full details for each codec can also be looked up directly:
found, a :exc:`LookupError` is raised. Otherwise, the :class:`CodecInfo` object
is stored in the cache and returned to the caller.

.. class:: CodecInfo(encode, decode, streamreader=None, streamwriter=None, incrementalencoder=None, incrementaldecoder=None, name=None, *, _is_text_encoding=None)
.. class:: CodecInfo(encode, decode, streamreader=None, streamwriter=None, incrementalencoder=None, incrementaldecoder=None, name=None)

Codec details when looking up the codec registry. The constructor
arguments are stored in attributes of the same name:
Expand DownExpand Up@@ -156,7 +156,7 @@ these additional functions which use :func:`lookup` for the codec lookup:
Custom codecs are made available by registering a suitable codec search
function:

.. function:: register(search_function, /)
.. function:: register(search_function)

Register a codec search function. Search functions are expected to take one
argument, being the encoding name in all lower case letters with hyphens
Expand All@@ -168,7 +168,7 @@ function:
Hyphens and spaces are converted to underscore.


.. function:: unregister(search_function, /)
.. function:: unregister(search_function)

Unregister a codec search function and clear the registry's cache.
If the search function is not registered, do nothing.
Expand DownExpand Up@@ -416,7 +416,7 @@ In addition, the following error handler is specific to the given codecs:
The set of allowed values can be extended by registering a new named error
handler:

.. function:: register_error(name, error_handler, /)
.. function:: register_error(name, error_handler)

Register the error handling function *error_handler* under the name *name*.
The *error_handler* argument will be called during encoding and decoding
Expand All@@ -442,7 +442,7 @@ handler:
Previously registered error handlers (including the standard error handlers)
can be looked up by name:

.. function:: lookup_error(name, /)
.. function:: lookup_error(name)

Return the error handler previously registered under the name *name*.

Expand Down
2 changes: 1 addition & 1 deletionDoc/library/dataclasses.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -46,7 +46,7 @@ directly specified in the :class:`!InventoryItem` definition shown above.
Module contents
---------------

.. decorator:: dataclass(cls=None, /,*, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)
.. decorator:: dataclass(*, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)

This function is a :term:`decorator` that is used to add generated
:term:`special methods <special method>` to classes, as described below.
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp