Articles tagged Python

  2. Advent of Code 2017
  3. Unleash the test army
  4. Lazy sequences working hard
  5. Slicing a list evenly with Python
  6. From bytes to strings in Python and back again
  7. 24 Puzzles
  8. Negative Sequence Indices in Python
  9. Python Streams vs Unix Pipes
  10. 8 Queens Puzzle
  11. Easy as Py
  12. Sausages, sausages, sausages - slice, slice, slice
  13. Sledgehammers vs Nut Crackers
  14. Why zip when you can map?
  15. Find the average of a collection of tuples or dicts using Python
  16. Group When
  17. You wait all day for a bus…
  18. Python’s lesser known loop control
  19. Set.insert or set.add?
  20. Hiding iterator boilerplate behind a Boost facade
  21. Binary search revisited
  22. Power programming. What makes a language powerful? The programmer!
  23. Python, Surprise me!
  24. Next permutation: When C++ gets it right. An investigation into a classic algorithm for generating the distinct permutations of a sequence in lexicographical order.
  25. 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.
  26. A useful octal escape sequence
  27. Converting integer literals in C++ and Python
  28. Inner, Outer, Shake it all abouter. Encapsulation is about allocating responsibility and easing utility rather than protecting data.
  29. Blackmail made easy using Python counters. A programming puzzle and a discussion of Python's evolution.
  30. Undogfooding
  31. Tony Hoare’s vision, car crashes, and Alan Turing. The highs and lows of Europython 2009. A personal review.
  32. Partitioning with Python
  33. Run-length encoding in Python
  34. DEFLATE: run-length encoding, but better. An investigation into the extended run-length encoder at the heart of the Zlib compression library.
  35. Review: Expert Python Programming
  36. 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.
  37. 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.
  38. Ordered sublists. A brute force approach. A brute force solution to the longest increasing subsequence problem.
  39. Maximum of an empty sequence?
  40. Python was named after a comedy troupe. This note discusses what makes a good name for a computer language.
  41. Could a Python eat an elephant?
  42. Seamless sequence output in Python 3.0
  43. Perl 6, Python 3
  44. Steganography made simple
  45. Books, blogs, comments and code samples
  46. 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.
  47. Removing duplicates using itertools.groupby. An interpreted Python session showing itertools in action.
  48. 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.
  49. Syntactic Sugar
  50. Entertaining Documentation
  51. Me, Myself and OpenID. Setting up a personal OpenID server using phpMyID
  52. Running Sums in Python. A Python program to generate the running sum of a series.
  53. Eurovision 2008 charts
  54. Scatter pictures with Google Charts
  55. Takewhile drops one
  56. 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.
  57. White black knight then black white knight. Yet more on drawing chessboards
  58. Drawing Chess Positions. A follow-up article on scripting graphics.
  59. Drawing Chessboards. An article about creating graphics programmatically.
  60. Tracing function calls using Python decorators. Developing code to trace function calls using Python decorators.
  61. Sugar Pie. Approximating pi by scattering sugar.
  62. Top Ten Tags. Choosing the right algorithm to select the N largest items from a collection.
  63. Lexical Dispatch in Python. Dispatching to functions based on their names
  64. 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.
  65. From Hash Key to Haskell. A note on keys, characters, smileys, digraphs and Haskell.
  66. 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.
  67. 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?
  68. The Maximum Sum contiguous subsequence problem. A stream-based solution to a classic computer science problem.
  69. Elegance and Efficiency. Must elegant code be efficient? This article investigates.
  70. Zippy triples served with Python. How do you generate previous, this, next, triples from a collection. A stream-based solution in Python.
  71. RTM vs STW
  72. Big City Skyline Puzzle. Comments on a novel computer science puzzle. When machine resources are scarce, a compiled language offers precise control.
  73. Paralipsis
  74. PyCon UK: statistics, pictures and perennial problems
  75. Pitching Python in three syllables
  76. The Granny—Stroustrup Scale
  77. 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?
  78. Shameful Names
  79. Space sensitive programming
  80. The Third Rule of Program Optimisation
  81. Why Python programmers should learn Python
  82. Source open, problem closed. An example of the open source advantage.
  83. Evolving Python in and for the real world
  84. Introducing Java
  85. Perlish Wisdom
  86. PyCon UK
  87. The Trouble with Version Numbers
  88. High altitude programming
  89. Python keyword workaround
  90. Charming Python
  91. Shells, Logs and Pipes
  92. Test driven development in Python
  93. Mixing Python and C++
  94. Release then Test
  96. Code completion for dynamic languages
  97. Casualties in the great computer shootout. An investigation into various dimensions of some speed benchmark programs.
  98. Retro-fitting coding standards
  99. Code Craft
  100. Narrow Python
  101. Trac — not just a pretty interface
  102. Permission and Forgiveness
  103. Spam, Typo, Subversion Logs
  104. Joined Output and the Fencepost Problem. Items and the spaces between them: some notes on the fencepost problem and joining up strings.
  105. Computer Language Complexity
  106. Look and Say Numbers
  107. Browsing Python Documentation using the Python Sidebar
  108. From __future__ import braces
  109. Python 2.5
  110. String literals and regular expressions. An article about string literals, escape sequences, regular expressions, and the problems encountered when mixing these together.
  111. Parsing C++
  112. Py2exe
  113. Are List Comprehensions the Wrong Way Round?
  114. Message to Self. What’s this?
  115. Octal Literals
  116. A Subversion Pre-Commit Hook. How to install and test a simple Subversion pre-commit hook script.
  117. Readable Code
  118. A Python syntax highlighter
  119. Generating solutions to the 8 Queens Puzzle
  120. My (Test) First Ruby Program
  121. Posting from the command line using mtsend
  122. Metaprogramming is Your Friend. An investigation into metaprogramming techniques used by lazy C, C++, Lisp and Python programmers.
  123. Brackets Off! Thoughts on operator precedence.