| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e98839a commit dd96db6
173 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,14 +23,14 @@ Noddy_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 23 | 23 | ||
| 24 | 24 | self = (Noddy *)type->tp_alloc(type, 0); | |
| 25 | 25 | if (self != NULL) { | |
| 26 | - self->first = PyBytes_FromString(""); | ||
| 26 | + self->first = PyString_FromString(""); | ||
| 27 | 27 | if (self->first == NULL) | |
| 28 | 28 | { | |
| 29 | 29 | Py_DECREF(self); | |
| 30 | 30 | return NULL; | |
| 31 | 31 | } | |
| 32 | 32 | ||
| 33 | - self->last = PyBytes_FromString(""); | ||
| 33 | + self->last = PyString_FromString(""); | ||
| 34 | 34 | if (self->last == NULL) | |
| 35 | 35 | { | |
| 36 | 36 | Py_DECREF(self); | |
@@ -90,7 +90,7 @@ Noddy_name(Noddy* self) | |||
| 90 | 90 | PyObject *args, *result; | |
| 91 | 91 | ||
| 92 | 92 | if (format == NULL) { | |
| 93 | - format = PyBytes_FromString("%s %s"); | ||
| 93 | + format = PyString_FromString("%s %s"); | ||
| 94 | 94 | if (format == NULL) | |
| 95 | 95 | return NULL; | |
| 96 | 96 | } | |
@@ -109,7 +109,7 @@ Noddy_name(Noddy* self) | |||
| 109 | 109 | if (args == NULL) | |
| 110 | 110 | return NULL; | |
| 111 | 111 | ||
| 112 | - result = PyBytes_Format(format, args); | ||
| 112 | + result = PyString_Format(format, args); | ||
| 113 | 113 | Py_DECREF(args); | |
| 114 | 114 | ||
| 115 | 115 | return result; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,14 +23,14 @@ Noddy_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 23 | 23 | ||
| 24 | 24 | self = (Noddy *)type->tp_alloc(type, 0); | |
| 25 | 25 | if (self != NULL) { | |
| 26 | - self->first = PyBytes_FromString(""); | ||
| 26 | + self->first = PyString_FromString(""); | ||
| 27 | 27 | if (self->first == NULL) | |
| 28 | 28 | { | |
| 29 | 29 | Py_DECREF(self); | |
| 30 | 30 | return NULL; | |
| 31 | 31 | } | |
| 32 | 32 | ||
| 33 | - self->last = PyBytes_FromString(""); | ||
| 33 | + self->last = PyString_FromString(""); | ||
| 34 | 34 | if (self->last == NULL) | |
| 35 | 35 | { | |
| 36 | 36 | Py_DECREF(self); | |
@@ -93,7 +93,7 @@ Noddy_setfirst(Noddy *self, PyObject *value, void *closure) | |||
| 93 | 93 | return -1; | |
| 94 | 94 | } | |
| 95 | 95 | ||
| 96 | - if (! PyBytes_Check(value)) { | ||
| 96 | + if (! PyString_Check(value)) { | ||
| 97 | 97 | PyErr_SetString(PyExc_TypeError, | |
| 98 | 98 | "The first attribute value must be a string"); | |
| 99 | 99 | return -1; | |
@@ -121,7 +121,7 @@ Noddy_setlast(Noddy *self, PyObject *value, void *closure) | |||
| 121 | 121 | return -1; | |
| 122 | 122 | } | |
| 123 | 123 | ||
| 124 | - if (! PyBytes_Check(value)) { | ||
| 124 | + if (! PyString_Check(value)) { | ||
| 125 | 125 | PyErr_SetString(PyExc_TypeError, | |
| 126 | 126 | "The last attribute value must be a string"); | |
| 127 | 127 | return -1; | |
@@ -153,7 +153,7 @@ Noddy_name(Noddy* self) | |||
| 153 | 153 | PyObject *args, *result; | |
| 154 | 154 | ||
| 155 | 155 | if (format == NULL) { | |
| 156 | - format = PyBytes_FromString("%s %s"); | ||
| 156 | + format = PyString_FromString("%s %s"); | ||
| 157 | 157 | if (format == NULL) | |
| 158 | 158 | return NULL; | |
| 159 | 159 | } | |
@@ -162,7 +162,7 @@ Noddy_name(Noddy* self) | |||
| 162 | 162 | if (args == NULL) | |
| 163 | 163 | return NULL; | |
| 164 | 164 | ||
| 165 | - result = PyBytes_Format(format, args); | ||
| 165 | + result = PyString_Format(format, args); | ||
| 166 | 166 | Py_DECREF(args); | |
| 167 | 167 | ||
| 168 | 168 | return result; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,14 +57,14 @@ Noddy_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 57 | 57 | ||
| 58 | 58 | self = (Noddy *)type->tp_alloc(type, 0); | |
| 59 | 59 | if (self != NULL) { | |
| 60 | - self->first = PyBytes_FromString(""); | ||
| 60 | + self->first = PyString_FromString(""); | ||
| 61 | 61 | if (self->first == NULL) | |
| 62 | 62 | { | |
| 63 | 63 | Py_DECREF(self); | |
| 64 | 64 | return NULL; | |
| 65 | 65 | } | |
| 66 | 66 | ||
| 67 | - self->last = PyBytes_FromString(""); | ||
| 67 | + self->last = PyString_FromString(""); | ||
| 68 | 68 | if (self->last == NULL) | |
| 69 | 69 | { | |
| 70 | 70 | Py_DECREF(self); | |
@@ -124,7 +124,7 @@ Noddy_name(Noddy* self) | |||
| 124 | 124 | PyObject *args, *result; | |
| 125 | 125 | ||
| 126 | 126 | if (format == NULL) { | |
| 127 | - format = PyBytes_FromString("%s %s"); | ||
| 127 | + format = PyString_FromString("%s %s"); | ||
| 128 | 128 | if (format == NULL) | |
| 129 | 129 | return NULL; | |
| 130 | 130 | } | |
@@ -143,7 +143,7 @@ Noddy_name(Noddy* self) | |||
| 143 | 143 | if (args == NULL) | |
| 144 | 144 | return NULL; | |
| 145 | 145 | ||
| 146 | - result = PyBytes_Format(format, args); | ||
| 146 | + result = PyString_Format(format, args); | ||
| 147 | 147 | Py_DECREF(args); | |
| 148 | 148 | ||
| 149 | 149 | return result; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ main(int argc, char *argv[]) | |||
| 13 | 13 | } | |
| 14 | 14 | ||
| 15 | 15 | Py_Initialize(); | |
| 16 | - pName = PyBytes_FromString(argv[1]); | ||
| 16 | + pName = PyString_FromString(argv[1]); | ||
| 17 | 17 | /* Error checking of pName left out */ | |
| 18 | 18 | ||
| 19 | 19 | pModule = PyImport_Import(pName); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | ||
| 2 | - /* Bytes (String) object interface */ | ||
| 2 | + /* String (Bytes) object interface */ | ||
| 3 | 3 | ||
| 4 | 4 | #ifndef Py_BYTESOBJECT_H | |
| 5 | 5 | #define Py_BYTESOBJECT_H | |
@@ -10,7 +10,7 @@ extern "C" { | |||
| 10 | 10 | #include <stdarg.h> | |
| 11 | 11 | ||
| 12 | 12 | /* | |
| 13 | - Type PyBytesObject represents a character string. An extra zero byte is | ||
| 13 | + Type PyStringObject represents a character string. An extra zero byte is | ||
| 14 | 14 | reserved at the end to ensure it is zero-terminated, but a size is | |
| 15 | 15 | present so strings with null bytes in them can be represented. This | |
| 16 | 16 | is an immutable object type. | |
@@ -46,61 +46,61 @@ typedef struct { | |||
| 46 | 46 | * 'interned' dictionary; in this case the two references | |
| 47 | 47 | * from 'interned' to this object are *not counted* in ob_refcnt. | |
| 48 | 48 | */ | |
| 49 | - } PyBytesObject; | ||
| 49 | + } PyStringObject; | ||
| 50 | 50 | ||
| 51 | 51 | #define SSTATE_NOT_INTERNED 0 | |
| 52 | 52 | #define SSTATE_INTERNED_MORTAL 1 | |
| 53 | 53 | #define SSTATE_INTERNED_IMMORTAL 2 | |
| 54 | 54 | ||
| 55 | 55 | PyAPI_DATA(PyTypeObject) PyBaseString_Type; | |
| 56 | - PyAPI_DATA(PyTypeObject) PyBytes_Type; | ||
| 56 | + PyAPI_DATA(PyTypeObject) PyString_Type; | ||
| 57 | 57 | ||
| 58 | - #define PyBytes_Check(op) \ | ||
| 58 | + #define PyString_Check(op) \ | ||
| 59 | 59 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_STRING_SUBCLASS) | |
| 60 | - #define PyBytes_CheckExact(op) (Py_TYPE(op) == &PyBytes_Type) | ||
| 60 | + #define PyString_CheckExact(op) (Py_TYPE(op) == &PyString_Type) | ||
| 61 | 61 | ||
| 62 | - PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t); | ||
| 63 | - PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *); | ||
| 64 | - PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list) | ||
| 62 | + PyAPI_FUNC(PyObject *) PyString_FromStringAndSize(const char *, Py_ssize_t); | ||
| 63 | + PyAPI_FUNC(PyObject *) PyString_FromString(const char *); | ||
| 64 | + PyAPI_FUNC(PyObject *) PyString_FromFormatV(const char*, va_list) | ||
| 65 | 65 | Py_GCC_ATTRIBUTE((format(printf, 1, 0))); | |
| 66 | - PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...) | ||
| 66 | + PyAPI_FUNC(PyObject *) PyString_FromFormat(const char*, ...) | ||
| 67 | 67 | Py_GCC_ATTRIBUTE((format(printf, 1, 2))); | |
| 68 | - PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *); | ||
| 69 | - PyAPI_FUNC(char *) PyBytes_AsString(PyObject *); | ||
| 70 | - PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int); | ||
| 71 | - PyAPI_FUNC(void) PyBytes_Concat(PyObject **, PyObject *); | ||
| 72 | - PyAPI_FUNC(void) PyBytes_ConcatAndDel(PyObject **, PyObject *); | ||
| 73 | - PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t); | ||
| 74 | - PyAPI_FUNC(int) _PyBytes_Eq(PyObject *, PyObject*); | ||
| 75 | - PyAPI_FUNC(PyObject *) PyBytes_Format(PyObject *, PyObject *); | ||
| 76 | - PyAPI_FUNC(PyObject *) _PyBytes_FormatLong(PyObject*, int, int, | ||
| 68 | + PyAPI_FUNC(Py_ssize_t) PyString_Size(PyObject *); | ||
| 69 | + PyAPI_FUNC(char *) PyString_AsString(PyObject *); | ||
| 70 | + PyAPI_FUNC(PyObject *) PyString_Repr(PyObject *, int); | ||
| 71 | + PyAPI_FUNC(void) PyString_Concat(PyObject **, PyObject *); | ||
| 72 | + PyAPI_FUNC(void) PyString_ConcatAndDel(PyObject **, PyObject *); | ||
| 73 | + PyAPI_FUNC(int) _PyString_Resize(PyObject **, Py_ssize_t); | ||
| 74 | + PyAPI_FUNC(int) _PyString_Eq(PyObject *, PyObject*); | ||
| 75 | + PyAPI_FUNC(PyObject *) PyString_Format(PyObject *, PyObject *); | ||
| 76 | + PyAPI_FUNC(PyObject *) _PyString_FormatLong(PyObject*, int, int, | ||
| 77 | 77 | int, char**, int*); | |
| 78 | - PyAPI_FUNC(PyObject *) PyBytes_DecodeEscape(const char *, Py_ssize_t, | ||
| 78 | + PyAPI_FUNC(PyObject *) PyString_DecodeEscape(const char *, Py_ssize_t, | ||
| 79 | 79 | const char *, Py_ssize_t, | |
| 80 | 80 | const char *); | |
| 81 | 81 | ||
| 82 | - PyAPI_FUNC(void) PyBytes_InternInPlace(PyObject **); | ||
| 83 | - PyAPI_FUNC(void) PyBytes_InternImmortal(PyObject **); | ||
| 84 | - PyAPI_FUNC(PyObject *) PyBytes_InternFromString(const char *); | ||
| 82 | + PyAPI_FUNC(void) PyString_InternInPlace(PyObject **); | ||
| 83 | + PyAPI_FUNC(void) PyString_InternImmortal(PyObject **); | ||
| 84 | + PyAPI_FUNC(PyObject *) PyString_InternFromString(const char *); | ||
| 85 | 85 | PyAPI_FUNC(void) _Py_ReleaseInternedStrings(void); | |
| 86 | 86 | ||
| 87 | 87 | /* Use only if you know it's a string */ | |
| 88 | - #define PyBytes_CHECK_INTERNED(op) (((PyBytesObject *)(op))->ob_sstate) | ||
| 88 | + #define PyString_CHECK_INTERNED(op) (((PyStringObject *)(op))->ob_sstate) | ||
| 89 | 89 | ||
| 90 | 90 | /* Macro, trading safety for speed */ | |
| 91 | - #define PyBytes_AS_STRING(op) (((PyBytesObject *)(op))->ob_sval) | ||
| 92 | - #define PyBytes_GET_SIZE(op) Py_SIZE(op) | ||
| 91 | + #define PyString_AS_STRING(op) (((PyStringObject *)(op))->ob_sval) | ||
| 92 | + #define PyString_GET_SIZE(op) Py_SIZE(op) | ||
| 93 | 93 | ||
| 94 | - /* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*, | ||
| 94 | + /* _PyString_Join(sep, x) is like sep.join(x). sep must be PyStringObject*, | ||
| 95 | 95 | x must be an iterable object. */ | |
| 96 | - PyAPI_FUNC(PyObject *) _PyBytes_Join(PyObject *sep, PyObject *x); | ||
| 96 | + PyAPI_FUNC(PyObject *) _PyString_Join(PyObject *sep, PyObject *x); | ||
| 97 | 97 | ||
| 98 | 98 | /* --- Generic Codecs ----------------------------------------------------- */ | |
| 99 | 99 | ||
| 100 | 100 | /* Create an object by decoding the encoded string s of the | |
| 101 | 101 | given size. */ | |
| 102 | 102 | ||
| 103 | - PyAPI_FUNC(PyObject*) PyBytes_Decode( | ||
| 103 | + PyAPI_FUNC(PyObject*) PyString_Decode( | ||
| 104 | 104 | const char *s, /* encoded string */ | |
| 105 | 105 | Py_ssize_t size, /* size of buffer */ | |
| 106 | 106 | const char *encoding, /* encoding */ | |
@@ -110,7 +110,7 @@ PyAPI_FUNC(PyObject*) PyBytes_Decode( | |||
| 110 | 110 | /* Encodes a char buffer of the given size and returns a | |
| 111 | 111 | Python object. */ | |
| 112 | 112 | ||
| 113 | - PyAPI_FUNC(PyObject*) PyBytes_Encode( | ||
| 113 | + PyAPI_FUNC(PyObject*) PyString_Encode( | ||
| 114 | 114 | const char *s, /* string char buffer */ | |
| 115 | 115 | Py_ssize_t size, /* number of chars to encode */ | |
| 116 | 116 | const char *encoding, /* encoding */ | |
@@ -120,7 +120,7 @@ PyAPI_FUNC(PyObject*) PyBytes_Encode( | |||
| 120 | 120 | /* Encodes a string object and returns the result as Python | |
| 121 | 121 | object. */ | |
| 122 | 122 | ||
| 123 | - PyAPI_FUNC(PyObject*) PyBytes_AsEncodedObject( | ||
| 123 | + PyAPI_FUNC(PyObject*) PyString_AsEncodedObject( | ||
| 124 | 124 | PyObject *str, /* string object */ | |
| 125 | 125 | const char *encoding, /* encoding */ | |
| 126 | 126 | const char *errors /* error handling */ | |
@@ -132,9 +132,9 @@ PyAPI_FUNC(PyObject*) PyBytes_AsEncodedObject( | |||
| 132 | 132 | If the codec returns an Unicode object, the object is converted | |
| 133 | 133 | back to a string using the default encoding. | |
| 134 | 134 | ||
| 135 | - DEPRECATED - use PyBytes_AsEncodedObject() instead. */ | ||
| 135 | + DEPRECATED - use PyString_AsEncodedObject() instead. */ | ||
| 136 | 136 | ||
| 137 | - PyAPI_FUNC(PyObject*) PyBytes_AsEncodedString( | ||
| 137 | + PyAPI_FUNC(PyObject*) PyString_AsEncodedString( | ||
| 138 | 138 | PyObject *str, /* string object */ | |
| 139 | 139 | const char *encoding, /* encoding */ | |
| 140 | 140 | const char *errors /* error handling */ | |
@@ -143,7 +143,7 @@ PyAPI_FUNC(PyObject*) PyBytes_AsEncodedString( | |||
| 143 | 143 | /* Decodes a string object and returns the result as Python | |
| 144 | 144 | object. */ | |
| 145 | 145 | ||
| 146 | - PyAPI_FUNC(PyObject*) PyBytes_AsDecodedObject( | ||
| 146 | + PyAPI_FUNC(PyObject*) PyString_AsDecodedObject( | ||
| 147 | 147 | PyObject *str, /* string object */ | |
| 148 | 148 | const char *encoding, /* encoding */ | |
| 149 | 149 | const char *errors /* error handling */ | |
@@ -155,9 +155,9 @@ PyAPI_FUNC(PyObject*) PyBytes_AsDecodedObject( | |||
| 155 | 155 | If the codec returns an Unicode object, the object is converted | |
| 156 | 156 | back to a string using the default encoding. | |
| 157 | 157 | ||
| 158 | - DEPRECATED - use PyBytes_AsDecodedObject() instead. */ | ||
| 158 | + DEPRECATED - use PyString_AsDecodedObject() instead. */ | ||
| 159 | 159 | ||
| 160 | - PyAPI_FUNC(PyObject*) PyBytes_AsDecodedString( | ||
| 160 | + PyAPI_FUNC(PyObject*) PyString_AsDecodedString( | ||
| 161 | 161 | PyObject *str, /* string object */ | |
| 162 | 162 | const char *encoding, /* encoding */ | |
| 163 | 163 | const char *errors /* error handling */ | |
@@ -169,7 +169,7 @@ PyAPI_FUNC(PyObject*) PyBytes_AsDecodedString( | |||
| 169 | 169 | 0-terminated (passing a string with embedded NULL characters will | |
| 170 | 170 | cause an exception). */ | |
| 171 | 171 | ||
| 172 | - PyAPI_FUNC(int) PyBytes_AsStringAndSize( | ||
| 172 | + PyAPI_FUNC(int) PyString_AsStringAndSize( | ||
| 173 | 173 | register PyObject *obj, /* string or Unicode object */ | |
| 174 | 174 | register char **s, /* pointer to buffer variable */ | |
| 175 | 175 | register Py_ssize_t *len /* pointer to length variable or NULL | |
@@ -181,7 +181,7 @@ PyAPI_FUNC(int) PyBytes_AsStringAndSize( | |||
| 181 | 181 | into the string pointed to by buffer. For the argument descriptions, | |
| 182 | 182 | see Objects/stringlib/localeutil.h */ | |
| 183 | 183 | ||
| 184 | - PyAPI_FUNC(int) _PyBytes_InsertThousandsGrouping(char *buffer, | ||
| 184 | + PyAPI_FUNC(int) _PyString_InsertThousandsGrouping(char *buffer, | ||
| 185 | 185 | Py_ssize_t len, | |
| 186 | 186 | char *plast, | |
| 187 | 187 | Py_ssize_t buf_size, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -504,7 +504,7 @@ PyAPI_FUNC(long) _Py_HashDouble(double); | |||
| 504 | 504 | PyAPI_FUNC(long) _Py_HashPointer(void*); | |
| 505 | 505 | ||
| 506 | 506 | /* Helper for passing objects to printf and the like */ | |
| 507 | - #define PyObject_REPR(obj) PyBytes_AS_STRING(PyObject_Repr(obj)) | ||
| 507 | + #define PyObject_REPR(obj) PyString_AS_STRING(PyObject_Repr(obj)) | ||
| 508 | 508 | ||
| 509 | 509 | /* Flag bits for printing: */ | |
| 510 | 510 | #define Py_PRINT_RAW 1 /* No string quotes etc. */ | |
@@ -598,7 +598,7 @@ given type object has a specified feature. | |||
| 598 | 598 | #define Py_TPFLAGS_LONG_SUBCLASS (1L<<24) | |
| 599 | 599 | #define Py_TPFLAGS_LIST_SUBCLASS (1L<<25) | |
| 600 | 600 | #define Py_TPFLAGS_TUPLE_SUBCLASS (1L<<26) | |
| 601 | - #define Py_TPFLAGS_BYTES_SUBCLASS (1L<<27) | ||
| 601 | + #define Py_TPFLAGS_STRING_SUBCLASS (1L<<27) | ||
| 602 | 602 | #define Py_TPFLAGS_UNICODE_SUBCLASS (1L<<28) | |
| 603 | 603 | #define Py_TPFLAGS_DICT_SUBCLASS (1L<<29) | |
| 604 | 604 | #define Py_TPFLAGS_BASE_EXC_SUBCLASS (1L<<30) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -146,7 +146,7 @@ static PyObject *PyCurses_ ## X (PyObject *self) \ | |||
| 146 | 146 | static PyObject *PyCurses_ ## X (PyObject *self) \ | |
| 147 | 147 | { \ | |
| 148 | 148 | PyCursesInitialised \ | |
| 149 | - return PyBytes_FromString(X()); } | ||
| 149 | + return PyString_FromString(X()); } | ||
| 150 | 150 | ||
| 151 | 151 | #define NoArgTrueFalseFunction(X) \ | |
| 152 | 152 | static PyObject *PyCurses_ ## X (PyObject *self) \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,7 +104,7 @@ PyAPI_FUNC(void) PyErr_NormalizeException(PyObject**, PyObject**, PyObject**); | |||
| 104 | 104 | ||
| 105 | 105 | #define PyExceptionClass_Name(x) \ | |
| 106 | 106 | (PyClass_Check((x)) \ | |
| 107 | - ? PyBytes_AS_STRING(((PyClassObject*)(x))->cl_name) \ | ||
| 107 | + ? PyString_AS_STRING(((PyClassObject*)(x))->cl_name) \ | ||
| 108 | 108 | : (char *)(((PyTypeObject*)(x))->tp_name)) | |
| 109 | 109 | ||
| 110 | 110 | #define PyExceptionInstance_Class(x) \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,9 +135,9 @@ typedef Py_intptr_t Py_ssize_t; | |||
| 135 | 135 | * all platforms (Python interprets the format string itself, and does whatever | |
| 136 | 136 | * the platform C requires to convert a size_t/Py_ssize_t argument): | |
| 137 | 137 | * | |
| 138 | - * PyBytes_FromFormat | ||
| 138 | + * PyString_FromFormat | ||
| 139 | 139 | * PyErr_Format | |
| 140 | - * PyBytes_FromFormatV | ||
| 140 | + * PyString_FromFormatV | ||
| 141 | 141 | * | |
| 142 | 142 | * Lower-level uses require that you interpolate the correct format modifier | |
| 143 | 143 | * yourself (e.g., calling printf, fprintf, sprintf, PyOS_snprintf); for | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,7 +136,7 @@ PyAPI_FUNC(void) PyDict_Fini(void); | |||
| 136 | 136 | PyAPI_FUNC(void) PyTuple_Fini(void); | |
| 137 | 137 | PyAPI_FUNC(void) PyList_Fini(void); | |
| 138 | 138 | PyAPI_FUNC(void) PySet_Fini(void); | |
| 139 | - PyAPI_FUNC(void) PyBytes_Fini(void); | ||
| 139 | + PyAPI_FUNC(void) PyString_Fini(void); | ||
| 140 | 140 | PyAPI_FUNC(void) PyInt_Fini(void); | |
| 141 | 141 | PyAPI_FUNC(void) PyFloat_Fini(void); | |
| 142 | 142 | PyAPI_FUNC(void) PyOS_FiniInterrupts(void); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments