“when in Pythonland, do as Pythonistas do, not as C programmers do.” — Mark Lutz Programming Copy Share Image
“Interestingly, the iteration protocol is even more pervasive in Python today than the examples so far have demonstrated — essentially everything in… — Mark Lutz Copy Share Image
“Boolean and and or operators return a true or false object in Python, not the values True or False.” — Mark Lutz True or false Copy Share Image
“Besides directory paths on Windows, raw strings are also commonly used for regular expressions” — Mark Lutz Copy Share Image
“absolutes in performance benchmarks are as elusive as consensus in open source projects!” — Mark Lutz Open source Copy Share Image
“The name used as the assignment target in a for header line is usually a (possibly new) variable in the scope where… — Mark Lutz Goals Copy Share Image
“give people a tool, and they’ll code for a day; teach them how to build tools, and they’ll code for a lifetime.… — Mark Lutz Programming Copy Share Image
“This description requires elaboration when the value and the slice being assigned overlap: L[2:5]=L[3:6], for instance, works fine because the value to… — Mark Lutz Copy Share Image
“We met the list comprehension briefly in Chapter 4. Syntactically, its syntax is derived from a construct in set theory notation that applies… — Mark Lutz Copy Share Image
“In Pythons 3.3 and 2.7, you can get help for a module you have not imported by quoting the module’s name as… — Mark Lutz Copy Share Image
“One of the first questions that bewildered beginners often ask is: how do I find information on all the built-in tools?” — Mark Lutz Copy Share Image
“In the Python way of thinking, explicit is better than implicit, and simple is better than complex.1” — Mark Lutz Way of thinking Copy Share Image
“In general terms, the loop else simply provides explicit syntax for a common coding scenario — it is a coding structure that… — Mark Lutz Copy Share Image
“As usual in programming, if something is difficult for you to understand, it’s probably not a good idea.” — Mark Lutz Programming Copy Share Image
“map is similar to a list comprehension but is more limited because it requires a function instead of an arbitrary expression.” — Mark Lutz Copy Share Image
“Moreover, depending on your Python and code, list comprehensions might run much faster than manual for loop statements (often roughly twice as… — Mark Lutz Programming Copy Share Image
“pdb also includes a postmortem function (pdb.pm()) that you can run after an exception occurs, to get information from the time of… — Mark Lutz Copy Share Image