[issue40934] Default RLock does not work well for Manager Condition

2020-06-09 Thread Misko Dzamba
New submission from Misko Dzamba : I get unexpected behavior from Condition when using a Manager. I expected that if I call Condition.acquire() in one thread (or process) and then call .acquire() if another thread (or process) without first releasing the condition that it should block. Howeve

[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

2020-06-09 Thread Raymond Hettinger
New submission from Raymond Hettinger : This code looks correct to me. For condition variables, the requirement is that the underlying lock be held when notify() is called. The not_full and not_empty condition variables share the same underlying lock, so it is sufficient that not_empty.noti

[issue40882] memory leak in multiprocessing.shared_memory.SharedMemory in Windows

2020-06-09 Thread Eryk Sun
Change by Eryk Sun : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2020-06-09 Thread miss-islington
miss-islington added the comment: New changeset 7aed0524d4129766a6032326949ef7f91f6f6dfc by Éric Araujo in branch 'master': bpo-34003: Re-add versionchanged entry in csv docs (GH-20657) https://github.com/python/cpython/commit/7aed0524d4129766a6032326949ef7f91f6f6dfc -- nosy: +miss-i

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2020-06-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +19968 pull_request: https://github.com/python/cpython/pull/20770 ___ Python tracker ___ __

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2020-06-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +19969 pull_request: https://github.com/python/cpython/pull/20771 ___ Python tracker ___ __

[issue29242] Crash on GC when compiling PyPy

2020-06-09 Thread Ma Lin
Ma Lin added the comment: I suggest not to close this issue, this is an opportunity to investigate whether Python3 has this problem as well. -- nosy: +Ma Lin ___ Python tracker _

[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

2020-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also note that threading.Condition.notify() would raise a RuntimeError if the underlying lock had not been acquired. Have you observed any behavior to the contrary? -- ___ Python tracker

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2020-06-09 Thread miss-islington
miss-islington added the comment: New changeset 73b728a779aa7d6d8f088c4b21447bba4bf3a351 by Miss Islington (bot) in branch '3.9': [3.9] bpo-34003: Re-add versionchanged entry in csv docs (GH-20657) (GH-20770) https://github.com/python/cpython/commit/73b728a779aa7d6d8f088c4b21447bba4bf3a351

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2020-06-09 Thread miss-islington
miss-islington added the comment: New changeset 663836e1179ea79eac12e55670af7e89a531a060 by Miss Islington (bot) in branch '3.8': [3.8] bpo-34003: Re-add versionchanged entry in csv docs (GH-20657) (GH-20771) https://github.com/python/cpython/commit/663836e1179ea79eac12e55670af7e89a531a060

[issue40915] multiple problems with mmap.resize() in Windows

2020-06-09 Thread Eryk Sun
Eryk Sun added the comment: For a concrete example, here's a rewrite of the Windows implementation that incorporates the suggested changes. #include #ifdef MS_WINDOWS /* a named file mapping that's open more than once can't be resized */ /* this check could be moved into is

[issue40935] Links to Python3 docs for some libs return 404

2020-06-09 Thread Edison Abahurire
New submission from Edison Abahurire : These links in the deprecation warning on some Python 2 stdlib libraries documentation pages pointing to Python 3 alternatives return 404s. The link behind the words "Python documentation for the current stable release." Examples: https://docs.python.or

[issue40915] multiple problems with mmap.resize() in Windows

2020-06-09 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg371153 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40890] Dict views should be introspectable

2020-06-09 Thread Inada Naoki
Inada Naoki added the comment: +1. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue40915] multiple problems with mmap.resize() in Windows

2020-06-09 Thread Eryk Sun
Eryk Sun added the comment: For a concrete example, here's a rewrite of the Windows implementation that incorporates the suggested changes. #include #ifdef MS_WINDOWS /* a named file mapping that's open more than once can't be resized */ /* this check could be moved into is_

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-06-09 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset bae872f1fe9b3a0d3e3b8800a2ac8d6b440d6e4d by Joannah Nanjekye in branch 'master': bpo-32604: Recommit "bpo-32604: PEP 554 for use in test suite (GH-19985)" (GH-20611) https://github.com/python/cpython/commit/bae872f1fe9b3a0d3e3b8800a2ac8d6b440

[issue40900] uuid module build fix on FreeBSD proposal

2020-06-09 Thread Kubilay Kocak
Kubilay Kocak added the comment: Another example, this time for lzma: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209355 -- ___ Python tracker ___ _

[issue40888] Add close method to queue

2020-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: This can be re-opened if the discussion on the list warrants it. -- nosy: +rhettinger resolution: -> later stage: -> resolved status: open -> closed ___ Python tracker

[issue37224] [subinterpreters] test__xxsubinterpreters fails randomly

2020-06-09 Thread Kubilay Kocak
Kubilay Kocak added the comment: Failure on AMD64 FreeBSD Shared 3.x (full log attached): == FAIL: test_subinterpreter (test.test__xxsubinterpreters.IsRunningTests) -

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-09 Thread Inada Naoki
Change by Inada Naoki : -- nosy: -inada.naoki resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-09 Thread Inada Naoki
Inada Naoki added the comment: New changeset 07d81128124f2b574808e33267c38b104b42ae2a by Dennis Sweeney in branch 'master': bpo-40889: Optimize dict.items() ^ dict.items() (GH-20718) https://github.com/python/cpython/commit/07d81128124f2b574808e33267c38b104b42ae2a -- nosy: +inada.na

[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

2020-06-09 Thread r n
r n added the comment: Thanks for the response. However, if you see, every condition object has their own queue of waiters in self._waiters, that get notified during notify(), which are different for not_empty and not_full. I see a hang very very rarely, like 1/25 times, in my program, which

[issue40869] errno missing descriptions

2020-06-09 Thread Arpit Mishra
Arpit Mishra added the comment: Hello, I am new to this platform and this would be my first opportunity. Please let me know how can I contribute to this. Thank you. -- nosy: +Arpit Mishra ___ Python tracker __

[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

2020-06-09 Thread r n
r n added the comment: Sorry, please ignore my previous comment, I can see that the issue is not in the queue, but probably be somewhere in my setup. I'll close this bug therefore. Thanks again for the clarification. -- resolution: -> not a bug stage: -> resolved status: open -> cl

[issue17013] Allow waiting on a mock

2020-06-09 Thread Ilya Kulakov
Ilya Kulakov added the comment: Correct, it is not backward compatible in that respect. I did not check thoroughly, but a quick lookup shown no such use among public repos on GitHub. I can instead add the called_event property and make the CallEvent “public”. Best Regards Ilya Kulakov > On J

[issue40860] Exception in multiprocessing/context.py under load

2020-06-09 Thread Arkady
Arkady added the comment: Update. I have reproduced the problem in the code not calling Process.join() at all. It require more time and more load, but eventually Process.start() crashes. Posted a question on https://stackoverflow.com/questions/62276345/call-to-pythons-mutliprocessing-process

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't like a tendency of optimizing very uncommon cases. We can optimize every operation for specific types by inlining the code. But it increases maintaining cost and can have negative net effect on performance: because increasing the code size and addi

[issue40860] Exception in multiprocessing/context.py under load

2020-06-09 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

<    1   2