Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
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
1 parent 1cbc88d commit 3cdb8d9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
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

0 comments on commit 3cdb8d9

Please sign in to comment.