GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Meta issue: clean up redundant compat code · Issue #100176 · python/cpython

Meta issue: clean up redundant compat code #100176

New issue
Copy link
New issue
Copy link
Closed
#101853
Closed
Meta issue: clean up redundant compat code#100176
#101853
Copy link
Assignees
hugovk
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@hugovk
hugovk
opened on Dec 11, 2022
Issue body actions

Bug report

There's several places that have compatibility code for EOL and unsupported Python versions.

We can modernise the code by removing the obsolete bits.

I'll open separate PRs to keep the changes focused by area, and intend to use this meta issue for them all (but can also open separate issues if preferred).

Linked PRs

  • gh-100176: venv: Remove redundant compat code for Python <= 3.2 #100177
  • gh-100176: remove incorrect version compatibility check from clinic #100190
  • gh-100176: Tools/iobench: Remove redundant compat code for Python <= 3.2 #100197
  • gh-100176: Mac/build-installer: Remove redundant compat code for Python 3.5 and older #100297
  • gh-100176: Remove outdated Tools/{io,cc,string}bench #101853
Reacted by Alex Waygood and Oleg Iarygin

Activity

  1. hugovk
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Dec 11, 2022
  2. hugovk
    added a commit that references this issue on Dec 11, 2022

    pythongh-100176: Remove redundant compat code for Python 3.2 and older

    6525040
  3. hauntsaninja
    added a commit that references this issue on Dec 12, 2022

    pythongh-100176: remove incorrect version compatibility check from cl…

    a2cf630
  4. kumaraditya303
    added a commit that references this issue on Dec 12, 2022

    gh-100176: remove incorrect version compatibility check from argument…

    621a179
  5. hugovk
    added a commit that references this issue on Dec 12, 2022

    pythongh-100176: Remove redundant compat code for Python 3.2 and older

    42f2ccf
  6. vsajip
    added a commit that references this issue on Dec 14, 2022

    gh-100176: venv: Remove redundant compat code for Python <= 3.2 (#100177

    3192c00
  7. hugovk
    self-assigned this
    on Dec 14, 2022
  8. carljm
    added a commit that references this issue on Dec 14, 2022

    Merge branch 'main' into typedocs

    53d33a1
  9. sobolevn commented on Jan 8, 2023

    @sobolevn
    sobolevn
    on Jan 8, 2023
    Member
    More actions

    While looking at this, I got interested: do we even need https://github.com/python/cpython/blame/main/Tools/stringbench/stringbench.py ? It has some python2/3 compat code and the last changes to it was 10 years ago. It is clearly not up-to-date. I will raise this question on discuss.python.org

  10. sobolevn commented on Jan 8, 2023

    @sobolevn
    sobolevn
    on Jan 8, 2023
    Member
    More actions

    https://discuss.python.org/t/do-we-still-need-tools-io-cc-string-bench/22557

    Reacted by Hugo van Kemenade
  11. hugovk
    added a commit that references this issue on Feb 12, 2023

    pythongh-100176: Remove outdated Tools/{io,cc,string}bench

    535c89a
  12. hugovk commented on Feb 12, 2023

    @hugovk
    hugovk
    on Feb 12, 2023
    MemberAuthor
    More actions

    Please see PR #101853 to remove Tools/{io,cc,string}bench

  13. hugovk
    added a commit that references this issue on Apr 8, 2023

    gh-100176: Tools/iobench: Remove redundant compat code for Python <= …

    b22d021
  14. warsaw
    added a commit that references this issue on Apr 11, 2023

    pythongh-100176: Tools/iobench: Remove redundant compat code for Pyth…

    4dd2c5a
  15. iritkatriel
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Nov 28, 2023
  16. hugovk
    closed this as completedin #101853on Feb 17, 2024
  17. hugovk
    added a commit that references this issue on Feb 17, 2024

    gh-100176: Remove outdated Tools/{io,cc,string}bench (#101853)

    aba37d4
  18. woodruffw
    added a commit that references this issue on Mar 4, 2024

    pythongh-100176: Remove outdated Tools/{io,cc,string}bench (python#10…

    e970a0e
  19. diegorusso
    added a commit that references this issue on Apr 17, 2024

    pythongh-100176: Remove outdated Tools/{io,cc,string}bench (python#10…

    85b5109
  20. LukasWoodtli
    added a commit that references this issue on Jan 22, 2025

    pythongh-100176: Remove outdated Tools/{io,cc,string}bench (python#10…

    0a23d13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @hugovk
    hugovk

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.