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-46996: Remove support of Tcl/Tk < 8.5.12 #31839

Merged

Conversation

Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Mar 12, 2022

@serhiy-storchaka serhiy-storchaka added the 🔨 test-with-buildbots label Mar 12, 2022
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Mar 12, 2022

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 9151680 🤖

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 label Mar 12, 2022
@serhiy-storchaka serhiy-storchaka requested a review from tiran Mar 12, 2022
v = get_tk_patchlevel()
if v >= (8, 6, 0, 'final') or (8, 5, 8) <= v < (8, 6):
integers += (2**63, -2**63-1, 2**1000, -2**1000)
integers += (2**63, -2**63-1, 2**1000, -2**1000)
Copy link
Contributor

@arhadthedev arhadthedev Mar 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a condition is unlocked, maybe there is a sense to group numbers into (N-1, -N, N, -N-1).

    def get_integers(self):
        return (0, 1, -1,
                2**31-1, -2**31, 2**31, -2**31-1,
                2**63-1, -2**63 ,2**63, -2**63-1,
                2**1000, -2**1000)

Copy link
Member Author

@serhiy-storchaka serhiy-storchaka Mar 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this, but kept simpler diff because there is already many changes in this PR.

But if you also suggest this I'll rewrite this code.

@erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Mar 15, 2022

Thanks, Serhiy! Do you want to merge this before GH-31698?

@serhiy-storchaka
Copy link
Member Author

@serhiy-storchaka serhiy-storchaka commented Mar 16, 2022

What is better for you? Does this PR need some changes in the build scripts or you will add them in #31698?

@erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Mar 16, 2022

Any order is fine with me. GH-31698 requires only minimal adjustments after this has been merged, so we can go for this first.

@serhiy-storchaka serhiy-storchaka merged commit c2e3c06 into python:main Mar 17, 2022
11 of 12 checks passed
@serhiy-storchaka serhiy-storchaka deleted the tkinter-drop-old-versions branch Mar 17, 2022
asvetlov added a commit to YvesDup/cpython that referenced this issue Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants