Visitar URL original
Format None, True, False and NotImplemented as literals by serhiy-storchaka 路 Pull Request #118758 路 python/cpython 路 GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 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
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
3 people authored May 8, 2024
commit 3cdb8d9e73582cc22a27b0d9da26054feb4ceec9
2 changes: 1 addition & 1 deletion Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Object Protocol

Properly handle returning :c:data:`Py_NotImplemented` from within a C
function (that is, create a new :term:`strong reference`
to ``NotImplemented`` and return it).
to :const:`NotImplemented` and return it).


.. c:macro:: Py_PRINT_RAW
Expand Down
3 changes: 2 additions & 1 deletion Misc/NEWS.d/3.11.0b1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ for :func:`os.fcopyfile` available in macOs.
.. nonce: l1p7CJ
.. section: Library

For ``@dataclass``, add ``weakref_slot``. Default is ``False``. If true, and if
For :func:`@dataclass <dataclasses.dataclass>`, add *weakref_slot*.
The new parameter defaults to ``False``. If true, and if
``slots=True``, add a slot named ``"__weakref__"``, which will allow instances to be
weakref'd. Contributed by Eric V. Smith

Expand Down
2 changes: 1 addition & 1 deletion Misc/NEWS.d/3.12.0a1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3562,7 +3562,7 @@ with :func:`os.pidfd_open` in non-blocking mode. Patch by Kumar Aditya.
.. section: Library

Implement ``Enum.__contains__`` that returns ``True`` or ``False`` to replace the
deprecated behaviour that would sometimes raise a ``TypeError``.
deprecated behaviour that would sometimes raise a :exc:`TypeError`.

..

Expand Down
3 changes: 2 additions & 1 deletion Misc/NEWS.d/3.13.0a1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3436,7 +3436,8 @@ added support for this decorator. Patch by Alex Waygood.
.. nonce: C1ahtk
.. section: Library

Make :func:`pydoc.doc` catch bad module ``ImportError`` when output stream is not ``None``.
Make :func:`pydoc.doc` catch bad module :exc:`ImportError`
when output stream is not ``None``.

..

Expand Down
2 changes: 1 addition & 1 deletion Misc/NEWS.d/3.13.0a2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ crash encountered after the first :meth:`tkinter.Tk` instance is destroyed.

Add docstrings to the IDLE debugger module. Fix two bugs: initialize
``Idb.botframe`` (should be in Bdb); in ``Idb.in_rpc_code``, check whether
``prev_frame is None`` before trying to use it. Greatly expand test_debugger.
``prev_frame`` is ``None`` before trying to use it. Greatly expand test_debugger.

..

Expand Down