Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf72c5e

Browse files
committed
merge with 3.3
2 parents bdc3eb7 + dec3b3f commit cf72c5e

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Doc/reference/expressions.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,13 @@ exception.
8484
definition begins with two or more underscore characters and does not end in two
8585
or more underscores, it is considered a :dfn:`private name` of that class.
8686
Private names are transformed to a longer form before code is generated for
87-
them. The transformation inserts the class name in front of the name, with
88-
leading underscores removed, and a single underscore inserted in front of the
89-
class name. For example, the identifier ``__spam`` occurring in a class named
90-
``Ham`` will be transformed to ``_Ham__spam``. This transformation is
91-
independent of the syntactical context in which the identifier is used. If the
92-
transformed name is extremely long (longer than 255 characters), implementation
93-
defined truncation may happen. If the class name consists only of underscores,
94-
no transformation is done.
87+
them. The transformation inserts the class name, with leading underscores
88+
removed and a single underscore inserted, in front of the name. For example,
89+
the identifier ``__spam`` occurring in a class named ``Ham`` will be transformed
90+
to ``_Ham__spam``. This transformation is independent of the syntactical
91+
context in which the identifier is used. If the transformed name is extremely
92+
long (longer than 255 characters), implementation defined truncation may happen.
93+
If the class name consists only of underscores, no transformation is done.
9594

9695

9796
.. _atom-literals:

0 commit comments

Comments
 (0)