File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ The :mod:`functools` module defines the following functions:
118
118
def stdev(self):
119
119
return statistics.stdev(self._data)
120
120
121
+ .. versionadded :: 3.8
121
122
122
123
.. versionchanged :: 3.12
123
124
Prior to Python 3.12, ``cached_property `` included an undocumented lock to
@@ -126,8 +127,6 @@ The :mod:`functools` module defines the following functions:
126
127
per-instance, which could result in unacceptably high lock contention. In
127
128
Python 3.12+ this locking is removed.
128
129
129
- .. versionadded :: 3.8
130
-
131
130
132
131
.. function :: cmp_to_key(func)
133
132
@@ -233,7 +232,7 @@ The :mod:`functools` module defines the following functions:
233
232
@lru_cache(maxsize=32)
234
233
def get_pep(num):
235
234
'Retrieve text of a Python Enhancement Proposal'
236
- resource = 'https://peps.python.org/pep-% 04d/' % num
235
+ resource = f 'https://peps.python.org/pep-{num: 04d}'
237
236
try:
238
237
with urllib.request.urlopen(resource) as s:
239
238
return s.read()
You can’t perform that action at this time.
0 commit comments