Skip to content

Conversation

@iritkatriel
Copy link
Member

@iritkatrieliritkatriel commented Aug 14, 2023

This will simplify adding more stuff to the metadata.

Copy link
Member

@gvanrossumgvanrossum left a comment

Choose a reason for hiding this comment

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

Optional suggestion.

withself.metadata_item(
f"int _PyOpcode_num_{direction}(int opcode, int oparg, bool jump)", "", ""
):
self.out.emit(" switch(opcode){")
Copy link
Member

Choose a reason for hiding this comment

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

You could use ‘with self.out.block()’ and indent() here instead of adding spaces to the statements.

@iritkatrieliritkatriel enabled auto-merge (squash) August 14, 2023 18:03
@iritkatrieliritkatriel merged commit 3974534 into python:mainAug 14, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@iritkatriel@gvanrossum@bedevere-bot