Skip to content

Conversation

@cfournie
Copy link
Contributor

"Complicated list comprehensions or generator expressions can be hard to read." To encourage simple list comprehensions let's limit them to using one for statement each.

@cfournie cfournie mentioned this pull request Mar 13, 2017
13 tasks
@cfournie cfournie force-pushed the list_comprehensions branch from 83763aa to 01164a2 Compare March 14, 2017 14:13
'finally-too-long',
"The larger the 'finally' body size, the more likely that an exception will be raised during "
"resource cleanup activities."),
'C6010': ('Multiple generators in list comprehension',

Choose a reason for hiding this comment

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

Only one of us can use this code :)

Copy link

@JasonMWhite JasonMWhite left a comment

Choose a reason for hiding this comment

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

Other than potentially conflicting on code C6010

@cfournie cfournie force-pushed the list_comprehensions branch 2 times, most recently from 2b3a1a9 to 34a77f3 Compare March 14, 2017 18:16
@cfournie cfournie force-pushed the list_comprehensions branch from 34a77f3 to 6ab4d2f Compare March 14, 2017 18:42
@cfournie cfournie merged commit 2a1ccfd into master Mar 14, 2017
@cfournie cfournie deleted the list_comprehensions branch March 14, 2017 18:49
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.

2 participants