Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
move a comment to its proper place
Browse files Browse the repository at this point in the history
  • Loading branch information
nbruin committed Mar 21, 2014
1 parent c60d3c6 commit 109c161
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/misc/weak_dict.pyx
Expand Up @@ -151,9 +151,6 @@ cdef extern from "Python.h":
#this one's just missing.
long PyObject_Hash(object obj)

#this routine extracts the "dummy" sentinel value that is used in dicts to mark
#"freed" slots. We need that to delete things ourselves.

cdef PyObject* PyDict_GetItemWithError(dict op, object key) except? NULL:
cdef PyDictEntry* ep
cdef PyDictObject* mp = <PyDictObject*><void *>op
Expand All @@ -163,6 +160,9 @@ cdef PyObject* PyDict_GetItemWithError(dict op, object key) except? NULL:
else:
return NULL

#this routine extracts the "dummy" sentinel value that is used in dicts to mark
#"freed" slots. We need that to delete things ourselves.

cdef PyObject* init_dummy() except NULL:
cdef dict D = dict()
cdef PyDictObject* mp = <PyDictObject *><void *>D
Expand Down

0 comments on commit 109c161

Please sign in to comment.