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

YAPF 2: Replatform off of lib2to3 to libcst and structured pattern matching (2025 project idea) #1258

Open
Spitfire1900 opened this issue Jan 5, 2025 · 0 comments

Comments

@Spitfire1900
Copy link
Contributor

YAPF migrated to a fork of lib2to3 as _ylib2to3 in order to patch in support for 3.10 features like structured pattern matching.

Maintaining the fork of lib2to3 as a long term project to implement 3.12+ new language features insn't feasible and should consider a separate concrete syntax tree (CST) provider like libcst.

This year also marks the EoL of Python 3.9, so structured pattern matching will be available in all supported versions of Python come November; this re-platforming effort may take advantage of that also.

@Spitfire1900 Spitfire1900 changed the title Replatform off of lib2to3 to libcst and structured pattern matching (2025 project idea) YAPF 2: Replatform off of lib2to3 to libcst and structured pattern matching (2025 project idea) Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant