mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
Fix minor markup typo (#5407)
This commit is contained in:
parent
95e214713a
commit
2a3260bb03
1 changed files with 1 additions and 1 deletions
|
@ -1423,7 +1423,7 @@ are always available. They are listed here in alphabetical order.
|
||||||
a regular function and do something with its result. This is needed
|
a regular function and do something with its result. This is needed
|
||||||
in some cases where you need a reference to a function from a class
|
in some cases where you need a reference to a function from a class
|
||||||
body and you want to avoid the automatic transformation to instance
|
body and you want to avoid the automatic transformation to instance
|
||||||
method. For these cases, use this idiom:
|
method. For these cases, use this idiom::
|
||||||
|
|
||||||
class C:
|
class C:
|
||||||
builtin_open = staticmethod(open)
|
builtin_open = staticmethod(open)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue