mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
merge 2.6 with hash randomization fix
This commit is contained in:
commit
aee9dfba4a
26 changed files with 2503 additions and 140 deletions
|
@ -517,6 +517,12 @@ PyAPI_FUNC(void) Py_ReprLeave(PyObject *);
|
|||
PyAPI_FUNC(long) _Py_HashDouble(double);
|
||||
PyAPI_FUNC(long) _Py_HashPointer(void*);
|
||||
|
||||
typedef struct {
|
||||
long prefix;
|
||||
long suffix;
|
||||
} _Py_HashSecret_t;
|
||||
PyAPI_DATA(_Py_HashSecret_t) _Py_HashSecret;
|
||||
|
||||
/* Helper for passing objects to printf and the like */
|
||||
#define PyObject_REPR(obj) PyString_AS_STRING(PyObject_Repr(obj))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue