Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

loic
Copy link
Member

@loic loic commented Sep 26, 2014

...orts.

Copy link
Member

Choose a reason for hiding this comment

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

Builtins*

@timgraham
Copy link
Member

Add 1.7.1 release notes and backport?

Choose a reason for hiding this comment

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

this line is very hard to read maybe you should do something like this:

builtins = 'builtins' if six.PY3 else '__builtin__'
if module == builtins:
...

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the feedback however I wrote it that way specifically to minimize the work required when we drop support for PY2.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe wrapping the inline conditional in parentheses would help readability.

Copy link
Member

Choose a reason for hiding this comment

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

I meant module == ('builtins' if six.PY3 else '__builtin__')

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it, it looks better indeed.

@loic
Copy link
Member Author

loic commented Sep 26, 2014

Merged in b23d474 and 7355885.

@loic loic closed this Sep 26, 2014
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.

4 participants