~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-2.7.11-docs-html/library/symbol.html

  • Committer: Dave Kuhlman
  • Date: 2017-04-15 16:24:56 UTC
  • Revision ID: dkuhlman@davekuhlman.org-20170415162456-iav9vozzg4iwqwv3
Updated docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
 
 
4
 
 
5
 
<html xmlns="http://www.w3.org/1999/xhtml">
6
 
  <head>
7
 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
 
    
9
 
    <title>32.4. symbol — Constants used with Python parse trees &mdash; Python 2.7.11 documentation</title>
10
 
    
11
 
    <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
12
 
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13
 
    
14
 
    <script type="text/javascript">
15
 
      var DOCUMENTATION_OPTIONS = {
16
 
        URL_ROOT:    '../',
17
 
        VERSION:     '2.7.11',
18
 
        COLLAPSE_INDEX: false,
19
 
        FILE_SUFFIX: '.html',
20
 
        HAS_SOURCE:  true
21
 
      };
22
 
    </script>
23
 
    <script type="text/javascript" src="../_static/jquery.js"></script>
24
 
    <script type="text/javascript" src="../_static/underscore.js"></script>
25
 
    <script type="text/javascript" src="../_static/doctools.js"></script>
26
 
    <script type="text/javascript" src="../_static/sidebar.js"></script>
27
 
    <link rel="search" type="application/opensearchdescription+xml"
28
 
          title="Search within Python 2.7.11 documentation"
29
 
          href="../_static/opensearch.xml"/>
30
 
    <link rel="author" title="About these documents" href="../about.html" />
31
 
    <link rel="copyright" title="Copyright" href="../copyright.html" />
32
 
    <link rel="top" title="Python 2.7.11 documentation" href="../contents.html" />
33
 
    <link rel="up" title="32. Python Language Services" href="language.html" />
34
 
    <link rel="next" title="32.5. token — Constants used with Python parse trees" href="token.html" />
35
 
    <link rel="prev" title="32.3. symtable — Access to the compiler’s symbol tables" href="symtable.html" />
36
 
    <link rel="shortcut icon" type="image/png" href="../_static/py.png" />
37
 
    <script type="text/javascript" src="../_static/copybutton.js"></script>
38
 
    <script type="text/javascript" src="../_static/version_switch.js"></script>
39
 
 
40
 
    
41
 
 
42
 
  </head>
43
 
  <body role="document">  
44
 
    <div class="related" role="navigation" aria-label="related navigation">
45
 
      <h3>Navigation</h3>
46
 
      <ul>
47
 
        <li class="right" style="margin-right: 10px">
48
 
          <a href="../genindex.html" title="General Index"
49
 
             accesskey="I">index</a></li>
50
 
        <li class="right" >
51
 
          <a href="../py-modindex.html" title="Python Module Index"
52
 
             >modules</a> |</li>
53
 
        <li class="right" >
54
 
          <a href="token.html" title="32.5. token — Constants used with Python parse trees"
55
 
             accesskey="N">next</a> |</li>
56
 
        <li class="right" >
57
 
          <a href="symtable.html" title="32.3. symtable — Access to the compiler’s symbol tables"
58
 
             accesskey="P">previous</a> |</li>
59
 
        <li><img src="../_static/py.png" alt=""
60
 
                 style="vertical-align: middle; margin-top: -1px"/></li>
61
 
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
62
 
        <li>
63
 
          <span class="version_switcher_placeholder">2.7.11</span>
64
 
          <a href="../index.html">Documentation</a> &raquo;
65
 
        </li>
66
 
 
67
 
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
68
 
          <li class="nav-item nav-item-2"><a href="language.html" accesskey="U">32. Python Language Services</a> &raquo;</li> 
69
 
      </ul>
70
 
    </div>    
71
 
 
72
 
    <div class="document">
73
 
      <div class="documentwrapper">
74
 
        <div class="bodywrapper">
75
 
          <div class="body" role="main">
76
 
            
77
 
  <div class="section" id="module-symbol">
78
 
<span id="symbol-constants-used-with-python-parse-trees"></span><h1>32.4. <a class="reference internal" href="#module-symbol" title="symbol: Constants representing internal nodes of the parse tree."><code class="xref py py-mod docutils literal"><span class="pre">symbol</span></code></a> &#8212; Constants used with Python parse trees<a class="headerlink" href="#module-symbol" title="Permalink to this headline">¶</a></h1>
79
 
<p><strong>Source code:</strong> <a class="reference external" href="https://hg.python.org/cpython/file/2.7/Lib/symbol.py">Lib/symbol.py</a></p>
80
 
<hr class="docutils" />
81
 
