[issue33316] Windows: PyThread_release_lock always fails

2018-05-21 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > So, nothing more to do here. In case that was cryptic, it means: the PR can be acted upon, no other changes are needed. -- ___ Python tracker

[issue18307] Relative path in co_filename for zipped modules

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In year 2018 you have to create a pull request on GitHub. See https://devguide.python.org/. -- nosy: +serhiy.storchaka ___ Python tracker

[issue33565] strange tracemalloc results

2018-05-21 Thread INADA Naoki
Change by INADA Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
miss-islington added the comment: New changeset 0c1e7d8122808d42f9fdb7019061dc2e78a78efa by Miss Islington (bot) in branch '3.6': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-21 Thread Eric Snow
Eric Snow added the comment: Under Py_LIMITED_API: typedef struct _is PyInterpreterState; Also, the actual removal of the "modules" field was reverted. The field is still there until I get back to fixing https://github.com/python/cpython/pull/3606.

[issue33595] FIx references to lambda "arguments"

2018-05-21 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6681 stage: -> patch review ___ Python tracker ___

[issue33595] FIx references to lambda "arguments"

2018-05-21 Thread Andrés Delfino
New submission from Andrés Delfino : There a couple of references to lambda parameters mentioned as arguments. I'm proposing fixing them. -- assignee: docs@python components: Documentation messages: 317255 nosy: adelfino, docs@python priority: normal severity:

[issue32092] mock.patch with autospec does not consume self / cls argument

2018-05-21 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +michael.foord versions: -Python 3.5, Python 3.6 ___ Python tracker ___

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-21 Thread Jason Fried
Jason Fried added the comment: For loops not supporting this throwing NotImplmentedError from the method to enable reentrancy seems appropriate. "You should convert all your stack to async functions..." That may not be practical for large code bases in transition to

[issue18307] Relative path in co_filename for zipped modules

2018-05-21 Thread Vitaly Murashev
Vitaly Murashev added the comment: Guys, a couple questions ... I want to suggest new patches for python3.7 and python2.7 with regression tests included What is proper way to do it now, in year 2018 ? May I do it on github.com ? Should I submit new issue for that there

[issue33594] add deprecation since 3.5 for a few methods of inspect.

2018-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +6680 stage: -> patch review ___ Python tracker ___

[issue33594] add deprecation since 3.5 for a few methods of inspect.

2018-05-21 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : inspect's getargspec, as well as Signature's from_function, and from_builtin are deprecated. They all emits DeprecationWarning but: The deprecation warning does not say since which version since are deprecated. For the

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2018-05-21 Thread Josh Rosenberg
Change by Josh Rosenberg : -- title: readline() + seek() on io.EncodedFile breaks next readline() -> readline() + seek() on codecs.EncodedFile breaks next readline() ___ Python tracker

[issue33590] sched.enter priority has no impact on execution

2018-05-21 Thread R. David Murray
R. David Murray added the comment: I think Ronald is correct. The priority argument for enter would apply if you called enter twice with two different delays, but they happen to end up pointing to the same moment in time from the scheduler's point of view. How would

[issue33593] Support heapq on typed arrays?

2018-05-21 Thread Diego Argueta
New submission from Diego Argueta : It'd be really great if we could have support for using the `heapq` module on typed arrays from `array`. For example: ``` import array import heapq import random a = array.array('I', (random.randrange(10) for _ in range(10)))

[issue33590] sched.enter priority has no impact on execution

2018-05-21 Thread sahilmn
sahilmn added the comment: The task schedule is executed when `s.run()` is called. There should be a *delay = 5* from the time the scheduling statement is executed. If your claim is true, the priority argument is useless since it has no impact on the execution

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list

[issue33573] statistics.median does not work with ordinal scale

2018-05-21 Thread W deW
W deW added the comment: Changing the documentation in tis way seems to me an excellent and easy way to solve the issue. -- ___ Python tracker

[issue33533] Provide an async-generator version of as_completed

2018-05-21 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Another option occurred to me: as_completed could return an object that implements both synchronous and asynchronous iteration protocol: class as_completed: def __init__(fs, *, loop=None, timeout=None): self.__fs = fs

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread R. David Murray
R. David Murray added the comment: json keys *are* strings, so the fact that we support other object types as keys and coerce them to strings is an "extra feature" of python, and is actually a somewhat questionable feature. The reproducible use case is solved by the

[issue33361] readline() + seek() on io.EncodedFile breaks next readline()

2018-05-21 Thread Diego Argueta
Diego Argueta added the comment: Update: Tested this on Python 3.5.4, 3.4.8, and 3.7.0b3 on OSX 10.13.4. They also exhibit the bug. Updating the ticket accordingly. -- versions: +Python 3.4, Python 3.5, Python 3.7 ___

[issue33592] Document contextvars C API

2018-05-21 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- keywords: +patch pull_requests: +6679 stage: -> patch review ___ Python tracker ___

[issue33592] Document contextvars C API

2018-05-21 Thread Elvis Pranskevichus
New submission from Elvis Pranskevichus : The C API for PEP 567 is currently missing. -- assignee: docs@python components: Documentation messages: 317244 nosy: Elvis.Pranskevichus, docs@python, yselivanov priority: normal severity: normal status: open title: Document

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread Aaron Hall
Aaron Hall added the comment: >From a design standpoint, I'm fairly certain the sort_keys argument was >created due to Python's dicts being arbitrarily ordered. Coercing to strings before sorting is unsatisfactory because, e.g. numbers sort lexicographically instead of

