From 6c6e5f4c848257a493548fd5c68daf7690e046c1 Mon Sep 17 00:00:00 2001 From: Vishal Sodani Date: Mon, 14 Apr 2014 11:03:58 +0530 Subject: [PATCH 1/5] Add book - Writing Idiomatic Python --- docs/intro/learning.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst index 9a1a3b411..790cbf787 100644 --- a/docs/intro/learning.rst +++ b/docs/intro/learning.rst @@ -222,3 +222,10 @@ core language, with descriptions of commonly used modules and toolkits. It cover Python 3 and 2.6 versions. `Python Pocket Reference `_ + +Writing Idiomatic Python 2.7.3 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +"Writing Idiomatic Python", written by Jeff Knupp, contains the most common and important Python idioms in a format that maximizes identification and understanding. Each idiom is presented as a recommendation to write some commonly used piece of code. It is followed by an explanation of why the idiom is important. It also contains two code samples: the "Harmful" way to write it and the "Idiomatic" way + + From d8bc8512d1452dc6137e98ef4b7300710df246a7 Mon Sep 17 00:00:00 2001 From: Vishal Sodani Date: Mon, 14 Apr 2014 11:08:06 +0530 Subject: [PATCH 2/5] Add book link --- docs/intro/learning.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst index 790cbf787..7195c8e02 100644 --- a/docs/intro/learning.rst +++ b/docs/intro/learning.rst @@ -228,4 +228,6 @@ Writing Idiomatic Python 2.7.3 "Writing Idiomatic Python", written by Jeff Knupp, contains the most common and important Python idioms in a format that maximizes identification and understanding. Each idiom is presented as a recommendation to write some commonly used piece of code. It is followed by an explanation of why the idiom is important. It also contains two code samples: the "Harmful" way to write it and the "Idiomatic" way + `Writing Idiomatic Python 2.7.3 `_ + From 4a3375e4db4c6a1a205e1ceadbbcf4e57048eb5e Mon Sep 17 00:00:00 2001 From: Vishal Sodani Date: Mon, 14 Apr 2014 14:22:23 +0530 Subject: [PATCH 3/5] Wrap text --- docs/intro/learning.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst index 7195c8e02..6d66bdf1f 100644 --- a/docs/intro/learning.rst +++ b/docs/intro/learning.rst @@ -226,7 +226,11 @@ Python 3 and 2.6 versions. Writing Idiomatic Python 2.7.3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -"Writing Idiomatic Python", written by Jeff Knupp, contains the most common and important Python idioms in a format that maximizes identification and understanding. Each idiom is presented as a recommendation to write some commonly used piece of code. It is followed by an explanation of why the idiom is important. It also contains two code samples: the "Harmful" way to write it and the "Idiomatic" way +"Writing Idiomatic Python", written by Jeff Knupp, contains the most common and +important Python idioms in a format that maximizes identification and understanding. +Each idiom is presented as a recommendation to write some commonly used piece of code. +It is followed by an explanation of why the idiom is important. It also contains two +code samples: the "Harmful" way to write it and the "Idiomatic" way `Writing Idiomatic Python 2.7.3 `_ From 7593abaaee908cdfecb681c51a13bb43506b4b68 Mon Sep 17 00:00:00 2001 From: Vishal Sodani Date: Mon, 14 Apr 2014 22:08:33 +0530 Subject: [PATCH 4/5] Rename title, add links for 2.7.3 and 3.3 --- docs/intro/learning.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst index 6d66bdf1f..b7eca0d4f 100644 --- a/docs/intro/learning.rst +++ b/docs/intro/learning.rst @@ -223,7 +223,7 @@ Python 3 and 2.6 versions. `Python Pocket Reference `_ -Writing Idiomatic Python 2.7.3 +Writing Idiomatic Python ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Writing Idiomatic Python", written by Jeff Knupp, contains the most common and @@ -232,6 +232,8 @@ Each idiom is presented as a recommendation to write some commonly used piece of It is followed by an explanation of why the idiom is important. It also contains two code samples: the "Harmful" way to write it and the "Idiomatic" way - `Writing Idiomatic Python 2.7.3 `_ + `For Python 2.7.3+ `_ + + `For Python 3.3+ `_ From 9a09be9cfa75714c3f0c1dfd932104eedb274631 Mon Sep 17 00:00:00 2001 From: Vishal Sodani Date: Tue, 15 Apr 2014 08:29:50 +0530 Subject: [PATCH 5/5] Fix format --- docs/intro/learning.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst index b7eca0d4f..959859f94 100644 --- a/docs/intro/learning.rst +++ b/docs/intro/learning.rst @@ -224,7 +224,7 @@ Python 3 and 2.6 versions. `Python Pocket Reference `_ Writing Idiomatic Python -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~ "Writing Idiomatic Python", written by Jeff Knupp, contains the most common and important Python idioms in a format that maximizes identification and understanding.