Forward declaration of extension class in another module
authorGregory Ewing <greg.ewing@canterbury.ac.nz>
Wed, 14 May 2008 12:34:23 +0000 (00:34 +1200)
committerGregory Ewing <greg.ewing@canterbury.ac.nz>
Wed, 14 May 2008 12:34:23 +0000 (00:34 +1200)
commit4c4f6bdb0cc86ab03d0bef4c3140bae259d13790
tree7ab2c6db72ea72189cd27ff7d853e042d1d3e147
parent6194c79e737bed42f33fb8300687649a643eb665
Forward declaration of extension class in another module

+
+    - There is now a way of forward-declaring an extension type into
+      another module. This allows two .pxd files to define extension types
+      that refer to each other without running into circular import problems.
+      For example:
+
+        cimport blarg
+        cdef class blarg.Blarg # Forward declaration
+
+        cdef class Foo:
+          cdef blarg.Blarg blg
Cython/Compiler/Nodes.py
Cython/Compiler/Symtab.py