February 2021

green python two

☑ Python 2to3: What’s New in 3.2

This is part 3 of the “Python 2to3” series which started with Python 2to3: What’s New in 3.0.

Another installment in my look at all the new features added to Python in each 3.x release, this one covering 3.2. There’s a lot covered including the argparse module, support for futures, changes to the GIL implementation, SNI support in SSL/TLS, and much more besides. This is my longest article ever by far! If you’re puzzled why I’m looking at releases that are years old, check out the first post in the series.

Read article →

7 Feb 2021 at 1:08PM in Software
 |   | 
Photo by David Clode on Unsplash
 | 

January 2021

green python two

☑ Python 2to3: What’s New in 3.1

This is part 2 of the “Python 2to3” series which started with Python 2to3: What’s New in 3.0.

This article continues to series looking at features added in each release of Python 3.x, with this one covering the move from 3.0 to 3.1. It includes the new contains OrderedDict and Counter, making modules executable as scripts, and marking unit tests as known failures. If you’re puzzled why I’m looking at releases that are years old, check out the first post in the series.

Read article →

31 Jan 2021 at 8:45PM in Software
 |   | 
Photo by David Clode on Unsplash
 | 
green python two

☑ Python 2to3: What’s New in 3.0

This is part 1 of the “Python 2to3” series.

I was slow to make the transition from Python 2 to 3 in the first place, and I never felt like I kept up properly with the new features. So I’m going to aim to do a series of articles looking at a different Python version in each and go through the new features added and catch myself up properly. This one addresses features added in Python 3.0 beyond those already in 2.6, including Unicode by default, type annotations, and exception chaining.

Read article →

21 Jan 2021 at 9:21PM in Software
 |   | 
Photo by David Clode on Unsplash
 | 

July 2016

python code

☑ The State of Python Coroutines: Python 3.5

This is part 4 of the “State of Python Coroutines” series which started with The State of Python Coroutines: yield from.

I recently spotted that Python 3.5 has added yet more features to make coroutines more straightforward to implement and use. Since I’m well behind the curve I thought I’d bring myself back up to date over a series of blog posts, each going over some functionality added in successive Python versions — this one covers additional syntax that was added in Python 3.5.

Read article →

13 Jul 2016 at 7:00PM in Software
 |   | 
Photo by Andy Pearce
 | 
python code

☑ The State of Python Coroutines: asyncio - Callbacks vs. Coroutines

This is part 3 of the “State of Python Coroutines” series which started with The State of Python Coroutines: yield from.

I recently spotted that Python 3.5 has added yet more features to make coroutines more straightforward to implement and use. Since I’m well behind the curve I thought I’d bring myself back up to date over a series of blog posts, each going over some functionality added in successive Python versions — this one covers more of the asyncio module that was added in Python 3.4.

Read article →

5 Jul 2016 at 7:45AM in Software
 |   | 
Photo by Andy Pearce
 | 

June 2016

python code

☑ The State of Python Coroutines: Introducing asyncio

This is part 2 of the “State of Python Coroutines” series which started with The State of Python Coroutines: yield from.

I recently spotted that Python 3.5 has added yet more features to make coroutines more straightforward to implement and use. Since I’m well behind the curve I thought I’d bring myself back up to date over a series of blog posts, each going over some functionality added in successive Python versions — this one covers parts of the asyncio module that was added in Python 3.4.

Read article →

16 Jun 2016 at 8:29AM in Software
 |   | 
Photo by Andy Pearce
 | 
python code

☑ The State of Python Coroutines: yield from

This is part 1 of the “State of Python Coroutines” series.

I recently spotted that Python 3.5 has added yet more features to make coroutines more straightforward to implement and use. Since I’m well behind the curve I thought I’d bring myself back up to date over a series of blog posts, each going over some functionality added in successive Python versions — this one covers the facilities up to and including the yield from syntax added in Python 3.3.

Read article →

10 Jun 2016 at 7:58AM in Software
 |   | 
Photo by Andy Pearce
 | 

July 2015

broken watches

☑ Time zones and cron

Time zones can be tricky beasts, particularly where daylight savings time is concerned. This post discusses issues around apply them to something like the ubiquitous Unix cron daemon.

Read article →

21 Jul 2015 at 7:09AM in Software
 |   |   | 

July 2013

chains padlock

☑ Passwords: You’re doing it wrong

There are few technical topics about which there’s more FUD than picking a strong password.

Read article →

11 Jul 2013 at 3:55PM in Software
 |   |   | 

June 2013

beach karate

☑ Jinja Ninja

I recently had to do a few not-quite-trivial things with the Jinja2 templating engine, and the more I use it the more I like it.

Read article →

1 Jun 2013 at 6:25PM in Software
 |   |   | 

Page 1 of 2   |   Page 2 →