Skip to content

Conversation

@alex
Copy link
Member

@alex alex commented Jun 4, 2017

Metaprogramming a list of attributes was excessive, and made the code less readable and slower.

Metaprogramming a list of attributes was excessive, and made the code less readable and slower.
@mention-bot
Copy link

@alex, thanks for your PR! By analyzing the history of the files in this pull request, we identified @brettcannon, @tiran and @birkenfeld to be potential reviewers.

@alex alex added the trivial label Jun 4, 2017
def __init__(self, message, category, filename, lineno, file=None,
line=None, source=None):
local_values = locals()
for attr in self._WARNING_DETAILS:
Copy link
Member

Choose a reason for hiding this comment

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

Is this the only use of _WARNING_DETAILS? Does it make sense to just get rid of it?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it's not. There's a usage in Lib/test/support/__init__.py

Copy link
Member

Choose a reason for hiding this comment

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

Okay.

@dstufft dstufft merged commit 5de3a64 into master Jun 4, 2017
@dstufft dstufft deleted the alex-patch-2 branch June 4, 2017 15:34
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

Successfully merging this pull request may close these issues.

5 participants