diff options
| author | Georg Brandl <georg@python.org> | 2009-04-12 15:51:51 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-04-12 15:51:51 +0000 |
| commit | abc387747dc573e05a4b31387797a0272062b2ef (patch) | |
| tree | c12c0a0e45cb06edb87798a7831b1c8f79033015 /Include/bytes_methods.h | |
| parent | 78532baeabc4234e3894c775f2bb7e0a21c12e0e (diff) | |
| download | cpython-git-abc387747dc573e05a4b31387797a0272062b2ef.tar.gz | |
Add bytes/bytearray.maketrans() to mirror str.maketrans(), and deprecate
string.maketrans() which actually works on bytes. (Also closes #5675.)
Diffstat (limited to 'Include/bytes_methods.h')
| -rw-r--r-- | Include/bytes_methods.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/bytes_methods.h b/Include/bytes_methods.h index 37518d20ad..e973261eff 100644 --- a/Include/bytes_methods.h +++ b/Include/bytes_methods.h @@ -20,6 +20,9 @@ extern void _Py_bytes_title(char *result, char *s, Py_ssize_t len); extern void _Py_bytes_capitalize(char *result, char *s, Py_ssize_t len); extern void _Py_bytes_swapcase(char *result, char *s, Py_ssize_t len); +/* This one gets the raw argument list. */ +extern PyObject* _Py_bytes_maketrans(PyObject *args); + /* Shared __doc__ strings. */ extern const char _Py_isspace__doc__[]; extern const char _Py_isalpha__doc__[]; @@ -33,6 +36,7 @@ extern const char _Py_upper__doc__[]; extern const char _Py_title__doc__[]; extern const char _Py_capitalize__doc__[]; extern const char _Py_swapcase__doc__[]; +extern const char _Py_maketrans__doc__[]; #define FLAG_LOWER 0x01 #define FLAG_UPPER 0x02 |
