Articles tagged Python

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