Skip to content

Conversation

@sigmavirus24
Copy link
Contributor

It should be stressed that list comprehensions are better used (when possible) than for-loops with append and that there are cases where using the addition operator on strings is not only okay but advisable.

@kennethreitz
Copy link
Contributor

I don't think we should focus too much on speed, but pragmatism.

Good changes though :) Thanks!

kennethreitz pushed a commit that referenced this pull request Jun 15, 2012
Add two more examples to the structure section
@kennethreitz kennethreitz merged commit 8528261 into realpython:master Jun 15, 2012
@sigmavirus24
Copy link
Contributor Author

No problem. Thanks for accepting them.

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