[issue33531] test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed failed sendfile tests on Windows (at least I hope so). -- ___ Python tracker ___

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
Change by Robert : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread R. David Murray
R. David Murray added the comment: I'm fairly certain (though not 100%, obviously :) that coercing first and then sorting would be accepted if someone wants to create a PR for this. -- nosy: +r.david.murray versions: +Python 3.8

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread Christian Tanzer
Christian Tanzer added the comment: Aaron Hall wrote at Sun, 20 May 2018 16:49:06 +: > Now that dicts are sortable, does that make the sort_keys argument redundant? > > Should this bug be changed to "won't fix"? https://bugs.python.org/issue25457#msg317216 is as good

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 2b4ed5da1d599190c3be0084ee235b0a8f0a75ea by INADA Naoki (Miss Islington (bot)) in branch '3.7': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: I grepped quickly and I can't find existing usage of anonymous union/struct. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: Oh,,, while even gcc 4.0 supported it, it is language spec from C11, not C99. -- ___ Python tracker

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm fine with an anonymous struct. Is it standard C these days? -- ___ Python tracker ___

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: Make sense. Then, what about using anonymous struct to make GC code more readable? typedef union _gc_head { struct { union _gc_head *gc_next; union _gc_head *gc_prev; Py_ssize_t gc_refs; -} gc; +};

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
miss-islington added the comment: New changeset 3ccc31386da5f35f83756a265429831d650db731 by Miss Islington (bot) in branch '2.7': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

[issue33581] Document "optional components that are commonly included in Python distributions."

2018-05-21 Thread R. David Murray
R. David Murray added the comment: As I understand it, we don't control or know what that list is, it depends on each distribution's policies. -- nosy: +r.david.murray ___ Python tracker

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
Change by Robert : -- keywords: +patch pull_requests: +6678 stage: -> patch review ___ Python tracker ___

[issue33586] 2.7.15 missing release notes on download page

2018-05-21 Thread Ned Deily
Change by Ned Deily : -- assignee: docs@python -> nosy: +benjamin.peterson ___ Python tracker ___

[issue33542] _ipconfig_getnode incorrectly selects a DUID as a MAC address

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Zvi! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker

[issue33542] _ipconfig_getnode incorrectly selects a DUID as a MAC address

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9e2fd75ccbc6e9a5221cf3525e39e9d042d843f by Serhiy Storchaka in branch '3.6': [3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014)

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
New submission from Robert : Passing a non-str path which fulfills the new fspath-protcol (like a Path() object) to CDLL (or WinDLL, PyDLL, ...) a exception is returned. -- components: ctypes messages: 317230 nosy: mrh1997 priority: normal severity: normal status: open

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: high -> normal versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I propose an alternate PR 7029 which also adds other improvements to the documentation of mappings and sequences C API. -- ___ Python tracker

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6677 ___ Python tracker ___

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Short of adding a `tp_alignment`, though, I think we should not make things harder for the common cases. This means we should probably keep the "double" member to ensure that extension types that have a "double" field in their object struct

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 7208bfb64b74f31f9704be3f01f26861c9cf092b by Andrew Svetlov in branch '3.6': [3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7025)

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: >From the linked changeset message: > unless anyone knows of a platform where ssize_t is 4 bytes? That's most 32-bit platforms, right? Basically, size_t and ssize_t are pointer-sized except on some rare architectures. > A more correct

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6676 ___ Python tracker ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6675 ___ Python tracker ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6674 ___ Python tracker ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 1179f4b40f375af5c59cd4b6be9cc313fa0e1a37 by INADA Naoki in branch 'master': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021) https://github.com/python/cpython/commit/1179f4b40f375af5c59cd4b6be9cc313fa0e1a37

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Raising `InvalidStateError` sounds perfect. Would you make a pull request? -- ___ Python tracker

[issue33544] Asyncio Event.wait() is a hold over from before awaitable, and should be awaitable

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33546] asyncio.Condition should become awaitable in 3.9

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: No, condition variables don't work this way. The proper code looks like: async with cond: while not : await cond.wait() It cannot be collapsed to just `await cond`. -- resolution: -> rejected stage: ->

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +6673 ___ Python tracker ___ ___

[issue23749] asyncio missing wrap_socket (starttls)

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is the issue done? -- ___ Python tracker ___

[issue33037] Skip sending/receiving after SSL transport closing

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30618] readlink for pathlib paths

2018-05-21 Thread Dror Levin
Change by Dror Levin : -- nosy: +spatz ___ Python tracker ___ ___ Python-bugs-list

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, no. The feature was requested many times but was constantly rejected. By this, you are adding a BLOCKING call to your async function. At least it leads to log warning about too long callback execution. Moreover, I suspect that

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b8b800090ff0954117a26ffcb501307823f3d33a by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7022)

[issue32463] problems with shutil.py and os.get_terminal_size

2018-05-21 Thread Nick McElwaine
Nick McElwaine added the comment: Thankyou for clearing that up! On 18 May 2018 at 13:05, Berker Peksag wrote: > > Berker Peksag added the comment: > > Thanks for the report. I agree with Eryk. os.get_terminal_size() is

[issue33590] sched.enter priority has no impact on execution

2018-05-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think there's a bug here: sched.enter schedules an event some time after the current time. The two calls to sched.enter are not at the same time, hence the priority is not used because the events are scheduled at different

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a84d0b361a26c05c6fadc6640591ec3feee5bfb5 by Andrew Svetlov (Vlad Starostin) in branch 'master': bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6672 ___ Python tracker ___

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread zachrahan
zachrahan added the comment: Well, "wontfix" would be appropriate in the context of deprecating the sort_keys option (over the course of however many releases) and documenting that the new procedure for getting JSON output in a specific order is to ensure that the input