Articles tagged Python

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