Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
lib2to3.pygram.Symbols Class Reference
Inheritance diagram for lib2to3.pygram.Symbols:
Inheritance graph
[legend]
Collaboration diagram for lib2to3.pygram.Symbols:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 20 of file pygram.py.


Constructor & Destructor Documentation

def lib2to3.pygram.Symbols.__init__ (   self,
  grammar 
)
Initializer.

Creates an attribute for each grammar symbol (nonterminal),
whose value is the symbol's type (an int >= 256).

Definition at line 22 of file pygram.py.

00022 
00023     def __init__(self, grammar):
00024         """Initializer.
00025 
00026         Creates an attribute for each grammar symbol (nonterminal),
00027         whose value is the symbol's type (an int >= 256).
00028         """
00029         for name, symbol in grammar.symbol2number.items():
00030             setattr(self, name, symbol)
00031 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: