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

Commit5cd55c4

Browse files
committed
Merge branch 'main' into virtual-iterators
2 parentsa0d814b +ec736e7 commit5cd55c4

File tree

157 files changed

+1465
-1278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+1465
-1278
lines changed

‎Doc/howto/annotations.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,9 @@ quirks by using :func:`annotationlib.get_annotations` on Python 3.14+ or
248248
:func:`inspect.get_annotations` on Python 3.10+. On earlier versions of
249249
Python, you can avoid these bugs by accessing the annotations from the
250250
class's:attr:`~type.__dict__`
251-
(e.g., ``cls.__dict__.get('__annotations__', None)``).
251+
(for example, ``cls.__dict__.get('__annotations__', None)``).
252+
253+
In some versions of Python, instances of classes may have an ``__annotations__``
254+
attribute. However, this is not supported functionality. If you need the
255+
annotations of an instance, you can use:func:`type` to access its class
256+
(for example, ``annotationlib.get_annotations(type(myinstance))`` on Python 3.14+).

‎Doc/tools/templates/customsourcelink.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{%- if show_source and has_source and sourcename %}
22
<divrole="note"aria-label="source link">
3-
<h3>{{ _('ThisPage') }}</h3>
3+
<h3>{{ _('Thispage') }}</h3>
44
<ulclass="this-page-menu">
5-
<li><ahref="{{ pathto('bugs') }}">{% trans %}Report aBug{% endtrans %}</a></li>
5+
<li><ahref="{{ pathto('bugs') }}">{% trans %}Report abug{% endtrans %}</a></li>
66
<li>
77
<ahref="https://github.com/python/cpython/blob/main/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
8-
rel="nofollow">{{ _('ShowSource') }}
8+
rel="nofollow">{{ _('Showsource') }}
99
</a>
1010
</li>
1111
</ul>

‎Doc/tools/templates/download.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{%- endblock -%}
2828

2929
{% block body %}
30-
<h1>{% trans %}Download Python {{ dl_version }}Documentation{% endtrans %}</h1>
30+
<h1>{% trans %}Download Python {{ dl_version }}documentation{% endtrans %}</h1>
3131

3232
{% if last_updated %}<p><b>{% trans %}Last updated on: {{ last_updated }}.{% endtrans %}</b></p>{% endif %}
3333

‎Doc/tools/templates/indexcontent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h1>{{ docstitle|e }}</h1>
7272
<tableclass="contentstable"align="center"><tr>
7373
<tdwidth="50%">
7474
<pclass="biglink"><aclass="biglink"href="{{ pathto("bugs") }}">{% trans %}Reporting issues{% endtrans %}</a></p>
75-
<pclass="biglink"><aclass="biglink"href="https://devguide.python.org/documentation/help-documenting/">{% trans %}Contributing toDocs{% endtrans %}</a></p>
75+
<pclass="biglink"><aclass="biglink"href="https://devguide.python.org/documentation/help-documenting/">{% trans %}Contributing todocs{% endtrans %}</a></p>
7676
<pclass="biglink"><aclass="biglink"href="{{ pathto("download") }}">{% trans %}Download the documentation{% endtrans %}</a></p>
7777
</td><tdwidth="50%">
7878
<pclass="biglink"><aclass="biglink"href="{{ pathto("license") }}">{% trans %}History and license of Python{% endtrans %}</a></p>

‎Doc/tools/templates/indexsidebar.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ <h3>{% trans %}Docs by version{% endtrans %}</h3>
99
<h3>{% trans %}Other resources{% endtrans %}</h3>
1010
<ul>
1111
{# XXX: many of these should probably be merged in the main docs #}
12-
<li><ahref="https://peps.python.org/">{% trans %}PEPIndex{% endtrans %}</a></li>
13-
<li><ahref="https://wiki.python.org/moin/BeginnersGuide">{% trans %}Beginner'sGuide{% endtrans %}</a></li>
14-
<li><ahref="https://wiki.python.org/moin/PythonBooks">{% trans %}BookList{% endtrans %}</a></li>
15-
<li><ahref="https://www.python.org/doc/av/">{% trans %}Audio/Visual Talks{% endtrans %}</a></li>
16-
<li><ahref="https://devguide.python.org/">{% trans %}PythonDeveloper’sGuide{% endtrans %}</a></li>
12+
<li><ahref="https://peps.python.org/">{% trans %}PEPindex{% endtrans %}</a></li>
13+
<li><ahref="https://wiki.python.org/moin/BeginnersGuide">{% trans %}Beginner'sguide{% endtrans %}</a></li>
14+
<li><ahref="https://wiki.python.org/moin/PythonBooks">{% trans %}Booklist{% endtrans %}</a></li>
15+
<li><ahref="https://www.python.org/doc/av/">{% trans %}Audio/visual talks{% endtrans %}</a></li>
16+
<li><ahref="https://devguide.python.org/">{% trans %}Pythondeveloper’sguide{% endtrans %}</a></li>
1717
</ul>

‎Include/internal/pycore_backoff.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ backoff_counter_triggers(_Py_BackoffCounter counter)
9595
returncounter.value_and_backoff<UNREACHABLE_BACKOFF;
9696
}
9797

98-
/* Initial JUMP_BACKWARD counter.
99-
* This determines when we create a trace for a loop. */
98+
// Initial JUMP_BACKWARD counter.
99+
// Must be larger than ADAPTIVE_COOLDOWN_VALUE, otherwise when JIT code is
100+
// invalidated we may construct a new trace before the bytecode has properly
101+
// re-specialized:
100102
#defineJUMP_BACKWARD_INITIAL_VALUE 4095
101103
#defineJUMP_BACKWARD_INITIAL_BACKOFF 12
102104
staticinline_Py_BackoffCounter

‎Include/internal/pycore_code.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ write_location_entry_start(uint8_t *ptr, int code, int length)
451451
#defineADAPTIVE_COOLDOWN_BACKOFF 0
452452

453453
// Can't assert this in pycore_backoff.h because of header order dependencies
454+
#ifJUMP_BACKWARD_INITIAL_VALUE <=ADAPTIVE_COOLDOWN_VALUE
455+
# error "JIT threshold value should be larger than adaptive cooldown value"
456+
#endif
454457
#ifSIDE_EXIT_INITIAL_VALUE <=ADAPTIVE_COOLDOWN_VALUE
455458
# error "Cold exit value should be larger than adaptive cooldown value"
456459
#endif

‎Include/internal/pycore_uop_ids.h

Lines changed: 80 additions & 78 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Include/internal/pycore_uop_metadata.h

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp