[issue36048] Deprecate implicit truncating when convert Python numbers to C integers

2019-02-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently, C API functions that convert a Python number to a C integer like PyLong_AsLong() and argument parsing functions like PyArg_ParseTuple() with integer converting format units like 'i' use the __int__() special method for converting objects which

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @eryk, @vstinner and @steve, I think I could not work on this issue today, but will continue to fix it asap (tomorrow or on this evening). -- ___ Python tracker ___

[issue36030] add internal API function to create tuple without items array initialization

2019-02-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Zeroing memory is usually not expensive relative to the cost of filling it in. Also, the timing loop is unrealistic. We mostly care about small tuples. For long term maintenance of the project, I recommend filling the code with these unsafe variants

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers

2019-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +11977 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue33039] int() and math.trunc don't accept objects that only define __index__

2019-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue33039. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mai

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue33039. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36045] builtins.help function is not much help with async functions

2019-02-19 Thread Dan Rose
Dan Rose added the comment: Thanks for the suggestion, Raymond. I was toying with the idea of a PR, but wasn’t sure what the resolution should be, and it’s a rather subtle decision for my first contribution. It seems to me that this might be an oversight in PEP-0484, and the purest resolutio

[issue36045] builtins.help function is not much help with async functions

2019-02-19 Thread Dan Rose
Dan Rose added the comment: Note to future self: whatever solution should also play nice with functools.partial -- ___ Python tracker ___

[issue36047] socket file handle does not support stream write

2019-02-19 Thread Windson Yang
Windson Yang added the comment: >From the docs >https://docs.python.org/3/library/socket.html#socket.socket.makefile, the >default mode for makefile() is 'r' (only readable). In your example, just use >S = s.makefile(mode='w') instead. -- nosy: +Windson Yang ___

<    1   2   3