~ubuntu-branches/ubuntu/saucy/python2.7/saucy-proposed

« back to all changes in this revision

Viewing changes to Doc/reference/expressions.rst

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-05-15 19:15:16 UTC
  • mto: (36.1.23 sid)
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: package-import@ubuntu.com-20130515191516-zmv6to904wemey7s
Tags: upstream-2.7.5
ImportĀ upstreamĀ versionĀ 2.7.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
definition begins with two or more underscore characters and does not end in two
97
97
or more underscores, it is considered a :dfn:`private name` of that class.
98
98
Private names are transformed to a longer form before code is generated for
99
 
them.  The transformation inserts the class name in front of the name, with
100
 
leading underscores removed, and a single underscore inserted in front of the
101
 
class name.  For example, the identifier ``__spam`` occurring in a class named
102
 
``Ham`` will be transformed to ``_Ham__spam``.  This transformation is
103
 
independent of the syntactical context in which the identifier is used.  If the
104
 
transformed name is extremely long (longer than 255 characters), implementation
105
 
defined truncation may happen.  If the class name consists only of underscores,
106
 
no transformation is done.
 
99
them.  The transformation inserts the class name, with leading underscores
 
100
removed and a single underscore inserted, in front of the name.  For example,
 
101
the identifier ``__spam`` occurring in a class named ``Ham`` will be transformed
 
102
to ``_Ham__spam``.  This transformation is independent of the syntactical
 
103
context in which the identifier is used.  If the transformed name is extremely
 
104
long (longer than 255 characters), implementation defined truncation may happen.
 
105
If the class name consists only of underscores, no transformation is done.
107
106
 
108
107
 
109
108
 
1370
1369
| :keyword:`not` ``x``                          | Boolean NOT                         |
1371
1370
+-----------------------------------------------+-------------------------------------+
1372
1371
| :keyword:`in`, :keyword:`not in`,             | Comparisons, including membership   |
1373
 
| :keyword:`is`, :keyword:`is not`, ``<``,      | tests and identity tests,           |
 
1372
| :keyword:`is`, :keyword:`is not`, ``<``,      | tests and identity tests            |
1374
1373
| ``<=``, ``>``, ``>=``, ``<>``, ``!=``, ``==`` |                                     |
1375
1374
+-----------------------------------------------+-------------------------------------+
1376
1375
| ``|``                                         | Bitwise OR                          |