[issue2315] TimedRotatingFileHandler does not account for daylight savings time

2008-03-17 Thread Per Cederqvist
New submission from Per Cederqvist [EMAIL PROTECTED]: If TimedRotatingFileHandler is instructed to roll over the log at midnight or on a certain weekday, it needs to consider when daylight savings time starts and ends. The current code just blindly adds self.interval to self.rolloverAt, totally

[issue2316] TimedRotatingFileHandler names files incorrectly if nothing is logged during an interval

2008-03-17 Thread Per Cederqvist
New submission from Per Cederqvist [EMAIL PROTECTED]: If nothing is logged during an interval, the TimedRotatingFileHandler will give bad names to future log files. The enclosed example program sets up a logger that rotates the log every second. It then logs a few messages with sleep of 1, 2

[issue2316] TimedRotatingFileHandler names files incorrectly if nothing is logged during an interval

2008-03-17 Thread Per Cederqvist
Per Cederqvist [EMAIL PROTECTED] added the comment: The attached program will generate log messages with a timestamp that are logged into a file with an unexpected extension. To run: mkdir badlogdir python badlogger.py Running the program takes about 9 seconds. Added file: http

[issue2316] TimedRotatingFileHandler names files incorrectly if nothing is logged during an interval

2008-03-17 Thread Per Cederqvist
Changes by Per Cederqvist [EMAIL PROTECTED]: -- components: +Library (Lib) type: - behavior versions: +Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2316

[issue2317] TimedRotatingFileHandler logic for removing files wrong

2008-03-17 Thread Per Cederqvist
New submission from Per Cederqvist [EMAIL PROTECTED]: There are three issues with log file removal in the TimedRotatingFileHandler class: - Removal will stop working in the year 2100, as the code assumes that timestamps start with .20. - If you run an application with backupCount set

[issue2318] TimedRotatingFileHandler: rotate every month, or every year

2008-03-17 Thread Per Cederqvist
New submission from Per Cederqvist [EMAIL PROTECTED]: In my curent project, I would like to rotate log files on the 1st of every month. The TimedRotatingFileHandler class cannot do this, even though it tries to be very generic. I imagine that other projects would like to rotate the log file

[issue3810] os.chdir() et al: is the path str or bytes?

2008-09-08 Thread Per Cederqvist
New submission from Per Cederqvist [EMAIL PROTECTED]: The documentation at http://docs.python.org/dev/3.0/library/os.html#os.chdir doesn't specify if the path argument to os.chdir() should be a str or a bytes, or if maybe both are acceptable. This is true for most of the file-manipulating

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-24 Thread Per Cederqvist
Changes by Per Cederqvist ce...@lysator.liu.se: -- nosy: +ceder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12394 ___ ___ Python-bugs-list