Skip to content

Commit 925fcbd

Browse files
committed
Add versionchanged note to c-api around len behavior
1 parent e240327 commit 925fcbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/c-api/bytearray.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ Direct API functions
7575
7676
Resize the internal buffer of *bytearray* to *len*.
7777
78+
versionchanged:: 3.14
79+
A negative *len* will now result in a failure with ``-1`` return and a
80+
exeception set.
81+
7882
Macros
7983
^^^^^^
8084

0 commit comments

Comments
 (0)