diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2014-10-10 13:50:11 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2014-10-10 13:50:11 +0200 |
commit | 3058af546292dc6b8fa1bccd9bdbbb29d43dff55 (patch) | |
tree | 9c3ca224cd1a811ec2cc0985f1b77348ba2b7fee | |
parent | d699d6ccc0265252d75dbd760607b8cec06e9c63 (diff) | |
download | cython-3058af546292dc6b8fa1bccd9bdbbb29d43dff55.tar.gz |
declare scanner classes final to resolve method calls at compile time
--HG--
extra : transplant_source : %3B%E2%B8%E5%8D%CC%B7p%CA%24%14%C3%D8%B87%A6%0Ej%A8%E8
-rw-r--r-- | Cython/Compiler/Scanning.pxd | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Cython/Compiler/Scanning.pxd b/Cython/Compiler/Scanning.pxd index 792c9a1e1..4d298ec79 100644 --- a/Cython/Compiler/Scanning.pxd +++ b/Cython/Compiler/Scanning.pxd @@ -8,6 +8,7 @@ cdef class Method: cdef object name cdef object __name__ +@cython.final cdef class CompileTimeScope: cdef public dict entries cdef public CompileTimeScope outer @@ -15,6 +16,7 @@ cdef class CompileTimeScope: cdef lookup_here(self, name) cpdef lookup(self, name) +@cython.final cdef class PyrexScanner(Scanner): cdef public context cdef public list included_files |