diff --git a/pep-0572.rst b/pep-0572.rst index b74d38a6c..74274ec89 100644 --- a/pep-0572.rst +++ b/pep-0572.rst @@ -120,7 +120,7 @@ Under the new semantics, this would instead be equivalent to:: numbers = () When a class scope is involved, a naive transformation into a function would -prevent name lookups (as the function would behave like a method). +prevent name lookups (as the function would behave like a method):: class X: names = ["Fred", "Barney", "Joe"]