MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/share/doc/python-docs-2.4.3/html/ref/id-classes.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="ref.css" type='text/css' />
<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index' />
<link rel="first" href="ref.html" title='Python Reference Manual' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="prev" href="keywords.html" />
<link rel="parent" href="identifiers.html" />
<link rel="next" href="literals.html" />
<meta name='aesop' content='information' />
<title>2.3.2 Reserved classes of identifiers</title>
</head>
<body>
<DIV CLASS="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="2.3.1 Keywords"
  href="keywords.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="2.3 Identifiers and keywords"
  href="identifiers.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="2.4 Literals"
  href="literals.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Python Reference Manual</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></A></td>
<td class='online-navigation'><img src='../icons/blank.png'
  border='0' height='32'  alt='' width='32' /></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="keywords.html">2.3.1 Keywords</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="identifiers.html">2.3 Identifiers and keywords</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="literals.html">2.4 Literals</A>
</div>
<hr /></div>
</DIV>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION004320000000000000000"></A><A NAME="id-classes"></A>
<BR>
2.3.2 Reserved classes of identifiers
</H2>

<P>
Certain classes of identifiers (besides keywords) have special
meanings.  These classes are identified by the patterns of leading and
trailing underscore characters:

<P>
<DL>
<DT><STRONG><code>_*</code></STRONG></DT>
<DD>Not imported by "<tt class="samp">from <var>module</var> import *</tt>".  The special
  identifier "<tt class="samp">_</tt>" is used in the interactive interpreter to store
  the result of the last evaluation; it is stored in the
  <tt class="module">__builtin__</tt> module.  When not in interactive mode, "<tt class="samp">_</tt>"  has no special meaning and is not defined.
  See section&nbsp;<A href="import.html#import">6.12</A>, ``The <tt class="keyword">import</tt> statement.''

<P>
<span class="note"><b class="label">Note:</b>
The name "<tt class="samp">_</tt>" is often used in conjunction with
  internationalization; refer to the documentation for the
  <a class="ulink" href="../lib/module-gettext.html"
  ><tt class="module">gettext</tt> module</a> for more
  information on this convention.</span>

<P>
</DD>
<DT><STRONG><code>__*__</code></STRONG></DT>
<DD>System-defined names.  These names are defined by the interpreter
  and its implementation (including the standard library);
  applications should not expect to define additional names using this
  convention.  The set of names of this class defined by Python may be
  extended in future versions.
  See section&nbsp;<A href="specialnames.html#specialnames">3.3</A>, ``Special method names.''

<P>
</DD>
<DT><STRONG><code>__*</code></STRONG></DT>
<DD>Class-private names.  Names in this category, when used within the
  context of a class definition, are re-written to use a mangled form
  to help avoid name clashes between ``private'' attributes of base
  and derived classes.
  See section&nbsp;<A href="atom-identifiers.html#atom-identifiers">5.2.1</A>, ``Identifiers (Names).''

<P>
</DD>
</DL>

<P>

<DIV CLASS="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="2.3.1 Keywords"
  href="keywords.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="2.3 Identifiers and keywords"
  href="identifiers.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="2.4 Literals"
  href="literals.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Python Reference Manual</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></A></td>
<td class='online-navigation'><img src='../icons/blank.png'
  border='0' height='32'  alt='' width='32' /></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="keywords.html">2.3.1 Keywords</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="identifiers.html">2.3 Identifiers and keywords</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="literals.html">2.4 Literals</A>
</div>
</div>
<hr />
<span class="release-info">Release 2.4.3, documentation updated on 29 March 2006.</span>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>