Skip to content

Commit 5861cdd

Browse files
andresdelfinomiss-islington
authored andcommitted
Don't use the LHS/RHS acronym in Simple statements (GH-12996)
Prefer the full wording instead, as it is more meaningful for someone not familiar with the terms. Also, LFS/RHS is not used anywhere else in the documentation, while left/right-hand side mentions are common.
1 parent 22c5263 commit 5861cdd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/reference/simple_stmts.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ Assignment of an object to a single target is recursively defined as follows.
169169
.. _attr-target-note:
170170

171171
Note: If the object is a class instance and the attribute reference occurs on
172-
both sides of the assignment operator, the RHS expression, ``a.x`` can access
172+
both sides of the assignment operator, the right-hand side expression, ``a.x`` can access
173173
either an instance attribute or (if no instance attribute exists) a class
174-
attribute. The LHS target ``a.x`` is always set as an instance attribute,
174+
attribute. The left-hand side target ``a.x`` is always set as an instance attribute,
175175
creating it if necessary. Thus, the two occurrences of ``a.x`` do not
176-
necessarily refer to the same attribute: if the RHS expression refers to a
177-
class attribute, the LHS creates a new instance attribute as the target of the
176+
necessarily refer to the same attribute: if the right-hand side expression refers to a
177+
class attribute, the left-hand side creates a new instance attribute as the target of the
178178
assignment::
179179

180180
class Cls:

0 commit comments

Comments
 (0)