/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

alexwlchan.net
| | blog.kgriffs.com

Implementing Python's magic string methods is tricky when it comes to Unicode characters and Py3K compatibility. I recently came across this problem in OpenStack, and wanted to share the strategy we are using to work around the issue.
2.3 parsecs

Travel
| |
| | antzucaro.com

I maintain a rendering system that uses the Mako templating language. The other day I received a pull request that looked innocent at a glance, but blew up with an ASCII decoding error during testing. Side note: Mako has a requirement for all input characters to be ASCII? That doesn't seem right - it's probably my code, or that I'm on an old version of Python. I'll have to investigate further.
1.7 parsecs

Travel
| |
| | til.simonwillison.net

I figured out how to run a subprocess with a time limit for datasette-ripgrep , using the asyncio.create_subprocess_exec() method. The pattern looks like this:
2.5 parsecs

Travel
| |
| | nickdrozd.github.io

Multiplication is repeated addition: 2 * 5 is defined as 2 + 2 + 2 + 2 + 2.
8.1 parsecs

Travel
|