[issue30114] json module: it is not possible to override 'true', 'false' values during encoding bool

2017-04-20 Thread Marian Horban
New submission from Marian Horban: It is not possible to override 'true', 'false' values during encoding bool. For example if I want to dump dict like: {"key": True} and result must be not {"key": true} but let's say {"key": "TRUE"} It is

[issue30111] json module: encoder optimization

2017-04-20 Thread Marian Horban
New submission from Marian Horban: It is possible to improve performance of json module encoder. Since access to local variables is faster than to globals/builtins I propose to use locals instead of globals. Small test of such improvement: >>> import timeit >>> def

[issue24884] Add method reopenFile() in WatchedFileHandler class

2015-08-18 Thread Marian Horban
New submission from Marian Horban: Method WatchedFileHandler::emit() makes 2 things: 1. reopens log file, 2. emits record. Sometimes user wants to reopen file immediately after some action without emitting. Code that reopens file must be moved to separate method to avoid copy-pasting code