Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c0d41b

Browse files
authored
Merge branch '3.11' into backport-c9ecd3e-3.11
2 parentsf6fe710 +81902d3 commit4c0d41b

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

‎Doc/library/functools.rst‎

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,10 @@ The :mod:`functools` module defines the following functions:
102102
``__slots__`` without including ``__dict__`` as one of the defined slots
103103
(as such classes don't provide a ``__dict__`` attribute at all).
104104

105-
If a mutable mapping is not available or if space-efficient key sharing
106-
is desired, an effect similar to:func:`cached_property` can be achieved
107-
by a stacking:func:`property` on top of:func:`cache`::
108-
109-
class DataSet:
110-
def __init__(self, sequence_of_numbers):
111-
self._data = sequence_of_numbers
112-
113-
@property
114-
@cache
115-
def stdev(self):
116-
return statistics.stdev(self._data)
105+
If a mutable mapping is not available or if space-efficient key sharing is
106+
desired, an effect similar to:func:`cached_property` can also be achieved by
107+
stacking:func:`property` on top of:func:`lru_cache`. See
108+
:ref:`faq-cache-method-calls` for more details on how this differs from:func:`cached_property`.
117109

118110
..versionadded::3.8
119111

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add gcc fallback of mkfifoat/mknodat for macOS. Patch by Dong-hee Na.

‎Modules/posixmodule.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@
169169
# defineHAVE_PWRITEV_RUNTIME (pwritev != NULL)
170170
# endif
171171

172+
# ifdefHAVE_MKFIFOAT
173+
# defineHAVE_MKFIFOAT_RUNTIME (mkfifoat != NULL)
174+
# endif
175+
176+
# ifdefHAVE_MKNODAT
177+
# defineHAVE_MKNODAT_RUNTIME (mknodat != NULL)
178+
# endif
179+
172180
#endif
173181

174182
#ifdefHAVE_FUTIMESAT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp