[issue30999] statistics module: add "key" keyword argument to median, mode, ...

2018-10-17 Thread Michal Nowikowski
Michal Nowikowski added the comment: What is the progress of this issue? I'm also interested in this feature. I expected that these functions will behave as built-in min and max. They have key argument, see here: https://docs.python.org/3/library/functions.html#max -- nosy: +godfryd

[issue14570] Document json sort_keys parameter properly

2012-04-30 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: Attached a patch. To preserve current order of arguments in dumps/dump functions sort_keys argument has been added to the end of arguments just before **kw. -- keywords: +patch Added file: http://bugs.python.org/file25427/json-sort

[issue14427] urllib.request.Request get_header and header_items not documented

2012-04-28 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: Attached a patch that adds description of get_header and header_items methods in Doc/library/urllib.request.rst. -- keywords: +patch nosy: +godfryd Added file: http://bugs.python.org/file25391/doc-urlib-request.patch

[issue13050] RLock support the context manager protocol but this is not documented

2012-04-28 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: It looks that it is already documented by 76228:2040842626ba changeset. The bug can be closed. -- nosy: +godfryd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13050

[issue14688] Typos in sorting.rst

2012-04-28 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: The changes looks ok. -- nosy: +godfryd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14688

[issue14570] Document json sort_keys parameter properly

2012-04-28 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: In json module there are dump/dumps methods which internally instantiate encoder class JSONEncoder (or some other user-defined encoder clas). They look as follows: json.dump(obj, fp, skipkeys=False, ensure_ascii=True

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-03-02 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: Improved the patch: - moved code example up, just below S_* functions list -- Added file: http://bugs.python.org/file20973/documented-os_chflags-flags-v2.diff ___ Python tracker rep

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-02-11 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: Is this patch ok? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10999 ___ ___ Python

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-01-27 Thread Michal Nowikowski
Changes by Michal Nowikowski godf...@gmail.com: -- nosy: +godfryd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10999 ___ ___ Python-bugs-list

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-01-27 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: I have prepared a patch that: - documents flags for os.chflags function in stat module - adds links for these flags os module to stat module. -- components: +None keywords: +patch Added file: http://bugs.python.org/file20555

[issue10960] os.stat() does not mention that it follow symlinks by default

2011-01-23 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: The patch v2: - in description of os.stat function added information about following symlinks, - made list of returned attributes by os.stat function more readable, - fixed links to os.stat function in whole document. -- Added file