Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: third_party/cython/src/Cython/Includes/cpython/weakref.pxd

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 from cpython.ref cimport PyObject
2
3 cdef extern from "Python.h":
4
5 bint PyWeakref_Check(object ob)
6 # Return true if ob is either a reference or proxy object.
7
8 bint PyWeakref_CheckRef(object ob)
9 # Return true if ob is a reference object.
10
11 bint PyWeakref_CheckProxy(ob)
12 # Return true if *ob* is a proxy object.
13
14 object PyWeakref_NewRef(object ob, object callback)
15 # Return a weak reference object for the object ob. This will
16 # always return a new reference, but is not guaranteed to create a
17 # new object; an existing reference object may be returned. The
18 # second parameter, callback, can be a callable object that
19 # receives notification when ob is garbage collected; it should
20 # accept a single parameter, which will be the weak reference
21 # object itself. callback may also be None or NULL. If ob is not
22 # a weakly-referencable object, or if callback is not callable,
23 # None, or NULL, this will return NULL and raise TypeError.
24
25 object PyWeakref_NewProxy(object ob, object callback)
26 # Return a weak reference proxy object for the object ob. This
27 # will always return a new reference, but is not guaranteed to
28 # create a new object; an existing proxy object may be returned.
29 # The second parameter, callback, can be a callable object that
30 # receives notification when ob is garbage collected; it should
31 # accept a single parameter, which will be the weak reference
32 # object itself. callback may also be None or NULL. If ob is not
33 # a weakly-referencable object, or if callback is not callable,
34 # None, or NULL, this will return NULL and raise TypeError.
35
36 PyObject* PyWeakref_GetObject(object ref)
37 # Return the referenced object from a weak reference, ref. If the
38 # referent is no longer live, returns None.
39
40 PyObject* PyWeakref_GET_OBJECT(object ref)
41 # Similar to PyWeakref_GetObject, but implemented as a macro that
42 # does no error checking.
OLDNEW
« no previous file with comments | « third_party/cython/src/Cython/Includes/cpython/version.pxd ('k') | third_party/cython/src/Cython/Includes/libc/__init__.pxd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698