@@ -28,7 +28,7 @@ This guide has four major sections:
28284) The last section has pure Python equivalents for built-in descriptors that
2929 are written in C. Read this if you're curious about how functions turn
3030 into bound methods or about the implementation of common tools like
31- :func : `classmethod `, :func : `staticmethod `, :func : `property `, and
31+ :deco : `classmethod `, :deco : `staticmethod `, :deco : `property `, and
3232 :term: `__slots__ `.
3333
3434
@@ -317,8 +317,8 @@ Descriptors invert that relationship and allow the data being looked-up to
317317have a say in the matter.
318318
319319Descriptors are used throughout the language. It is how functions turn into
320- bound methods. Common tools like :func : `classmethod `, :func : `staticmethod `,
321- :func : `property `, and :func : `functools.cached_property ` are all implemented as
320+ bound methods. Common tools like :deco : `classmethod `, :deco : `staticmethod `,
321+ :deco : `property `, and :deco : `functools.cached_property ` are all implemented as
322322descriptors.
323323
324324
@@ -1326,7 +1326,7 @@ example calls are unexciting:
13261326 30
13271327
13281328Using the non-data descriptor protocol, a pure Python version of
1329- :func : `staticmethod ` would look like this:
1329+ :deco : `staticmethod ` would look like this:
13301330
13311331.. testcode ::
13321332
@@ -1466,7 +1466,7 @@ Now a new dictionary of unique keys can be constructed like this:
14661466 {'a': None, 'b': None, 'r': None, 'c': None, 'd': None}
14671467
14681468Using the non-data descriptor protocol, a pure Python version of
1469- :func : `classmethod ` would look like this:
1469+ :deco : `classmethod ` would look like this:
14701470
14711471.. testcode ::
14721472
@@ -1604,7 +1604,7 @@ matters when a large number of instances are going to be created.
160416044. Improves speed. Reading instance variables is 35% faster with
16051605``__slots__ `` (as measured with Python 3.10 on an Apple M1 processor).
16061606
1607- 5. Blocks tools like :func : `functools.cached_property ` which require an
1607+ 5. Blocks tools like :deco : `functools.cached_property ` which require an
16081608instance dictionary to function correctly:
16091609
16101610.. testcode ::
0 commit comments