Skip to content

Restrict list comprehension complexity - #30

Merged
cfournie merged 2 commits into
masterfrom
list_comprehensions
Mar 14, 2017
Merged

Restrict list comprehension complexity#30
cfournie merged 2 commits into
masterfrom
list_comprehensions

Conversation

@cfournie

Copy link
Copy Markdown
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.

@cfourniecfournie mentioned this pull request Mar 13, 2017
13 tasks
@cfournie
cfournieforce-pushed the list_comprehensions branch from 83763aa to 01164a2CompareMarch 14, 2017 14:13
Comment threadshopify_python/google_styleguide.py Outdated
'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',

Copy link
Copy Markdown

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 :)

@JasonMWhiteJasonMWhite left a comment

Copy link
Copy Markdown

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
cfournieforce-pushed the list_comprehensions branch 2 times, most recently from 2b3a1a9 to 34a77f3CompareMarch 14, 2017 18:16
@cfournie
cfournieforce-pushed the list_comprehensions branch from 34a77f3 to 6ab4d2fCompareMarch 14, 2017 18:42
@cfournie
cfournie merged commit 2a1ccfd into masterMar 14, 2017
@cfournie
cfournie deleted the list_comprehensions branch March 14, 2017 18:49
Sign up for freeto 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

@cfournie@JasonMWhite