Articles tagged Python

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