[issue26082] functools.lru_cache user specified cachedict support

2016-01-11 Thread Chiu-Hsiang Hsu
New submission from Chiu-Hsiang Hsu: Currently, lru_cache will automatically construct a Python dictionary in the function as cachedict. IMHO, it will be much more flexible to let users specified their cachedict, so they can use any kind of dict-like calss as their cachedict. Thus, users can

[issue25804] Make Profile.print_stats support sorting by mutiple values

2015-12-05 Thread Chiu-Hsiang Hsu
Chiu-Hsiang Hsu added the comment: Attached refactored patch with tests. -- Added file: http://bugs.python.org/file41249/print_stats_with_test.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue20210] Provide configure options to enable/disable Python modules and extensions

2015-12-05 Thread Chiu-Hsiang Hsu
Changes by Chiu-Hsiang Hsu <wdv47...@gmail.com>: -- nosy: +wdv4758h ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20210> ___ _

[issue25804] Make Profile.print_stats support sorting by mutiple values

2015-12-05 Thread Chiu-Hsiang Hsu
New submission from Chiu-Hsiang Hsu: Currently, the result of profile.run can not easily sort by mutiple values with "sort" keyword argument. Following code will work with this patch. >>> import cProfile >>> cProfile.run('42**42', sort=('tottime', 'stdname'))

[issue24774] inconsistency in http.server.test

2015-08-02 Thread Chiu-Hsiang Hsu
Chiu-Hsiang Hsu added the comment: I'm not quite sure we should put argument parsing back into the test() function or just fix docstring. It already expose port and bind through function arguments. It looks wierd to me to have function arguments CLI arguments modifying the same variable