Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Streamline family syntax in Tools/cases_generator #106706

Closed
Labels
@gvanrossum

Description

@gvanrossum

The syntax to designate a family currently looks like this:

        family(store_subscr, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = {            STORE_SUBSCR,            STORE_SUBSCR_DICT,            STORE_SUBSCR_LIST_INT,        };

Here thestore_subscr "family name" is redundant (and in fact we even hadone case where it was incorrect).

I propose to change it to be more similar to thepseudo syntax, so it will become

        family(STORE_SUBSCR, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = {            STORE_SUBSCR_DICT,            STORE_SUBSCR_LIST_INT,        };

This should be a straightforward change to the parser and code generator in Tools/cases_generator.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp