Articles tagged Python

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