File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ Object Protocol
65
65
66
66
Properly handle returning :c:data:`Py_NotImplemented` from within a C
67
67
function (that is, create a new :term: `strong reference `
68
- to `` NotImplemented ` ` and return it).
68
+ to :const: ` NotImplemented ` and return it).
69
69
70
70
71
71
.. c:macro:: Py_PRINT_RAW
Original file line number Diff line number Diff line change @@ -664,7 +664,8 @@ for :func:`os.fcopyfile` available in macOs.
664
664
.. nonce: l1p7CJ
665
665
.. section: Library
666
666
667
- For ``@dataclass ``, add ``weakref_slot ``. Default is ``False ``. If true, and if
667
+ For :func: `@dataclass <dataclasses.dataclass> `, add *weakref_slot *.
668
+ The new parameter defaults to ``False ``. If true, and if
668
669
``slots=True ``, add a slot named ``"__weakref__" ``, which will allow instances to be
669
670
weakref'd. Contributed by Eric V. Smith
670
671
Original file line number Diff line number Diff line change @@ -3562,7 +3562,7 @@ with :func:`os.pidfd_open` in non-blocking mode. Patch by Kumar Aditya.
3562
3562
.. section: Library
3563
3563
3564
3564
Implement ``Enum.__contains__ `` that returns ``True `` or ``False `` to replace the
3565
- deprecated behaviour that would sometimes raise a `` TypeError ` `.
3565
+ deprecated behaviour that would sometimes raise a :exc: ` TypeError `.
3566
3566
3567
3567
..
3568
3568
Original file line number Diff line number Diff line change @@ -3436,7 +3436,8 @@ added support for this decorator. Patch by Alex Waygood.
3436
3436
.. nonce: C1ahtk
3437
3437
.. section: Library
3438
3438
3439
- Make :func: `pydoc.doc ` catch bad module ``ImportError `` when output stream is not ``None ``.
3439
+ Make :func: `pydoc.doc ` catch bad module :exc: `ImportError `
3440
+ when output stream is not ``None ``.
3440
3441
3441
3442
..
3442
3443
Original file line number Diff line number Diff line change @@ -1355,7 +1355,7 @@ crash encountered after the first :meth:`tkinter.Tk` instance is destroyed.
1355
1355
1356
1356
Add docstrings to the IDLE debugger module. Fix two bugs: initialize
1357
1357
``Idb.botframe `` (should be in Bdb); in ``Idb.in_rpc_code ``, check whether
1358
- ``prev_frame is None `` before trying to use it. Greatly expand test_debugger.
1358
+ ``prev_frame `` is `` None `` before trying to use it. Greatly expand test_debugger.
1359
1359
1360
1360
..
1361
1361
You can’t perform that action at this time.
0 commit comments