<p>This module provides constants which represent the numeric values of internal
82
 
nodes of the parse tree.  Unlike most Python constants, these use lower-case
83
 
names.  Refer to the file <code class="file docutils literal"><span class="pre">Grammar/Grammar</span></code> in the Python distribution for
84
 
the definitions of the names in the context of the language grammar.  The
85
 
specific numeric values which the names map to may change between Python
86
 
versions.</p>
87
 
<p>This module also provides one additional data object:</p>
88
 
<dl class="data">
89
 
<dt id="symbol.sym_name">
90
 
<code class="descclassname">symbol.</code><code class="descname">sym_name</code><a class="headerlink" href="#symbol.sym_name" title="Permalink to this definition">¶</a></dt>
91
 
<dd><p>Dictionary mapping the numeric values of the constants defined in this module
92
 
back to name strings, allowing more human-readable representation of parse trees
93
 
to be generated.</p>
94
 
</dd></dl>
95
 
 
96
 
</div>
97
 
 
98
 
 
99
 
          </div>
100
 
        </div>
101
 
      </div>
102
 
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
103
 
        <div class="sphinxsidebarwrapper">
104
 
  <h4>Previous topic</h4>
105
 
  <p class="topless"><a href="symtable.html"
106
 
                        title="previous chapter">32.3. <code class="docutils literal"><span class="pre">symtable</span></code> &#8212; Access to the compiler&#8217;s symbol tables</a></p>
107
 
  <h4>Next topic</h4>
108
 
  <p class="topless"><a href="token.html"
109
 
                        title="next chapter">32.5. <code class="docutils literal"><span class="pre">token</span></code> &#8212; Constants used with Python parse trees</a></p>
110
 
<h3>This Page</h3>
111
 
<ul class="this-page-menu">
112
 
  <li><a href="../bugs.html">Report a Bug</a></li>
113
 
  <li><a href="../_sources/library/symbol.txt"
114
 
         rel="nofollow">Show Source</a></li>
115
 
</ul>
116
 
 
117
 
<div id="searchbox" style="display: none" role="search">
118
 
  <h3>Quick search</h3>
119
 
    <form class="search" action="../search.html" method="get">
120
 
      <input type="text" name="q" />
121
 
      <input type="submit" value="Go" />
122
 
      <input type="hidden" name="check_keywords" value="yes" />
123
 
      <input type="hidden" name="area" value="default" />
124
 
    </form>
125
 
    <p class="searchtip" style="font-size: 90%">
126
 
    Enter search terms or a module, class or function name.
127
 
    </p>
128
 
</div>
129
 
<script type="text/javascript">$('#searchbox').show(0);</script>
130
 
        </div>
131
 
      </div>
132
 
      <div class="clearer"></div>
133
 
    </div>  
134
 
    <div class="related" role="navigation" aria-label="related navigation">
135
 
      <h3>Navigation</h3>
136
 
      <ul>
137
 
        <li class="right" style="margin-right: 10px">
138
 
          <a href="../genindex.html" title="General Index"
139
 
             >index</a></li>
140
 
        <li class="right" >
141
 
          <a href="../py-modindex.html" title="Python Module Index"
142
 
             >modules</a> |</li>
143
 
        <li class="right" >
144
 
          <a href="token.html" title="32.5. token — Constants used with Python parse trees"
145
 
             >next</a> |</li>
146
 
        <li class="right" >
147
 
          <a href="symtable.html" title="32.3. symtable — Access to the compiler’s symbol tables"
148
 
             >previous</a> |</li>
149
 
        <li><img src="../_static/py.png" alt=""
150
 
                 style="vertical-align: middle; margin-top: -1px"/></li>
151
 
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
152
 
        <li>
153
 
          <span class="version_switcher_placeholder">2.7.11</span>
154
 
          <a href="../index.html">Documentation</a> &raquo;
155
 
        </li>
156
 
 
157
 
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
158
 
          <li class="nav-item nav-item-2"><a href="language.html" >32. Python Language Services</a> &raquo;</li> 
159
 
      </ul>
160
 
    </div>  
161
 
    <div class="footer">
162
 
    &copy; <a href="../copyright.html">Copyright</a> 1990-2016, Python Software Foundation.
163
 
    <br />
164
 
    The Python Software Foundation is a non-profit corporation.
165
 
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
166
 
    <br />
167
 
    Last updated on Jan 23, 2016.
168
 
    <a href="../bugs.html">Found a bug</a>?
169
 
    <br />
170
 
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
171
 
    </div>
172
 
 
173
 
  </body>
174
 
</html>
 
 
b'\\ No newline at end of file'