Articles tagged Python

  1. Aligning the first line of a triple-quoted string in Python
  2. Python Counters @PyDiff
  3. Creating a dict of lists in Python
  5. Advent of Code 2017
  6. Unleash the test army
  7. Lazy sequences working hard
  8. Slicing a list evenly with Python
  9. From bytes to strings in Python and back again
  10. 24 Puzzles
  11. Negative Sequence Indices in Python
  12. Python Streams vs Unix Pipes
  13. 8 Queens Puzzle
  14. Easy as Py
  15. Sausages, sausages, sausages - slice, slice, slice
  16. Sledgehammers vs Nut Crackers
  17. Why zip when you can map?
  18. Find the average of a collection of tuples or dicts using Python
  19. Group When
  20. You wait all day for a bus…
  21. Python’s lesser known loop control
  22. Set.insert or set.add?
  23. Hiding iterator boilerplate behind a Boost facade
  24. Binary search revisited
  25. Power programming. What makes a language powerful? The programmer!
  26. Python, Surprise me!
  27. Next permutation: When C++ gets it right. An investigation into a classic algorithm for generating the distinct permutations of a sequence in lexicographical order.
  28. Python on Ice. A review of the Python 2, Python 3 language fork. Python 3 has met with some resistance. A moratorium on further changes to the language is being imposed, to smooth the transition.
  29. A useful octal escape sequence
  30. Converting integer literals in C++ and Python
  31. Inner, Outer, Shake it all abouter. Encapsulation is about allocating responsibility and easing utility rather than protecting data.
  32. Blackmail made easy using Python counters. A programming puzzle and a discussion of Python's evolution.
  33. Undogfooding
  34. Tony Hoare’s vision, car crashes, and Alan Turing. The highs and lows of Europython 2009. A personal review.
  35. Partitioning with Python
  36. Run-length encoding in Python
  37. DEFLATE: run-length encoding, but better. An investigation into the extended run-length encoder at the heart of the Zlib compression library.
  38. Review: Expert Python Programming
  39. Patience sort and the Longest increasing subsequence. How a simple card game provides an efficient algorithm for finding the longest increasing subsequence of a given sequence.
  40. Longest common subsequence. An investigation into the classic computer science problem of calculating the longest common subsequence of two sequences, and its relationship to the edit distance and longest increasing subsequence problems.
  41. Ordered sublists. A brute force approach. A brute force solution to the longest increasing subsequence problem.
  42. Maximum of an empty sequence?
  43. Python was named after a comedy troupe. This note discusses what makes a good name for a computer language.
  44. Could a Python eat an elephant?
  45. Seamless sequence output in Python 3.0
  46. Perl 6, Python 3
  47. Steganography made simple
  48. Books, blogs, comments and code samples
  49. Sums and sums of squares in C++. Reduce is a higher order function which applies a another function repeatedly to a collection of values, accumulating the result. Well known to functional programmers, reduce is also a standard C++ algorithm.
  50. Removing duplicates using itertools.groupby. An interpreted Python session showing itertools in action.
  51. Merging sorted streams in Python. Did you know that Python's for loops can have an else clause? Here's how it can be used in a stream-merging function.
  52. Syntactic Sugar
  53. Entertaining Documentation
  54. Me, Myself and OpenID. Setting up a personal OpenID server using phpMyID
  55. Running Sums in Python. A Python program to generate the running sum of a series.
  56. Eurovision 2008 charts
  57. Scatter pictures with Google Charts
  58. Takewhile drops one
  59. Stop the clock, squash the bug. Which is better, a clock which loses a minute a day or one which is stopped? An investigation into how we find and fix software defects.
  60. White black knight then black white knight. Yet more on drawing chessboards
  61. Drawing Chess Positions. A follow-up article on scripting graphics.
  62. Drawing Chessboards. An article about creating graphics programmatically.
  63. Tracing function calls using Python decorators. Developing code to trace function calls using Python decorators.
  64. Sugar Pie. Approximating pi by scattering sugar.
  65. Top Ten Tags. Choosing the right algorithm to select the N largest items from a collection.
  66. Lexical Dispatch in Python. Dispatching to functions based on their names
  67. Essential Python Reading List. An essential Python reading list. I've ordered the items so you can pause or stop reading at any point: at every stage you'll have learned about as much possible about Python for the effort you've put in.
  68. From Hash Key to Haskell. A note on keys, characters, smileys, digraphs and Haskell.
  69. Animated pair streams. Another look at the functional programming problem of generating an infinite sequence of pairs. An example of using the Python Imaging Library to generate an animated GIF.
  70. Too big or too clever? Steve Yegge says that, for large applications, size is an enemy best controlled by dynamic languages. Alex Martelli says a language can be too dynamic for a large application. Who's right?
  71. The Maximum Sum contiguous subsequence problem. A stream-based solution to a classic computer science problem.
  72. Elegance and Efficiency. Must elegant code be efficient? This article investigates.
  73. Zippy triples served with Python. How do you generate previous, this, next, triples from a collection. A stream-based solution in Python.
  74. RTM vs STW
  75. Big City Skyline Puzzle. Comments on a novel computer science puzzle. When machine resources are scarce, a compiled language offers precise control.
  76. Paralipsis
  77. PyCon UK: statistics, pictures and perennial problems
  78. Pitching Python in three syllables
  79. The Granny—Stroustrup Scale
  80. Koenig’s first rule of debugging. The problems caused by the C++ compilation model, dependencies and cryptic compile diagnostics. If an expert like Andrew Koenig can’t get it right, what hope for the rest of us?
  81. Shameful Names
  82. Space sensitive programming
  83. The Third Rule of Program Optimisation
  84. Why Python programmers should learn Python
  85. Source open, problem closed. An example of the open source advantage.
  86. Evolving Python in and for the real world
  87. Introducing Java
  88. Perlish Wisdom
  89. PyCon UK
  90. The Trouble with Version Numbers
  91. High altitude programming
  92. Python keyword workaround
  93. Charming Python
  94. Shells, Logs and Pipes
  95. Test driven development in Python
  96. Mixing Python and C++
  97. Release then Test
  99. Code completion for dynamic languages
  100. Casualties in the great computer shootout. An investigation into various dimensions of some speed benchmark programs.
  101. Retro-fitting coding standards
  102. Code Craft
  103. Narrow Python
  104. Trac — not just a pretty interface
  105. Permission and Forgiveness
  106. Spam, Typo, Subversion Logs
  107. Joined Output and the Fencepost Problem. Items and the spaces between them: some notes on the fencepost problem and joining up strings.
  108. Computer Language Complexity
  109. Look and Say Numbers
  110. Browsing Python Documentation using the Python Sidebar
  111. From __future__ import braces
  112. Python 2.5
  113. String literals and regular expressions. An article about string literals, escape sequences, regular expressions, and the problems encountered when mixing these together.
  114. Parsing C++
  115. Py2exe
  116. Are List Comprehensions the Wrong Way Round?
  117. Message to Self. What’s this?
  118. Octal Literals
  119. A Subversion Pre-Commit Hook. How to install and test a simple Subversion pre-commit hook script.
  120. Readable Code
  121. A Python syntax highlighter
  122. Generating solutions to the 8 Queens Puzzle
  123. My (Test) First Ruby Program
  124. Posting from the command line using mtsend
  125. Metaprogramming is Your Friend. An investigation into metaprogramming techniques used by lazy C, C++, Lisp and Python programmers.
  126. Brackets Off! Thoughts on operator precedence.