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

gh-105107: Remove PyEval_CallFunction() function#105108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 3 commits intopython:mainfromvstinner:remove_pyeval_call
May 31, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 30, 2023
edited by github-actionsbot
Loading

Remove 4 functions from the C API, deprecated in Python 3.9:

  • PyEval_CallObjectWithKeywords()
  • PyEval_CallObject()
  • PyEval_CallFunction()
  • PyEval_CallMethod()

Keep 3 functions in the stable ABI:

  • PyEval_CallObjectWithKeywords()
  • PyEval_CallFunction()
  • PyEval_CallMethod()

📚 Documentation preview 📚:https://cpython-previews--105108.org.readthedocs.build/

@vstinner
Copy link
MemberAuthor

cc@methane

@vstinner
Copy link
MemberAuthor

The "Tests / Check for source changes (pull_request)" CI job failed because the added NEWS entry filename contains a space inC API/ sub-directory name.

@hugovk
Copy link
Member

I've merged#105110 to workaround the CI error, let's update this branch.

Remove 4 functions from the C API, deprecated in Python 3.9:* PyEval_CallObjectWithKeywords()* PyEval_CallObject()* PyEval_CallFunction()* PyEval_CallMethod()Keep 3 functions in the stable ABI:* PyEval_CallObjectWithKeywords()* PyEval_CallFunction()* PyEval_CallMethod()
@vstinner
Copy link
MemberAuthor

I completed the documentation how to port existing code after reading comments of the long issue#73734.

@vstinner
Copy link
MemberAuthor

I've merged#105110 to workaround the CI error, let's update this branch.

Thanks. To complete the doc, I rebased my PR on the main branch.

@vstinnervstinnerenabled auto-merge (squash)May 31, 2023 11:16
@vstinnervstinner merged commit579c41c intopython:mainMay 31, 2023
@vstinnervstinner deleted the remove_pyeval_call branchMay 31, 2023 11:18
@vstinner
Copy link
MemberAuthor

Thanks for the review@methane.

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure⚠️⚠️⚠️

Hi! The buildbotARM Raspbian 3.x has failed when building commit579c41c.

What do you need to do:

  1. Don't panic.
  2. Checkthe buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/424/builds/4108) and take a look at the build logs.
  4. Check if the failure is related to this commit (579c41c) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/424/builds/4108

Failed tests:

  • test_sqlite3

Failed subtests:

  • test_interact_on_disk_file - test.test_sqlite3.test_cli.InteractiveSession.test_interact_on_disk_file

Summary of the results of the build (if available):

== Tests result: FAILURE then ENV CHANGED ==

427 tests OK.

10 slowest tests:

  • test_venv: 10 min 28 sec
  • test_tarfile: 9 min 43 sec
  • test_largefile: 8 min 17 sec
  • test_cmd_line_script: 5 min 29 sec
  • test_math: 4 min 22 sec
  • test_multiprocessing_spawn: 4 min 14 sec
  • test_sqlite3: 3 min 30 sec
  • test_exceptions: 3 min 23 sec
  • test_concurrent_futures: 3 min 7 sec
  • test_hashlib: 2 min 12 sec

1 test altered the execution environment:
test_concurrent_futures

19 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_devpoll test_idle
test_ioctl test_kqueue test_launcher test_perf_profiler
test_startfile test_tcl test_tkinter test_ttk test_ttk_textonly
test_turtle test_winconsoleio test_winreg test_winsound test_wmi
test_zipfile64

1 re-run test:
test_sqlite3

Total duration: 41 min 25 sec

Click to see traceback logs
Traceback (most recent call last):  File"/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_sqlite3/test_cli.py", line142, intest_interact_on_disk_file    out, err= proc.communicate(input="create table t(t);",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/subprocess.py", line1209, incommunicate    stdout, stderr=self._communicate(input, endtime, timeout)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/subprocess.py", line2109, in_communicateself._check_timeout(endtime, orig_timeout, stdout, stderr)  File"/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/subprocess.py", line1253, in_check_timeoutraise TimeoutExpired(subprocess.TimeoutExpired:Command '['/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/python', '-Xutf8', '-m', 'sqlite3', '@test_21594_tmpæ']' timed out after 5.25 seconds

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@methanemethanemethane approved these changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@vstinner@hugovk@bedevere-bot@methane

[8]ページ先頭

©2009-2025 Movatter.jp