From 05206bcaf4b41de08adb4a3b834c338a0c7d2d0e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 10 Mar 2011 08:12:04 -0500 Subject: [PATCH] Move name/cname descriptions from Ctx to Entry and remove const from Ctx. --- Cython/Compiler/Parsing.py | 9 --------- Cython/Compiler/Symtab.py | 6 ++++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index ca598489..4a822d5e 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -26,8 +26,6 @@ import Options class Ctx(object): """ Parsing context - * cname (string): Generated symbol name (or source name, is the - symbol is external. * namespace (string): C++ namespace of the source (`None` for C objects, set if the symbol is external) * cdef_flag (boolean): Symbol (data) has a C definition. @@ -39,13 +37,9 @@ class Ctx(object): definition is created). * ignore: ? something about symbol re-definition? - * const (boolean): Symbol data is readonly. * api (boolean): Add to generated header file - - * name (string): Name to which the object is bound (if the object - is visible) * visibility ('private'|'public'|'readonly'): * private: Object is not exposed to Python code. @@ -61,14 +55,11 @@ class Ctx(object): nogil = 0 templates = None - cname = None namespace = None cdef_flag = 0 c_visibility = 'private' - const = 0 api = 0 - name = None visibility = 'public' overridable = 0 diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 2710d6b4..5ffcb0ca 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -58,8 +58,10 @@ class BufferAux(object): class Entry(object): # A symbol table entry in a Scope or ModuleNamespace. # - # name string Python name of entity - # cname string C name of entity + # name string Name to which the object is bound (if the object + # is visible from Python) + # cname string Generated C symbol name (or source name, if the + # symbol is external. # type PyrexType Type of entity # doc string Doc string # init string Initial value -- 2.26.2