# HG changeset patch # User Atul Varma # Date 1212706395 25200 # Node ID 482a0ed021dac07e27596492397bd85bbf3c88f4 # Parent f8aa8d0494eda74e4a9afef1ed2a262d5c41cf8c xkcd link and other stuff diff -r f8aa8d0494ed -r 482a0ed021da PythonForJsProgrammers.txt --- a/PythonForJsProgrammers.txt Thu Jun 05 15:47:04 2008 -0700 +++ b/PythonForJsProgrammers.txt Thu Jun 05 15:53:15 2008 -0700 @@ -76,9 +76,10 @@ language feature that reduces the cognitive burden on the programmer. Indeed, many of the language features covered below were designed with a very careful eye towards readability, reducing cognitive load, and -making the process of programming as enjoyable as possible. +making the process of programming `as enjoyable as possible`_. .. _`Don't Repeat Yourself`: http://en.wikipedia.org/wiki/Don%27t_repeat_yourself +.. _`as enjoyable as possible`: http://xkcd.com/353/ The Interactive Shell ===================== @@ -333,9 +334,8 @@ AttributeError: 'dict' object has no attribute 'foo' Dictionaries generally aren't used to create arbitrary objects like -they are in Javascript, though; they don't have prototypes, nor do -they have meta-methods. Instead, classes are used to do that sort of -thing. +they are in Javascript; they don't have prototypes, nor do they have +meta-methods. Instead, classes are used to do that sort of thing. Classes =======