Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8c8b60

Browse files
authored
Merge branch 'main' into feature/os.timerfd_xxx
2 parents 64f1571 + b87263b commit e8c8b60

87 files changed

Lines changed: 977 additions & 412 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,26 @@ body:
99
1010
For help or advice on using Python, try one of the following options instead of opening a GitHub issue:
1111
12-
- Posting on [Discourse](https://discuss.python.org/c/users/7)
12+
- Asking on [Discourse](https://discuss.python.org/c/users/7) or [Stack Overflow](https://stackoverflow.com)
1313
- Reading the [Python tutorial](https://docs.python.org/3/tutorial/)
1414
- Emailing [python-list](https://mail.python.org/mailman/listinfo/python-list)
15-
- type: checkboxes
15+
16+
Make sure to also search the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc) to check that the bug has not already been reported.
17+
- type: textarea
1618
attributes:
17-
label: Checklist
18-
description: A bug in a third-party project (for example, `pip` or `requests`) should be reported to that project's issue tracker, not CPython
19-
options:
20-
- label: I am confident this is a bug in CPython, not a bug in a third-party project
21-
required: false
22-
- label: |
23-
I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc),
24-
and am confident this bug has not been reported before
25-
required: false
19+
label: "Bug description:"
20+
description: >
21+
Give a clear and concise description of what happened.
22+
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
23+
[Copy and paste code where possible rather than using screenshots](https://meta.stackoverflow.com/a/285557/13990016),
24+
and put any code blocks inside triple backticks.
25+
26+
value: |
27+
```python
28+
# Add a code block here, if required
29+
```
30+
validations:
31+
required: true
2632
- type: dropdown
2733
attributes:
2834
label: "CPython versions tested on:"
@@ -47,23 +53,3 @@ body:
4753
- Other
4854
validations:
4955
required: false
50-
- type: input
51-
attributes:
52-
label: "Output from running 'python -VV' on the command line:"
53-
description: If you tested with multiple operating systems or architectures, feel free to provide details in the main bug description.
54-
validations:
55-
required: false
56-
- type: textarea
57-
attributes:
58-
label: "A clear and concise description of the bug:"
59-
description: >
60-
Tell us what happened.
61-
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
62-
Put any code blocks inside triple backticks.
63-
64-
value: |
65-
```python
66-
# Add a code block here, if required
67-
```
68-
validations:
69-
required: true

.github/ISSUE_TEMPLATE/crash.yml

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ body:
88
This form is for hard crashes of the Python interpreter, segmentation faults, failed C-level assertions, and similar. Unexpected exceptions raised from Python functions in the standard library count as bugs rather than crashes.
99
1010
The CPython interpreter is written in a different programming language, C. A "CPython crash" is when Python itself fails, leading to a traceback in the C stack.
11+
- type: textarea
12+
attributes:
13+
label: What happened?
14+
description: >
15+
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
16+
[Copy and paste code where possible rather than using screenshots](https://meta.stackoverflow.com/a/285557/13990016),
17+
and put any code blocks inside triple backticks.
18+
19+
value: |
20+
```python
21+
# Add a code block here, if required
22+
```
23+
validations:
24+
required: true
1125
- type: dropdown
1226
attributes:
1327
label: "CPython versions tested on:"
@@ -38,34 +52,3 @@ body:
3852
description: If you tested with multiple operating systems or architectures, feel free to provide details in the main bug description.
3953
validations:
4054
required: false
41-
- type: textarea
42-
attributes:
43-
label: What happened?
44-
description: >
45-
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
46-
Put any code blocks inside triple backticks.
47-
48-
value: |
49-
```python
50-
# Add a code block here, if required
51-
```
52-
validations:
53-
required: true
54-
- type: textarea
55-
attributes:
56-
label: Error messages
57-
description: >
58-
Enter any error messages caused by the crash, including a core dump if there is one.
59-
Feel free to leave this bit blank if it isn't relevant.
60-
placeholder: |
61-
Error messages should be formatted like this:
62-
63-
<details>
64-
<summary>Error messages/core dump</summary>
65-
66-
```
67-
# paste errors here, if you have any
68-
```
69-
</details>
70-
validations:
71-
required: false

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ body:
1010
You'll need to demonstrate widespread support for your idea among the community.
1111
1212
Major feature proposals should generally be discussed on [Discourse](https://discuss.python.org/c/ideas/6) before opening a GitHub issue. Wait until it's clear that most people support your idea before filling in this form.
13+
- type: textarea
14+
attributes:
15+
label: "Proposal:"
16+
description: >
17+
Explain your proposal, why it should be implemented, and how it would be used.
18+
Add examples, if applicable.
19+
Put any code blocks inside triple backticks.
20+
value: |
21+
```python
22+
# Add a code block here, if required
23+
```
24+
validations:
25+
required: true
1326
- type: dropdown
1427
attributes:
1528
label: Has this already been discussed elsewhere?
@@ -25,16 +38,3 @@ body:
2538
label: "Links to previous discussion of this feature:"
2639
validations:
2740
required: false
28-
- type: textarea
29-
attributes:
30-
label: "Proposal:"
31-
description: >
32-
Explain your proposal, why it should be implemented, and how it would be used.
33-
Add examples, if applicable.
34-
Put any code blocks inside triple backticks.
35-
value: |
36-
```python
37-
# Add a code block here, if required
38-
```
39-
validations:
40-
required: true

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run_hypothesis: ${{ steps.check.outputs.run_hypothesis }}
4343
config_hash: ${{ steps.config_hash.outputs.hash }}
4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4646
- name: Check for source changes
4747
id: check
4848
run: |
@@ -111,13 +111,13 @@ jobs:
111111
needs: check_source
112112
if: needs.check_source.outputs.run_tests == 'true'
113113
steps:
114-
- uses: actions/checkout@v3
114+
- uses: actions/checkout@v4
115115
- name: Restore config.cache
116116
uses: actions/cache@v3
117117
with:
118118
path: config.cache
119119
key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}
120-
- uses: actions/setup-python@v3
120+
- uses: actions/setup-python@v4
121121
- name: Install Dependencies
122122
run: sudo ./.github/workflows/posix-deps-apt.sh
123123
- name: Add ccache to PATH
@@ -174,7 +174,7 @@ jobs:
174174
env:
175175
IncludeUwp: 'true'
176176
steps:
177-
- uses: actions/checkout@v3
177+
- uses: actions/checkout@v4
178178
- name: Build CPython
179179
run: .\PCbuild\build.bat -e -d -p Win32
180180
- name: Display build info
@@ -191,7 +191,7 @@ jobs:
191191
env:
192192
IncludeUwp: 'true'
193193
steps:
194-
- uses: actions/checkout@v3
194+
- uses: actions/checkout@v4
195195
- name: Register MSVC problem matcher
196196
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
197197
- name: Build CPython
@@ -213,7 +213,7 @@ jobs:
213213
HOMEBREW_NO_INSTALL_CLEANUP: 1
214214
PYTHONSTRICTEXTENSIONBUILD: 1
215215
steps:
216-
- uses: actions/checkout@v3
216+
- uses: actions/checkout@v4
217217
- name: Restore config.cache
218218
uses: actions/cache@v3
219219
with:
@@ -247,7 +247,7 @@ jobs:
247247
OPENSSL_VER: 1.1.1v
248248
PYTHONSTRICTEXTENSIONBUILD: 1
249249
steps:
250-
- uses: actions/checkout@v3
250+
- uses: actions/checkout@v4
251251
- name: Register gcc problem matcher
252252
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
253253
- name: Install Dependencies
@@ -320,7 +320,7 @@ jobs:
320320
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
321321
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
322322
steps:
323-
- uses: actions/checkout@v3
323+
- uses: actions/checkout@v4
324324
- name: Restore config.cache
325325
uses: actions/cache@v3
326326
with:
@@ -368,7 +368,7 @@ jobs:
368368
OPENSSL_VER: 1.1.1v
369369
PYTHONSTRICTEXTENSIONBUILD: 1
370370
steps:
371-
- uses: actions/checkout@v3
371+
- uses: actions/checkout@v4
372372
- name: Register gcc problem matcher
373373
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
374374
- name: Install Dependencies
@@ -431,7 +431,7 @@ jobs:
431431
VENV_PYTHON=$VENV_LOC/bin/python
432432
echo "HYPOVENV=${VENV_LOC}" >> $GITHUB_ENV
433433
echo "VENV_PYTHON=${VENV_PYTHON}" >> $GITHUB_ENV
434-
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -U hypothesis
434+
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -r ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt
435435
- name: 'Restore Hypothesis database'
436436
id: cache-hypothesis-database
437437
uses: actions/cache@v3
@@ -478,7 +478,7 @@ jobs:
478478
PYTHONSTRICTEXTENSIONBUILD: 1
479479
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
480480
steps:
481-
- uses: actions/checkout@v3
481+
- uses: actions/checkout@v4
482482
- name: Restore config.cache
483483
uses: actions/cache@v3
484484
with:

.github/workflows/build_msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
matrix:
3434
type: [x86, x64, arm64]
3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v4
3737
- name: Build CPython installer
3838
run: .\Tools\msi\build.bat --doc -${{ matrix.type }}

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
timeout-minutes: 10
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.x"

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-latest
4040
timeout-minutes: 10
4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
- uses: actions/setup-python@v4
4444
with:
4545
python-version: "3.11"

.github/workflows/reusable-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
refspec_pr: '+${{ github.event.pull_request.head.sha }}:remotes/origin/${{ github.event.pull_request.head.ref }}'
2424
steps:
2525
- name: 'Check out latest PR branch commit'
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
ref: ${{ github.event.pull_request.head.sha }}
2929
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
@@ -70,7 +70,7 @@ jobs:
7070
runs-on: ubuntu-latest
7171
timeout-minutes: 60
7272
steps:
73-
- uses: actions/checkout@v3
73+
- uses: actions/checkout@v4
7474
- name: 'Set up Python'
7575
uses: actions/setup-python@v4
7676
with:
@@ -88,7 +88,7 @@ jobs:
8888
runs-on: ubuntu-latest
8989
timeout-minutes: 60
9090
steps:
91-
- uses: actions/checkout@v3
91+
- uses: actions/checkout@v4
9292
- uses: actions/cache@v3
9393
with:
9494
path: ~/.cache/pip

.github/workflows/verify-ensurepip-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 10
2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
- uses: actions/setup-python@v4
3030
with:
3131
python-version: '3'

Doc/library/asyncio-protocol.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ received data, and close the connection::
746746
loop = asyncio.get_running_loop()
747747

748748
server = await loop.create_server(
749-
lambda: EchoServerProtocol(),
749+
EchoServerProtocol,
750750
'127.0.0.1', 8888)
751751

752752
async with server:
@@ -850,7 +850,7 @@ method, sends back received data::
850850
# One protocol instance will be created to serve all
851851
# client requests.
852852
transport, protocol = await loop.create_datagram_endpoint(
853-
lambda: EchoServerProtocol(),
853+
EchoServerProtocol,
854854
local_addr=('127.0.0.1', 9999))
855855

856856
try:

0 commit comments

Comments
 (0)