python / cpython

The Python programming language
https://www.python.org
Other
63.1k stars 30.22k forks source link

Structural Pattern Matching (PEP 634) #86294

Closed brandtbucher closed 3 years ago

brandtbucher commented 3 years ago
BPO 42128
Nosy @gvanrossum, @rhettinger, @willingc, @dmoisset, @lysnikolaou, @pablogsal, @tirkarthi, @brandtbucher, @isidentical, @gousaiyang, @Fidget-Spinner, @akulakov, @freundTech
PRs
  • python/cpython#22917
  • python/cpython#24588
  • python/cpython#24664
  • python/cpython#24667
  • python/cpython#24673
  • python/cpython#24732
  • python/cpython#24733
  • python/cpython#25185
  • python/cpython#25203
  • python/cpython#25642
  • python/cpython#27384
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = 'https://github.com/brandtbucher' closed_at = created_at = labels = ['interpreter-core', 'type-feature', '3.10'] title = 'Structural Pattern Matching (PEP 634)' updated_at = user = 'https://github.com/brandtbucher' ``` bugs.python.org fields: ```python activity = actor = 'andrei.avk' assignee = 'brandtbucher' closed = True closed_date = closer = 'brandtbucher' components = ['Interpreter Core'] creation = creator = 'brandtbucher' dependencies = [] files = [] hgrepos = [] issue_num = 42128 keywords = ['patch'] message_count = 56.0 messages = ['379442', '379443', '379831', '379833', '379834', '386673', '386702', '386712', '386717', '386720', '386727', '386748', '387362', '387364', '387365', '387369', '387371', '387381', '387384', '387385', '387386', '387389', '387390', '387392', '387409', '387410', '387753', '387769', '387773', '387801', '387815', '387817', '387818', '387819', '387827', '387836', '387968', '388040', '388044', '388046', '388066', '388554', '388555', '388567', '388580', '388583', '388584', '388772', '388775', '388784', '388785', '388790', '388792', '388979', '390270', '391472'] nosy_count = 14.0 nosy_names = ['gvanrossum', 'rhettinger', 'willingc', 'Daniel Moisset', 'lys.nikolaou', 'pablogsal', 'xtreak', 'brandtbucher', 'BTaskaya', 'gousaiyang', 'kj', 'andrei.avk', 'laurenjl', 'freundTech'] pr_nums = ['22917', '24588', '24664', '24667', '24673', '24732', '24733', '25185', '25203', '25642', '27384'] priority = 'normal' resolution = None stage = 'resolved' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue42128' versions = ['Python 3.10'] ```

    brandtbucher commented 3 years ago

    Also, given that pattern matching is now shipped and documented, perhaps this issue should be closed? At this point I think dedicated issues are probably better for any new bugs/enhancements/etc.

    gvanrossum commented 3 years ago

    Yeah, feel free to close this issue.

    brandtbucher commented 3 years ago

    Actually, I didn't see that there are still 2 open linked PRs. I'll wait until those are merged.

    pablogsal commented 3 years ago

    New changeset 08fb8ac99ab03d767aa0f1cfab3573eddf9df018 by Pablo Galindo in branch 'master': bpo-42128: Add 'missing :' syntax error message to match statements (GH-24733) https://github.com/python/cpython/commit/08fb8ac99ab03d767aa0f1cfab3573eddf9df018

    brandtbucher commented 3 years ago

    New changeset f84d5a113680c5a6aaaf9130aed7a34d611748ff by Brandt Bucher in branch 'master': bpo-42128: __match_args__ can't be a list anymore (GH-25203) https://github.com/python/cpython/commit/f84d5a113680c5a6aaaf9130aed7a34d611748ff

    isidentical commented 3 years ago

    Actually, I didn't see that there are still 2 open linked PRs. I'll wait until those are merged.

    I've moved the AST validator to its own separate issue so feel free to close this Brandt!