/explore
|
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. |
|
| | | | | ||
| | | | |
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. |
|
| | | | | ||
| | | | |
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: |
|
| | | | | ||
| | | | |
nickdrozd.github.io
Multiplication is repeated addition: 2 * 5 is defined as 2 + 2 + 2 + 2 + 2. |
|
| | | |||