File tree Expand file tree Collapse file tree 4 files changed +21
-1
lines changed
source/content/pages/03-programming-language Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1371,6 +1371,13 @@ <h2>Comprehension resources</h2>
13711371 including code examples and diagrams to explain how they work.</ p >
13721372</ li >
13731373< li >
1374+ < p > < a href ="https://blogs.msdn.microsoft.com/pythonengineering/2016/03/14/idiomatic-python-comprehensions/ "> Idiomatic Python: Comprehensions</ a >
1375+ explains how Python's comprehensions were inspired by Haskell's list
1376+ comprehensions. It also provides clear examples that show how comprehensions
1377+ are shorthand for common iteration code, such as copying one list into
1378+ another while performing some operation on the contained elements.</ p >
1379+ </ li >
1380+ < li >
13741381< p > < a href ="http://blog.cdleary.com/2010/04/learning-python-by-example-list-comprehensions/ "> Learning Python by example: list comprehensions</ a >
13751382 gives an example of an incorrect list comprehension then shows how to
13761383 correct its issues.</ p >
Original file line number Diff line number Diff line change @@ -80,6 +80,13 @@ <h2>Comprehension resources</h2>
8080 including code examples and diagrams to explain how they work.</ p >
8181</ li >
8282< li >
83+ < p > < a href ="https://blogs.msdn.microsoft.com/pythonengineering/2016/03/14/idiomatic-python-comprehensions/ "> Idiomatic Python: Comprehensions</ a >
84+ explains how Python's comprehensions were inspired by Haskell's list
85+ comprehensions. It also provides clear examples that show how comprehensions
86+ are shorthand for common iteration code, such as copying one list into
87+ another while performing some operation on the contained elements.</ p >
88+ </ li >
89+ < li >
8390< p > < a href ="http://blog.cdleary.com/2010/04/learning-python-by-example-list-comprehensions/ "> Learning Python by example: list comprehensions</ a >
8491 gives an example of an incorrect list comprehension then shows how to
8592 correct its issues.</ p >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <feed xmlns =" http://www.w3.org/2005/Atom" ><title >Matt Makai</title ><link href =" http://www.fullstackpython.com/" rel =" alternate" ></link ><link href =" http://www.fullstackpython.com/feeds/all.atom.xml" rel =" self" ></link ><id >http://www.fullstackpython.com/</id ><updated >2016-03-19T08:47:13Z </updated ></feed >
2+ <feed xmlns =" http://www.w3.org/2005/Atom" ><title >Matt Makai</title ><link href =" http://www.fullstackpython.com/" rel =" alternate" ></link ><link href =" http://www.fullstackpython.com/feeds/all.atom.xml" rel =" self" ></link ><id >http://www.fullstackpython.com/</id ><updated >2016-03-20T12:08:31Z </updated ></feed >
Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ Dictionary comprehension:
5454 [ comprehensions] ( http://python-3-patterns-idioms-test.readthedocs.org/en/latest/Comprehensions.html )
5555 including code examples and diagrams to explain how they work.
5656
57+ * [ Idiomatic Python: Comprehensions] ( https://blogs.msdn.microsoft.com/pythonengineering/2016/03/14/idiomatic-python-comprehensions/ )
58+ explains how Python's comprehensions were inspired by Haskell's list
59+ comprehensions. It also provides clear examples that show how comprehensions
60+ are shorthand for common iteration code, such as copying one list into
61+ another while performing some operation on the contained elements.
62+
5763* [ Learning Python by example: list comprehensions] ( http://blog.cdleary.com/2010/04/learning-python-by-example-list-comprehensions/ )
5864 gives an example of an incorrect list comprehension then shows how to
5965 correct its issues.
You can’t perform that action at this time.
0 commit comments