Archive | python RSS feed for this section

Mastering Python

Mastering Python is finally out and available in your local book store. If you are an experienced Python developer, this might be the book for you. It will teach you the useful new features in Python 3 (currently up to 3.5) and show you a lot of Python tricks that you may not have seen […]

2 Comments Continue Reading →

Reading MT940 files using Python

Some time ago I wrote a library to read MT940 files with Python. While there are multiple libraries available for this target, none of the others really work properly and/or support all variants of the format. The MT940 library I wrote is slightly different, it’s designed to be able to parse any MT940 file, regardless […]

3 Comments Continue Reading →

Windows version of os.walk with long path (255 characters) support

There are these times that you really have to use Windows and in those cases some issues like the 255 path limit tend to occur with network mounts. Luckily, this is fairly easy to solve with a small Python snippet: import os UNUSED_DRIVE_LETTER = 'x:' def windows_walk(top, topdown=True, onerror=None, followlinks=False): for path, dirs, files in […]

1 Comment Continue Reading →