Skip to content

Commit 72f280a

Browse files
committed
add new generators and comprehensions links
1 parent 3d75a89 commit 72f280a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

content/pages/03-programming-language/08-generators.markdown

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ language as of Python 2.2 in 2001.
1717

1818

1919
## Python generator resources
20-
* [An introduction to Python generators](http://intermediatepythonista.com/python-generators)
21-
by Intermediate Pythonista is a well done post with code examples.
22-
2320
* This blog post entitled
2421
[Python Generators](http://rdrewd.blogspot.com/2014/02/python-generators.html)
2522
specifically focuses on generating dictionaries. It provides a good
2623
introduction for those new to Python.
2724

25+
* [Generator Expressions in Python: An Introduction](https://dbader.org/blog/python-generator-expressions#intro)
26+
is the best all-around introduction to how to use generators and
27+
provides numerous code examples to learn from.
28+
29+
* [An introduction to Python generators](http://intermediatepythonista.com/python-generators)
30+
by Intermediate Pythonista is a well done post with code examples.
31+
2832
* [Python 201: An Intro to Generators](http://www.blog.pythonlibrary.org/2014/01/27/python-201-an-intro-to-generators/)
2933
is another short but informative read with example generators code.
3034

content/pages/03-programming-language/09-comprehensions.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Dictionary comprehension:
4141

4242

4343
## Comprehension resources
44+
* [Comprehending Python’s Comprehensions](https://dbader.org/blog/list-dict-set-comprehensions-in-python#intro)
45+
is an awesome post by Dan Bader with a slew of examples that explain
46+
how list, dictionary and set comprehensions should be used.
47+
4448
* Intermediate Python's
4549
[Python Comprehensions](http://intermediatepythonista.com/python-comprehensions)
4650
post gives a well written overview of comprehensions for the three core

0 commit comments

Comments
 (0)