Skip to content

Commit 08dec7c

Browse files
committed
Issue #20179: Apply Argument Clinic to bytes and bytearray.
Patch by Tal Einat.
1 parent 09307cf commit 08dec7c

5 files changed

Lines changed: 1872 additions & 559 deletions

File tree

Include/bytes_methods.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ extern void _Py_bytes_title(char *result, char *s, Py_ssize_t len);
2121
extern void _Py_bytes_capitalize(char *result, char *s, Py_ssize_t len);
2222
extern void _Py_bytes_swapcase(char *result, char *s, Py_ssize_t len);
2323

24-
/* This one gets the raw argument list. */
25-
extern PyObject* _Py_bytes_maketrans(PyObject *args);
24+
/* The maketrans() static method. */
25+
extern PyObject* _Py_bytes_maketrans(PyObject *frm, PyObject *to);
2626

2727
/* Shared __doc__ strings. */
2828
extern const char _Py_isspace__doc__[];

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Release date: TBA
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #20179: Apply Argument Clinic to bytes and bytearray.
14+
Patch by Tal Einat.
15+
1316
- Issue #22082: Clear interned strings in slotdefs.
1417

1518
- Upgrade Unicode database to Unicode 7.0.0.

0 commit comments

Comments
 (0)