Of course I have a backup!

Random blobs of wisdom about software development

Piptips

Friday, November 04, 2016

The package manager for python, pip has some shortcomings, and we will look at solving the biggest two: not being able to record only the top level dependencies in a project (the dependencies of the dependencies also get lumped together), and finding a way to record only dev dependencies.

(Continued)

Tagged as: | Comments (0)

Specifying the terminator in dictConfig

Saturday, July 30, 2016

Python added logging.config.dictConfig() in 3.2 (2011), which is the "new" recommended way of configuring loggers, instead of the old .cfg format. What also came with 3.2 was a terminator attribute on handlers, which allows you to specify the line ending character for log statements, however, terminator is not configurable in the constructor, which makes it seemingly impossible to configure through dictConfig().

(Continued)

Tagged as: | Comments (0)