Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Oct 27, 2017

If get_names() is an instance method, it shouldn't cache its result statically. It should be a static method, but a class method works as well.

https://bugs.python.org/issue31174

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

@serhiy-storchaka serhiy-storchaka merged commit 7351f9e into python:master Oct 27, 2017
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the test_unparse-get_names branch October 27, 2017 12:35
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 27, 2017
@bedevere-bot
Copy link

GH-4148 is a backport of this pull request to the 3.6 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants