diff options
author | Andre Delfino <adelfino@gmail.com> | 2019-05-03 14:59:05 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-03 14:59:05 (GMT) |
commit | 5861cddf76215b8390d48069a35d30a5c3ec92c1 (patch) | |
tree | 903c60d8eb2ce0a6b5c120fd8e65f3dd1e98f1f7 /Doc | |
parent | 22c526394b2ef51b985873ddbfbcc32c16411919 (diff) | |
download | cpython-5861cddf76215b8390d48069a35d30a5c3ec92c1.zip cpython-5861cddf76215b8390d48069a35d30a5c3ec92c1.tar.gz cpython-5861cddf76215b8390d48069a35d30a5c3ec92c1.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/simple_stmts.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 207057c..af7c0ca 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -169,12 +169,12 @@ Assignment of an object to a single target is recursively defined as follows. .. _attr-target-note: Note: If the object is a class instance and the attribute reference occurs on - both sides of the assignment operator, the RHS expression, ``a.x`` can access + both sides of the assignment operator, the right-hand side expression, ``a.x`` can access either an instance attribute or (if no instance attribute exists) a class - attribute. The LHS target ``a.x`` is always set as an instance attribute, + attribute. The left-hand side target ``a.x`` is always set as an instance attribute, creating it if necessary. Thus, the two occurrences of ``a.x`` do not - necessarily refer to the same attribute: if the RHS expression refers to a - class attribute, the LHS creates a new instance attribute as the target of the + necessarily refer to the same attribute: if the right-hand side expression refers to a + class attribute, the left-hand side creates a new instance attribute as the target of the assignment:: class Cls: |