Visitar URL original
bpo-45873: Restore Python 3.6 compatibility (GH-29730) by tiran · Pull Request #29730 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223111449/https://github.com/python/cpython/pull/29730
Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-45873: Restore Python 3.6 compatibility (GH-29730) #29730

Merged
merged 4 commits into from Nov 23, 2021

Conversation

tiran
Copy link
Member

@tiran tiran commented Nov 23, 2021 •

https://bugs.python.org/issue45873

Automerge-Triggered-By: GH:tiran

@tiran tiran added skip news 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Nov 23, 2021
@tiran tiran requested a review from gvanrossum Nov 23, 2021
@bedevere-bot
Copy link

bedevere-bot commented Nov 23, 2021

🤖 New build scheduled with the buildbot fleet by @tiran for commit f5818e6 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 23, 2021
Copy link
Member

@gvanrossum gvanrossum left a comment

LGTM, but is it even worth testing for 3.7+? Why not always take the slow path?

@tiran tiran added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 23, 2021
@bedevere-bot
Copy link

bedevere-bot commented Nov 23, 2021

🤖 New build scheduled with the buildbot fleet by @tiran for commit cb24cf5 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 23, 2021
@tiran
Copy link
Member Author

tiran commented Nov 23, 2021

LGTM, but is it even worth testing for 3.7+? Why not always take the slow path?

I left the old implementation in because it's more readable. The fast path is now in a doc string for future reference.

I also added more debug code to configure to figure out what is going on on the Debian buildbot.

@tiran
Copy link
Member Author

tiran commented Nov 23, 2021

Closing and reopening to retrigger Azure.

@tiran tiran closed this Nov 23, 2021
@tiran tiran reopened this Nov 23, 2021
Copy link
Member

@gvanrossum gvanrossum left a comment

(Why do we even bother with "python3 python"? For weird platforms that have only one of those but it happens to be 3.6 or better?)

@tiran
Copy link
Member Author

tiran commented Nov 23, 2021

(Why do we even bother with "python3 python"? For weird platforms that have only one of those but it happens to be 3.6 or better?)

I don't know and kept python 3 python just in case.

Tools/scripts/deepfreeze.py Outdated Show resolved Hide resolved
@tiran
Copy link
Member Author

tiran commented Nov 23, 2021 •

Broke Azure tests are likely caused by GH-28612 GH-29488.

Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Copy link
Member

@gvanrossum gvanrossum left a comment

:-)

@tiran tiran added the 🤖 automerge PR will be merged once it's been approved and all CI passed label Nov 23, 2021
@gvanrossum
Copy link
Member

gvanrossum commented Nov 23, 2021

Broke Azure tests are likely caused by GH-28612.

How? That PR was closed without merging. And if there was a cause outside this PR why would it not have failed before (e.g. when I submitted #29717)?

Are you suggesting there are some cached files from running that PR present?

@miss-islington
Copy link
Contributor

miss-islington commented Nov 23, 2021

@tiran: Status check is done, and it's a failure ❌ .

@tiran
Copy link
Member Author

tiran commented Nov 23, 2021 •

I confused GH-28612 with GH-29488. Both are for bpo-39026.

This PR was created after @vstinner merged GH-29488. That's why my PR has failing Azure tests and your PR did not.

@tiran tiran changed the title bpo-45873: Restore Python 3.6 compatibility bpo-45873: Restore Python 3.6 compatibility (GH-29730) Nov 23, 2021
@tiran tiran merged commit f840398 into python:main Nov 23, 2021
10 of 11 checks passed
@tiran tiran deleted the bpo-45873-py36 branch Nov 23, 2021
remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 automerge PR will be merged once it's been approved and all CI passed skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants