| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -549,7 +549,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ | |||
| 549 | 549 | ||
| 550 | 550 | PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj, | |
| 551 | 551 | const char **buffer, | |
| 552 | - Py_ssize_t *buffer_len); | ||
| 552 | + Py_ssize_t *buffer_len) | ||
| 553 | + Py_DEPRECATED(3.0); | ||
| 553 | 554 | ||
| 554 | 555 | /* | |
| 555 | 556 | Takes an arbitrary object which must support the (character, | |
@@ -562,7 +563,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ | |||
| 562 | 563 | an exception set. | |
| 563 | 564 | */ | |
| 564 | 565 | ||
| 565 | - PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj); | ||
| 566 | + PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj) | ||
| 567 | + Py_DEPRECATED(3.0); | ||
| 566 | 568 | ||
| 567 | 569 | /* | |
| 568 | 570 | Checks whether an arbitrary object supports the (character, | |
@@ -572,7 +574,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ | |||
| 572 | 574 | ||
| 573 | 575 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, | |
| 574 | 576 | const void **buffer, | |
| 575 | - Py_ssize_t *buffer_len); | ||
| 577 | + Py_ssize_t *buffer_len) | ||
| 578 | + Py_DEPRECATED(3.0); | ||
| 576 | 579 | ||
| 577 | 580 | /* | |
| 578 | 581 | Same as PyObject_AsCharBuffer() except that this API expects | |
@@ -587,7 +590,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ | |||
| 587 | 590 | ||
| 588 | 591 | PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj, | |
| 589 | 592 | void **buffer, | |
| 590 | - Py_ssize_t *buffer_len); | ||
| 593 | + Py_ssize_t *buffer_len) | ||
| 594 | + Py_DEPRECATED(3.0); | ||
| 591 | 595 | ||
| 592 | 596 | /* | |
| 593 | 597 | Takes an arbitrary object which must support the (writable, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -182,8 +182,8 @@ PyAPI_FUNC(void) PyEval_InitThreads(void); | |||
| 182 | 182 | #ifndef Py_LIMITED_API | |
| 183 | 183 | PyAPI_FUNC(void) _PyEval_FiniThreads(void); | |
| 184 | 184 | #endif /* !Py_LIMITED_API */ | |
| 185 | - PyAPI_FUNC(void) PyEval_AcquireLock(void); | ||
| 186 | - PyAPI_FUNC(void) PyEval_ReleaseLock(void); | ||
| 185 | + PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2); | ||
| 186 | + PyAPI_FUNC(void) PyEval_ReleaseLock(void) /* Py_DEPRECATED(3.2) */; | ||
| 187 | 187 | PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); | |
| 188 | 188 | PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate); | |
| 189 | 189 | PyAPI_FUNC(void) PyEval_ReInitThreads(void); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,7 +94,7 @@ PyAPI_FUNC(long long) PyLong_AsLongLongAndOverflow(PyObject *, int *); | |||
| 94 | 94 | ||
| 95 | 95 | PyAPI_FUNC(PyObject *) PyLong_FromString(const char *, char **, int); | |
| 96 | 96 | #ifndef Py_LIMITED_API | |
| 97 | - PyAPI_FUNC(PyObject *) PyLong_FromUnicode(Py_UNICODE*, Py_ssize_t, int); | ||
| 97 | + PyAPI_FUNC(PyObject *) PyLong_FromUnicode(Py_UNICODE*, Py_ssize_t, int) Py_DEPRECATED(3.3); | ||
| 98 | 98 | PyAPI_FUNC(PyObject *) PyLong_FromUnicodeObject(PyObject *u, int base); | |
| 99 | 99 | PyAPI_FUNC(PyObject *) _PyLong_FromBytes(const char *, Py_ssize_t, int); | |
| 100 | 100 | #endif | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ PyAPI_FUNC(PyObject *) PyModule_New( | |||
| 21 | 21 | PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *); | |
| 22 | 22 | PyAPI_FUNC(PyObject *) PyModule_GetNameObject(PyObject *); | |
| 23 | 23 | PyAPI_FUNC(const char *) PyModule_GetName(PyObject *); | |
| 24 | - PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *); | ||
| 24 | + PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *) Py_DEPRECATED(3.2); | ||
| 25 | 25 | PyAPI_FUNC(PyObject *) PyModule_GetFilenameObject(PyObject *); | |
| 26 | 26 | #ifndef Py_LIMITED_API | |
| 27 | 27 | PyAPI_FUNC(void) _PyModule_Clear(PyObject *); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -240,7 +240,7 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilename( | |||
| 240 | 240 | ); | |
| 241 | 241 | #if defined(MS_WINDOWS) && !defined(Py_LIMITED_API) | |
| 242 | 242 | PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithUnicodeFilename( | |
| 243 | - PyObject *, const Py_UNICODE *); | ||
| 243 | + PyObject *, const Py_UNICODE *) Py_DEPRECATED(3.3); | ||
| 244 | 244 | #endif /* MS_WINDOWS */ | |
| 245 | 245 | ||
| 246 | 246 | PyAPI_FUNC(PyObject *) PyErr_Format( | |
@@ -274,7 +274,7 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename( | |||
| 274 | 274 | #ifndef Py_LIMITED_API | |
| 275 | 275 | /* XXX redeclare to use WSTRING */ | |
| 276 | 276 | PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithUnicodeFilename( | |
| 277 | - int, const Py_UNICODE *); | ||
| 277 | + int, const Py_UNICODE *) Py_DEPRECATED(3.3); | ||
| 278 | 278 | #endif | |
| 279 | 279 | PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErr(int); | |
| 280 | 280 | PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithFilenameObject( | |
@@ -288,7 +288,7 @@ PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithFilename( | |||
| 288 | 288 | ); | |
| 289 | 289 | #ifndef Py_LIMITED_API | |
| 290 | 290 | PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithUnicodeFilename( | |
| 291 | - PyObject *,int, const Py_UNICODE *); | ||
| 291 | + PyObject *,int, const Py_UNICODE *) Py_DEPRECATED(3.3); | ||
| 292 | 292 | #endif | |
| 293 | 293 | PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErr(PyObject *, int); | |
| 294 | 294 | #endif /* MS_WINDOWS */ | |
@@ -391,7 +391,7 @@ PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_Create( | |||
| 391 | 391 | Py_ssize_t start, | |
| 392 | 392 | Py_ssize_t end, | |
| 393 | 393 | const char *reason /* UTF-8 encoded string */ | |
| 394 | - ); | ||
| 394 | + ) Py_DEPRECATED(3.3); | ||
| 395 | 395 | #endif | |
| 396 | 396 | ||
| 397 | 397 | /* create a UnicodeTranslateError object */ | |
@@ -402,7 +402,7 @@ PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_Create( | |||
| 402 | 402 | Py_ssize_t start, | |
| 403 | 403 | Py_ssize_t end, | |
| 404 | 404 | const char *reason /* UTF-8 encoded string */ | |
| 405 | - ); | ||
| 405 | + ) Py_DEPRECATED(3.3); | ||
| 406 | 406 | PyAPI_FUNC(PyObject *) _PyUnicodeTranslateError_Create( | |
| 407 | 407 | PyObject *object, | |
| 408 | 408 | Py_ssize_t start, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,7 @@ Copyright (c) Corporation for National Research Initiatives. | |||
| 90 | 90 | ||
| 91 | 91 | #ifndef Py_LIMITED_API | |
| 92 | 92 | #define PY_UNICODE_TYPE wchar_t | |
| 93 | - typedef wchar_t Py_UNICODE; | ||
| 93 | + typedef wchar_t Py_UNICODE /* Py_DEPRECATED(3.3) */; | ||
| 94 | 94 | #endif | |
| 95 | 95 | ||
| 96 | 96 | /* If the compiler provides a wchar_t type we try to support it | |
@@ -387,9 +387,11 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type; | |||
| 387 | 387 | ((void)PyUnicode_AsUnicode((PyObject *)(op)), \ | |
| 388 | 388 | assert(((PyASCIIObject *)(op))->wstr), \ | |
| 389 | 389 | PyUnicode_WSTR_LENGTH(op))) | |
| 390 | + /* Py_DEPRECATED(3.3) */ | ||
| 390 | 391 | ||
| 391 | 392 | #define PyUnicode_GET_DATA_SIZE(op) \ | |
| 392 | 393 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | |
| 394 | + /* Py_DEPRECATED(3.3) */ | ||
| 393 | 395 | ||
| 394 | 396 | /* Alias for PyUnicode_AsUnicode(). This will create a wchar_t/Py_UNICODE | |
| 395 | 397 | representation on demand. Using this macro is very inefficient now, | |
@@ -400,9 +402,11 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type; | |||
| 400 | 402 | (assert(PyUnicode_Check(op)), \ | |
| 401 | 403 | (((PyASCIIObject *)(op))->wstr) ? (((PyASCIIObject *)(op))->wstr) : \ | |
| 402 | 404 | PyUnicode_AsUnicode((PyObject *)(op))) | |
| 405 | + /* Py_DEPRECATED(3.3) */ | ||
| 403 | 406 | ||
| 404 | 407 | #define PyUnicode_AS_DATA(op) \ | |
| 405 | 408 | ((const char *)(PyUnicode_AS_UNICODE(op))) | |
| 409 | + /* Py_DEPRECATED(3.3) */ | ||
| 406 | 410 | ||
| 407 | 411 | ||
| 408 | 412 | /* --- Flexible String Representation Helper Macros (PEP 393) -------------- */ | |
@@ -688,7 +692,7 @@ PyAPI_FUNC(void) _PyUnicode_FastFill( | |||
| 688 | 692 | PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | |
| 689 | 693 | const Py_UNICODE *u, /* Unicode buffer */ | |
| 690 | 694 | Py_ssize_t size /* size of buffer */ | |
| 691 | - ); | ||
| 695 | + ) /* Py_DEPRECATED(3.3) */; | ||
| 692 | 696 | #endif | |
| 693 | 697 | ||
| 694 | 698 | /* Similar to PyUnicode_FromUnicode(), but u points to UTF-8 encoded bytes */ | |
@@ -756,7 +760,7 @@ PyAPI_FUNC(Py_UCS4*) PyUnicode_AsUCS4Copy(PyObject *unicode); | |||
| 756 | 760 | #ifndef Py_LIMITED_API | |
| 757 | 761 | PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | |
| 758 | 762 | PyObject *unicode /* Unicode object */ | |
| 759 | - ); | ||
| 763 | + ) /* Py_DEPRECATED(3.3) */; | ||
| 760 | 764 | #endif | |
| 761 | 765 | ||
| 762 | 766 | /* Return a read-only pointer to the Unicode object's internal | |
@@ -768,7 +772,7 @@ PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | |||
| 768 | 772 | PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicodeAndSize( | |
| 769 | 773 | PyObject *unicode, /* Unicode object */ | |
| 770 | 774 | Py_ssize_t *size /* location where to save the length */ | |
| 771 | - ); | ||
| 775 | + ) /* Py_DEPRECATED(3.3) */; | ||
| 772 | 776 | #endif | |
| 773 | 777 | ||
| 774 | 778 | /* Get the length of the Unicode object. */ | |
@@ -782,7 +786,7 @@ PyAPI_FUNC(Py_ssize_t) PyUnicode_GetLength( | |||
| 782 | 786 | ||
| 783 | 787 | PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | |
| 784 | 788 | PyObject *unicode /* Unicode object */ | |
| 785 | - ); | ||
| 789 | + ) Py_DEPRECATED(3.3); | ||
| 786 | 790 | ||
| 787 | 791 | /* Read a character from the string. */ | |
| 788 | 792 | ||
@@ -804,7 +808,7 @@ PyAPI_FUNC(int) PyUnicode_WriteChar( | |||
| 804 | 808 | ||
| 805 | 809 | #ifndef Py_LIMITED_API | |
| 806 | 810 | /* Get the maximum ordinal for a Unicode character. */ | |
| 807 | - PyAPI_FUNC(Py_UNICODE) PyUnicode_GetMax(void); | ||
| 811 | + PyAPI_FUNC(Py_UNICODE) PyUnicode_GetMax(void) Py_DEPRECATED(3.3); | ||
| 808 | 812 | #endif | |
| 809 | 813 | ||
| 810 | 814 | /* Resize a Unicode object. The length is the number of characters, except | |
@@ -1205,7 +1209,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_Encode( | |||
| 1205 | 1209 | Py_ssize_t size, /* number of Py_UNICODE chars to encode */ | |
| 1206 | 1210 | const char *encoding, /* encoding */ | |
| 1207 | 1211 | const char *errors /* error handling */ | |
| 1208 | - ); | ||
| 1212 | + ) Py_DEPRECATED(3.3); | ||
| 1209 | 1213 | #endif | |
| 1210 | 1214 | ||
| 1211 | 1215 | /* Encodes a Unicode object and returns the result as Python | |
@@ -1272,7 +1276,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF7( | |||
| 1272 | 1276 | int base64SetO, /* Encode RFC2152 Set O characters in base64 */ | |
| 1273 | 1277 | int base64WhiteSpace, /* Encode whitespace (sp, ht, nl, cr) in base64 */ | |
| 1274 | 1278 | const char *errors /* error handling */ | |
| 1275 | - ); | ||
| 1279 | + ) Py_DEPRECATED(3.3); | ||
| 1276 | 1280 | PyAPI_FUNC(PyObject*) _PyUnicode_EncodeUTF7( | |
| 1277 | 1281 | PyObject *unicode, /* Unicode object */ | |
| 1278 | 1282 | int base64SetO, /* Encode RFC2152 Set O characters in base64 */ | |
@@ -1309,7 +1313,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | |||
| 1309 | 1313 | const Py_UNICODE *data, /* Unicode char buffer */ | |
| 1310 | 1314 | Py_ssize_t length, /* number of Py_UNICODE chars to encode */ | |
| 1311 | 1315 | const char *errors /* error handling */ | |
| 1312 | - ); | ||
| 1316 | + ) Py_DEPRECATED(3.3); | ||
| 1313 | 1317 | #endif | |
| 1314 | 1318 | ||
| 1315 | 1319 | /* --- UTF-32 Codecs ------------------------------------------------------ */ | |
@@ -1385,7 +1389,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF32( | |||
| 1385 | 1389 | Py_ssize_t length, /* number of Py_UNICODE chars to encode */ | |
| 1386 | 1390 | const char *errors, /* error handling */ | |
| 1387 | 1391 | int byteorder /* byteorder to use 0=BOM+native;-1=LE,1=BE */ | |
| 1388 | - ); | ||
| 1392 | + ) Py_DEPRECATED(3.3); | ||
| 1389 | 1393 | PyAPI_FUNC(PyObject*) _PyUnicode_EncodeUTF32( | |
| 1390 | 1394 | PyObject *object, /* Unicode object */ | |
| 1391 | 1395 | const char *errors, /* error handling */ | |
@@ -1470,7 +1474,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | |||
| 1470 | 1474 | Py_ssize_t length, /* number of Py_UNICODE chars to encode */ | |
| 1471 | 1475 | const char *errors, /* error handling */ | |
| 1472 | 1476 | int byteorder /* byteorder to use 0=BOM+native;-1=LE,1=BE */ | |
| 1473 | - ); | ||
| 1477 | + ) Py_DEPRECATED(3.3); | ||
| 1474 | 1478 | PyAPI_FUNC(PyObject*) _PyUnicode_EncodeUTF16( | |
| 1475 | 1479 | PyObject* unicode, /* Unicode object */ | |
| 1476 | 1480 | const char *errors, /* error handling */ | |
@@ -1505,7 +1509,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_AsUnicodeEscapeString( | |||
| 1505 | 1509 | PyAPI_FUNC(PyObject*) PyUnicode_EncodeUnicodeEscape( | |
| 1506 | 1510 | const Py_UNICODE *data, /* Unicode char buffer */ | |
| 1507 | 1511 | Py_ssize_t length /* Number of Py_UNICODE chars to encode */ | |
| 1508 | - ); | ||
| 1512 | + ) Py_DEPRECATED(3.3); | ||
| 1509 | 1513 | #endif | |
| 1510 | 1514 | ||
| 1511 | 1515 | /* --- Raw-Unicode-Escape Codecs ------------------------------------------ */ | |
@@ -1524,7 +1528,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_AsRawUnicodeEscapeString( | |||
| 1524 | 1528 | PyAPI_FUNC(PyObject*) PyUnicode_EncodeRawUnicodeEscape( | |
| 1525 | 1529 | const Py_UNICODE *data, /* Unicode char buffer */ | |
| 1526 | 1530 | Py_ssize_t length /* Number of Py_UNICODE chars to encode */ | |
| 1527 | - ); | ||
| 1531 | + ) Py_DEPRECATED(3.3); | ||
| 1528 | 1532 | #endif | |
| 1529 | 1533 | ||
| 1530 | 1534 | /* --- Unicode Internal Codec --------------------------------------------- | |
@@ -1564,7 +1568,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeLatin1( | |||
| 1564 | 1568 | const Py_UNICODE *data, /* Unicode char buffer */ | |
| 1565 | 1569 | Py_ssize_t length, /* Number of Py_UNICODE chars to encode */ | |
| 1566 | 1570 | const char *errors /* error handling */ | |
| 1567 | - ); | ||
| 1571 | + ) Py_DEPRECATED(3.3); | ||
| 1568 | 1572 | #endif | |
| 1569 | 1573 | ||
| 1570 | 1574 | /* --- ASCII Codecs ------------------------------------------------------- | |
@@ -1592,7 +1596,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeASCII( | |||
| 1592 | 1596 | const Py_UNICODE *data, /* Unicode char buffer */ | |
| 1593 | 1597 | Py_ssize_t length, /* Number of Py_UNICODE chars to encode */ | |
| 1594 | 1598 | const char *errors /* error handling */ | |
| 1595 | - ); | ||
| 1599 | + ) Py_DEPRECATED(3.3); | ||
| 1596 | 1600 | #endif | |
| 1597 | 1601 | ||
| 1598 | 1602 | /* --- Character Map Codecs ----------------------------------------------- | |
@@ -1638,7 +1642,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeCharmap( | |||
| 1638 | 1642 | PyObject *mapping, /* character mapping | |
| 1639 | 1643 | (unicode ordinal -> char ordinal) */ | |
| 1640 | 1644 | const char *errors /* error handling */ | |
| 1641 | - ); | ||
| 1645 | + ) Py_DEPRECATED(3.3); | ||
| 1642 | 1646 | PyAPI_FUNC(PyObject*) _PyUnicode_EncodeCharmap( | |
| 1643 | 1647 | PyObject *unicode, /* Unicode object */ | |
| 1644 | 1648 | PyObject *mapping, /* character mapping | |
@@ -1666,7 +1670,7 @@ PyAPI_FUNC(PyObject *) PyUnicode_TranslateCharmap( | |||
| 1666 | 1670 | Py_ssize_t length, /* Number of Py_UNICODE chars to encode */ | |
| 1667 | 1671 | PyObject *table, /* Translate table */ | |
| 1668 | 1672 | const char *errors /* error handling */ | |
| 1669 | - ); | ||
| 1673 | + ) Py_DEPRECATED(3.3); | ||
| 1670 | 1674 | #endif | |
| 1671 | 1675 | ||
| 1672 | 1676 | #ifdef MS_WINDOWS | |
@@ -1703,7 +1707,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeMBCS( | |||
| 1703 | 1707 | const Py_UNICODE *data, /* Unicode char buffer */ | |
| 1704 | 1708 | Py_ssize_t length, /* number of Py_UNICODE chars to encode */ | |
| 1705 | 1709 | const char *errors /* error handling */ | |
| 1706 | - ); | ||
| 1710 | + ) Py_DEPRECATED(3.3); | ||
| 1707 | 1711 | #endif | |
| 1708 | 1712 | ||
| 1709 | 1713 | PyAPI_FUNC(PyObject*) PyUnicode_EncodeCodePage( | |
@@ -1744,7 +1748,7 @@ PyAPI_FUNC(int) PyUnicode_EncodeDecimal( | |||
| 1744 | 1748 | Py_ssize_t length, /* Number of Py_UNICODE chars to encode */ | |
| 1745 | 1749 | char *output, /* Output buffer; must have size >= length */ | |
| 1746 | 1750 | const char *errors /* error handling */ | |
| 1747 | - ); | ||
| 1751 | + ) /* Py_DEPRECATED(3.3) */; | ||
| 1748 | 1752 | #endif | |
| 1749 | 1753 | ||
| 1750 | 1754 | /* Transforms code points that have decimal digit property to the | |
@@ -1757,7 +1761,7 @@ PyAPI_FUNC(int) PyUnicode_EncodeDecimal( | |||
| 1757 | 1761 | PyAPI_FUNC(PyObject*) PyUnicode_TransformDecimalToASCII( | |
| 1758 | 1762 | Py_UNICODE *s, /* Unicode buffer */ | |
| 1759 | 1763 | Py_ssize_t length /* Number of Py_UNICODE chars to transform */ | |
| 1760 | - ); | ||
| 1764 | + ) /* Py_DEPRECATED(3.3) */; | ||
| 1761 | 1765 | #endif | |
| 1762 | 1766 | ||
| 1763 | 1767 | /* Similar to PyUnicode_TransformDecimalToASCII(), but takes a PyObject | |
@@ -2182,15 +2186,15 @@ PyAPI_FUNC(int) _PyUnicode_IsLinebreak( | |||
| 2182 | 2186 | ||
| 2183 | 2187 | PyAPI_FUNC(Py_UCS4) _PyUnicode_ToLowercase( | |
| 2184 | 2188 | Py_UCS4 ch /* Unicode character */ | |
| 2185 | - ); | ||
| 2189 | + ) /* Py_DEPRECATED(3.3) */; | ||
| 2186 | 2190 | ||
| 2187 | 2191 | PyAPI_FUNC(Py_UCS4) _PyUnicode_ToUppercase( | |
| 2188 | 2192 | Py_UCS4 ch /* Unicode character */ | |
| 2189 | - ); | ||
| 2193 | + ) /* Py_DEPRECATED(3.3) */; | ||
| 2190 | 2194 | ||
| 2191 | 2195 | PyAPI_FUNC(Py_UCS4) _PyUnicode_ToTitlecase( | |
| 2192 | 2196 | Py_UCS4 ch /* Unicode character */ | |
| 2193 | - ); | ||
| 2197 | + ) Py_DEPRECATED(3.3); | ||
| 2194 | 2198 | ||
| 2195 | 2199 | PyAPI_FUNC(int) _PyUnicode_ToLowerFull( | |
| 2196 | 2200 | Py_UCS4 ch, /* Unicode character */ | |
@@ -2254,40 +2258,40 @@ PyAPI_FUNC(int) _PyUnicode_IsAlpha( | |||
| 2254 | 2258 | ||
| 2255 | 2259 | PyAPI_FUNC(size_t) Py_UNICODE_strlen( | |
| 2256 | 2260 | const Py_UNICODE *u | |
| 2257 | - ); | ||
| 2261 | + ) Py_DEPRECATED(3.3); | ||
| 2258 | 2262 | ||
| 2259 | 2263 | PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strcpy( | |
| 2260 | 2264 | Py_UNICODE *s1, | |
| 2261 | - const Py_UNICODE *s2); | ||
| 2265 | + const Py_UNICODE *s2) Py_DEPRECATED(3.3); | ||
| 2262 | 2266 | ||
| 2263 | 2267 | PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strcat( | |
| 2264 | - Py_UNICODE *s1, const Py_UNICODE *s2); | ||
| 2268 | + Py_UNICODE *s1, const Py_UNICODE *s2) Py_DEPRECATED(3.3); | ||
| 2265 | 2269 | ||
| 2266 | 2270 | PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strncpy( | |
| 2267 | 2271 | Py_UNICODE *s1, | |
| 2268 | 2272 | const Py_UNICODE *s2, | |
| 2269 | - size_t n); | ||
| 2273 | + size_t n) Py_DEPRECATED(3.3); | ||
| 2270 | 2274 | ||
| 2271 | 2275 | PyAPI_FUNC(int) Py_UNICODE_strcmp( | |
| 2272 | 2276 | const Py_UNICODE *s1, | |
| 2273 | 2277 | const Py_UNICODE *s2 | |
| 2274 | - ); | ||
| 2278 | + ) Py_DEPRECATED(3.3); | ||
| 2275 | 2279 | ||
| 2276 | 2280 | PyAPI_FUNC(int) Py_UNICODE_strncmp( | |
| 2277 | 2281 | const Py_UNICODE *s1, | |
| 2278 | 2282 | const Py_UNICODE *s2, | |
| 2279 | 2283 | size_t n | |
| 2280 | - ); | ||
| 2284 | + ) Py_DEPRECATED(3.3); | ||
| 2281 | 2285 | ||
| 2282 | 2286 | PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strchr( | |
| 2283 | 2287 | const Py_UNICODE *s, | |
| 2284 | 2288 | Py_UNICODE c | |
| 2285 | - ); | ||
| 2289 | + ) Py_DEPRECATED(3.3); | ||
| 2286 | 2290 | ||
| 2287 | 2291 | PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strrchr( | |
| 2288 | 2292 | const Py_UNICODE *s, | |
| 2289 | 2293 | Py_UNICODE c | |
| 2290 | - ); | ||
| 2294 | + ) Py_DEPRECATED(3.3); | ||
| 2291 | 2295 | ||
| 2292 | 2296 | PyAPI_FUNC(PyObject*) _PyUnicode_FormatLong(PyObject *, int, int, int); | |
| 2293 | 2297 | ||
@@ -2297,7 +2301,7 @@ PyAPI_FUNC(PyObject*) _PyUnicode_FormatLong(PyObject *, int, int, int); | |||
| 2297 | 2301 | ||
| 2298 | 2302 | PyAPI_FUNC(Py_UNICODE*) PyUnicode_AsUnicodeCopy( | |
| 2299 | 2303 | PyObject *unicode | |
| 2300 | - ); | ||
| 2304 | + ) Py_DEPRECATED(3.3); | ||
| 2301 | 2305 | #endif /* Py_LIMITED_API */ | |
| 2302 | 2306 | ||
| 2303 | 2307 | #if defined(Py_DEBUG) && !defined(Py_LIMITED_API) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments