Skip to content

Commit

Permalink
Merge pull request #849 from ijl/dict-presized
Browse files Browse the repository at this point in the history
_PyDict_NewPresized()
  • Loading branch information
kngwyu authored Apr 7, 2020
2 parents 5a68f74 + 97f4987 commit cffe7ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ffi/dictobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ pub unsafe fn PyDictViewSet_Check(op: *mut PyObject) -> c_int {
extern "C" {
#[cfg_attr(PyPy, link_name = "PyPyDict_New")]
pub fn PyDict_New() -> *mut PyObject;
#[cfg(not(PyPy))]
pub fn _PyDict_NewPresized(minused: Py_ssize_t) -> *mut PyObject;
#[cfg_attr(PyPy, link_name = "PyPyDict_GetItem")]
pub fn PyDict_GetItem(mp: *mut PyObject, key: *mut PyObject) -> *mut PyObject;
pub fn PyDict_GetItemWithError(mp: *mut PyObject, key: *mut PyObject) -> *mut PyObject;
Expand Down

0 comments on commit cffe7ed

Please sign in to comment.