Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(42859)

Side by Side Diff: Include/object.h

Issue 13411: Hashable memoryviews
Patch Set: Created 7 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Include/memoryobject.h ('k') | Lib/test/test_memoryview.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef Py_OBJECT_H 1 #ifndef Py_OBJECT_H
2 #define Py_OBJECT_H 2 #define Py_OBJECT_H
3 #ifdef __cplusplus 3 #ifdef __cplusplus
4 extern "C" { 4 extern "C" {
5 #endif 5 #endif
6 6
7 7
8 /* Object and type object interface */ 8 /* Object and type object interface */
9 9
10 /* 10 /*
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 512
513 513
514 /* Helpers for printing recursive container types */ 514 /* Helpers for printing recursive container types */
515 PyAPI_FUNC(int) Py_ReprEnter(PyObject *); 515 PyAPI_FUNC(int) Py_ReprEnter(PyObject *);
516 PyAPI_FUNC(void) Py_ReprLeave(PyObject *); 516 PyAPI_FUNC(void) Py_ReprLeave(PyObject *);
517 517
518 /* Helpers for hash functions */ 518 /* Helpers for hash functions */
519 #ifndef Py_LIMITED_API 519 #ifndef Py_LIMITED_API
520 PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double); 520 PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
521 PyAPI_FUNC(Py_hash_t) _Py_HashPointer(void*); 521 PyAPI_FUNC(Py_hash_t) _Py_HashPointer(void*);
522 PyAPI_FUNC(Py_hash_t) _Py_HashBytes(unsigned char*, Py_ssize_t);
522 #endif 523 #endif
523 524
524 /* Helper for passing objects to printf and the like */ 525 /* Helper for passing objects to printf and the like */
525 #define PyObject_REPR(obj) _PyUnicode_AsString(PyObject_Repr(obj)) 526 #define PyObject_REPR(obj) _PyUnicode_AsString(PyObject_Repr(obj))
526 527
527 /* Flag bits for printing: */ 528 /* Flag bits for printing: */
528 #define Py_PRINT_RAW 1 /* No string quotes etc. */ 529 #define Py_PRINT_RAW 1 /* No string quotes etc. */
529 530
530 /* 531 /*
531 `Type flags (tp_flags) 532 `Type flags (tp_flags)
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 if (_PyTrash_delete_later && _PyTrash_delete_nesting <= 0) \ 926 if (_PyTrash_delete_later && _PyTrash_delete_nesting <= 0) \
926 _PyTrash_destroy_chain(); \ 927 _PyTrash_destroy_chain(); \
927 } \ 928 } \
928 else \ 929 else \
929 _PyTrash_deposit_object((PyObject*)op); 930 _PyTrash_deposit_object((PyObject*)op);
930 931
931 #ifdef __cplusplus 932 #ifdef __cplusplus
932 } 933 }
933 #endif 934 #endif
934 #endif /* !Py_OBJECT_H */ 935 #endif /* !Py_OBJECT_H */
OLDNEW
« no previous file with comments | « Include/memoryobject.h ('k') | Lib/test/test_memoryview.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+