PEP 542: Resolve uses of the default role (#3380)
This commit is contained in:
parent
ba1a43836f
commit
1b262f6056
|
@ -134,7 +134,7 @@ Similar to how decorators are syntastic sugar::
|
||||||
Implementation
|
Implementation
|
||||||
==============
|
==============
|
||||||
|
|
||||||
The `__name__` would follow the principles of a normal function::
|
The ``__name__`` would follow the principles of a normal function::
|
||||||
|
|
||||||
class MyClass:
|
class MyClass:
|
||||||
def my_function1(self):
|
def my_function1(self):
|
||||||
|
@ -146,7 +146,7 @@ The `__name__` would follow the principles of a normal function::
|
||||||
assert my_function1.__name__ == 'my_function1'
|
assert my_function1.__name__ == 'my_function1'
|
||||||
assert my_function2.__name__ == 'my_function2'
|
assert my_function2.__name__ == 'my_function2'
|
||||||
|
|
||||||
The grammar would use `dotted_name` to support chaining of attributes::
|
The grammar would use ``dotted_name`` to support chaining of attributes::
|
||||||
|
|
||||||
def Person.name.fset(self, value):
|
def Person.name.fset(self, value):
|
||||||
self._name = value
|
self._name = value
|
||||||
|
|
Loading…
Reference in New Issue