Skip to content

Commit a7dacfa

Browse files
committed
Merge remote-tracking branch 'origin/main' into decimal_ctx_inherit
2 parents 5835fac + 15d7406 commit a7dacfa

43 files changed

Lines changed: 9877 additions & 1880 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doc/c-api/bytes.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,18 @@ Getters
384384
385385
Get the writer size.
386386
387+
The function does not invalidate pointers returned by
388+
:c:func:`PyBytesWriter_GetData`.
389+
387390
The function cannot fail.
388391
389392
.. c:function:: void* PyBytesWriter_GetData(PyBytesWriter *writer)
390393
391394
Get the writer data: start of the internal buffer.
392395
393-
The pointer is valid until :c:func:`PyBytesWriter_Finish` or
394-
:c:func:`PyBytesWriter_Discard` is called on *writer*.
396+
The pointer remains valid until a :c:type:`PyBytesWriter` function other
397+
than :c:func:`PyBytesWriter_GetData` or :c:func:`PyBytesWriter_GetSize` is
398+
called on *writer*.
395399
396400
The function cannot fail.
397401

Doc/library/curses.ascii.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ C library:
114114

115115
.. function:: isblank(c)
116116

117-
Checks for an ASCII whitespace character; space or horizontal tab.
117+
Checks for an ASCII blank character; space or horizontal tab.
118118

119119

120120
.. function:: iscntrl(c)
@@ -168,7 +168,8 @@ C library:
168168

169169
.. function:: isctrl(c)
170170

171-
Checks for an ASCII control character (ordinal values 0 to 31).
171+
Checks for an ASCII control character (ordinal values 0 to 31). Unlike
172+
:func:`iscntrl`, this does not include the delete character (0x7f).
172173

173174

174175
.. function:: ismeta(c)

Doc/library/curses.panel.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ The module :mod:`!curses.panel` defines the following functions:
2626

2727
.. function:: new_panel(win)
2828

29-
Returns a panel object, associating it with the given window *win*. Be aware
29+
Returns a panel object, associating it with the given window *win* and
30+
placing the new panel on top of the panel stack. Be aware
3031
that you need to keep the returned panel object referenced explicitly. If you
3132
don't, the panel object is garbage collected and removed from the panel stack.
3233

@@ -44,7 +45,7 @@ The module :mod:`!curses.panel` defines the following functions:
4445

4546
.. _curses-panel-objects:
4647

47-
Panel Objects
48+
Panel objects
4849
-------------
4950

5051
Panel objects, as returned by :func:`new_panel` above, are windows with a
@@ -99,7 +100,8 @@ Panel objects have the following methods:
99100

100101
.. method:: Panel.show()
101102

102-
Display the panel (which might have been hidden).
103+
Display the panel (which might have been hidden), placing it on top of
104+
the panel stack.
103105

104106

105107
.. method:: Panel.top()

0 commit comments

Comments
 (0)