diff --git a/2012-05-17-fun-python-question.html b/2012-05-17-fun-python-question.html new file mode 100644 index 0000000..e27fa1b --- /dev/null +++ b/2012-05-17-fun-python-question.html @@ -0,0 +1,18 @@ + + + + + +

What does this do?

+ +
def func():
+  print 'foo'
+  return
+  yield 'bar'
+
+print func()
+
+ +

Take a guess, then give it a try.

+ + diff --git a/index.html b/index.html index c007f26..f59270a 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,7 @@
  • 2016-Feb-15: Cable modem channel party
  • 2016-Feb-01: How to enrage your cable modem
  • 2016-Feb-01: Hall of 2.4 GHz Shame, 2016 Edition
  • +
  • 2012-May-17: Fun Python question
  • 2012-Mar-09: Google MySQL team is hiring
  • 2011-Dec-09: The dangers of max_connections
  • 2011-Nov-29: Converting subselects to joins, part 2
  • diff --git a/markdown/2012-05-17-fun-python-question.md b/markdown/2012-05-17-fun-python-question.md new file mode 100644 index 0000000..fe00163 --- /dev/null +++ b/markdown/2012-05-17-fun-python-question.md @@ -0,0 +1,17 @@ + + + + + +What does this do? + + def func(): + print 'foo' + return + yield 'bar' + + print func() + +Take a guess, then give it a try. + + diff --git a/markdown/index.md b/markdown/index.md index f9d2fb6..384525f 100644 --- a/markdown/index.md +++ b/markdown/index.md @@ -19,6 +19,7 @@ 1. 2016-Feb-15: [Cable modem channel party](2016-02-15-cable-modem-channel-party.html) 1. 2016-Feb-01: [How to enrage your cable modem](2016-02-01-how-to-enrage-your-cable-modem.html) 1. 2016-Feb-01: [Hall of 2.4 GHz Shame, 2016 Edition](2016-02-01-hall-of-2-4-ghz-shame-2016-edition.html) +1. 2012-May-17: [Fun Python question](2012-05-17-fun-python-question.html) 1. 2012-Mar-09: [Google MySQL team is hiring](2012-03-09-google-mysql-team-is-hiring.html) 1. 2011-Dec-09: [The dangers of max_connections](2011-12-09-the-dangers-of-max-connections.html) 1. 2011-Nov-29: [Converting subselects to joins, part 2](2011-11-29-converting-subselects-to-joins-part-2.html)