[issue37750] PyBuffer_FromContiguous not documented

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37750] PyBuffer_FromContiguous not documented

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset c112faff158a05c1e71f9e1957364ed756efbcde by Stéphane Wirtel (Miss Islington (bot)) in branch '3.7': bpo-37750: Add doc of PyBuffer_FromContiguous (GH-15988) (GH-15991)

[issue33983] unify types for lib2to3.pytree.Base.children

2019-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Isn't children annotated as List in typeshed? -- ___ Python tracker ___ ___ Python-bugs-list

[issue38099] __dict__ attribute is incorrectly stated to be read-only

2019-09-11 Thread Reed
Reed added the comment: Thank you for the clarification. I didn't realize the section only referred to types, but it makes sense now that I read the documentation more carefully. The documentation is still incorrect for certain attributes (e.g. __bases__ and __name__) as they can be mutated.

[issue36270] DOC: Add link to sys.exc_info for "Reference Manual"

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset f79a022d762edc749d0fecdc50c567d2bb910c53 by Miss Islington (bot) in branch '3.8': bpo-36270: Doc: add link to traceback object reference (GH-13119) https://github.com/python/cpython/commit/f79a022d762edc749d0fecdc50c567d2bb910c53 --

[issue38109] Missing constants in Lib/stat.py

2019-09-11 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +pitrou, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38083] Minor improvements in asdl_c.py and Python-ast.c

2019-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree. The third item is actually a bug fix, but it is unlikely that such bug can be exposed in real code. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-11 Thread Samuel Freilich
Samuel Freilich added the comment: Sure, but the bug in error-handling should still be fixed. Currently, if _call_matcher returns an exception, that's ignored by assert_has_calls, and the error message generated as a result is extremely misleading! --

[issue30076] Opcode names BUILD_MAP_UNPACK_WITH_CALL and BUILD_TUPLE_UNPACK_WITH_CALL are too long

2019-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: So we'd be going with a naming convention where "VAR" corresponds to the star syntax, and whether it means packing or unpacking, or refers to arguments or parameters is context dependent? I could definitely support that, given that the ambiguity already

[issue38113] Remove statics from ast.c

2019-09-11 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26360] Deadlock in thread.join on Python 2.7/Mac OS X 10.9, 10.10

2019-09-11 Thread Kirill Smelkov
Kirill Smelkov added the comment: Maybe issue38106 related. -- nosy: +navytux ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2019-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +15624 pull_request: https://github.com/python/cpython/pull/15997 ___ Python tracker ___

[issue38122] AsyncMock force always creating an AsyncMock for child mocks

2019-09-11 Thread Lisa Roach
New submission from Lisa Roach : This idea has been brought up in person before and also discussed on AsyncTest: https://github.com/Martiusweb/asynctest/issues/100 It could be useful if someone has a lot of attributes that are also async that need to be mocked. It could probably be done

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2019-09-11 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset c9bc49c5f6e26a7c958307c2ac338951a7534d9a by T. Wouters (Christian Heimes) in branch 'master': bpo-34001: Fix test_ssl with LibreSSL (GH-13783) https://github.com/python/cpython/commit/c9bc49c5f6e26a7c958307c2ac338951a7534d9a -- nosy:

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-09-11 Thread Davin Potts
Davin Potts added the comment: Short responses to questions/comments from @bjs, followed by hopefully helpful further comments: > Are you supposed to ever use a raw SharedMemory buffer directly? Yes. > What atomicity guarantees are there for ShareableList operations and > read/write to

[issue36270] DOC: Add link to sys.exc_info for "Reference Manual"

2019-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +15627 pull_request: https://github.com/python/cpython/pull/16002 ___ Python tracker ___

[issue34634] New asyncio streams API

2019-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Merge StreamWriter and StreamReader into just asyncio.Stream ___ Python tracker

[issue36270] DOC: Add link to sys.exc_info for "Reference Manual"

2019-09-11 Thread Julien Palard
Julien Palard added the comment: New changeset 9936371af298d465095ae70bc9c2943b4b16eac4 by Julien Palard (Björn Meier) in branch 'master': bpo-36270: Doc: add link to traceback object reference (GH-13119) https://github.com/python/cpython/commit/9936371af298d465095ae70bc9c2943b4b16eac4

[issue36876] Global C variables are a problem.

2019-09-11 Thread Eric Snow
Eric Snow added the comment: New changeset ee536b2020b1f0baad1286dbd4345e13870324af by Eric Snow in branch 'master': bpo-36876: Add a tool that identifies unsupported global C variables. (#15877) https://github.com/python/cpython/commit/ee536b2020b1f0baad1286dbd4345e13870324af --

[issue37879] Segfaults in C heap type subclasses

2019-09-11 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +15629 pull_request: https://github.com/python/cpython/pull/16004 ___ Python tracker ___

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-11 Thread Samuel Freilich
Samuel Freilich added the comment: This is still not totally fixed. This solves the underlying error with method specs, but not the bug that was causing the error-swallowing in assert_has_calls:

[issue37645] Replace PyEval_GetFuncName/PyEval_GetFuncDesc

2019-09-11 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I left some comments on the PR. I don't see anything. Either I'm doing something wrong or GitHub is messed up. -- ___ Python tracker ___

[issue38120] DeprecationWarning in test_random due to invalid seed arguments

2019-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sure, I think these were not caught since deprecation warnings are not shown as part of CI as failure. I just caught them at the sprint running with -Wall. -- ___ Python tracker

[issue36274] http.client cannot send non-ASCII request lines

2019-09-11 Thread Tim Burke
Tim Burke added the comment: Fair enough. Seems kinda related to https://bugs.python.org/issue30458 -- looks like it was a fun one ;-) I think either approach would work for me; my existing work-around doesn't preclude either, particularly since I want it purely for testing purposes. For a

[issue37945] test_locale failing

2019-09-11 Thread Tim Lyons
Change by Tim Lyons : -- nosy: +guy.linton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34155] [CVE-2019-16056] email.utils.parseaddr mistakenly parse an email

2019-09-11 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +15632 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/16006 ___ Python tracker ___

[issue38124] off-by-one error in PyState_AddModule

2019-09-11 Thread Benjamin Peterson
Change by Benjamin Peterson : -- title: off-by-one error in PyState_GetModule -> off-by-one error in PyState_AddModule ___ Python tracker ___

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset 0b7f3706e6a4d72f7e9988cebc4826ad2c4c4753 by Miss Islington (bot) in branch '3.8': bpo-38117: Test with OpenSSL 1.1.1d (GH-15983) https://github.com/python/cpython/commit/0b7f3706e6a4d72f7e9988cebc4826ad2c4c4753 -- nosy:

[issue37698] Update doc of PyBuffer_ToContiguous

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution Christian ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38103] Duplicate label "examples" in the Docs

2019-09-11 Thread Ezio Melotti
Change by Ezio Melotti : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35795] test_pkgutil test_zipapp fail in AMD64 Windows7 SP1 3.x and AMD64 Windows7 SP1 3.7 buildbots

2019-09-11 Thread STINNER Victor
STINNER Victor added the comment: > Have we seen this recently? Should we just close this? I'm fine with closing an issue which was a failure on a buildbot which was not seen in the last 3 months. I close the issue as out of date. Moreover, since January, I enhanced regrtest to ensure that

[issue37750] PyBuffer_FromContiguous not documented

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 4cab7eb9e1f4afc44bac4889de034e031d462e7a by Stéphane Wirtel (Miss Islington (bot)) in branch '3.8': bpo-37750: Add doc of PyBuffer_FromContiguous (GH-15988) (GH-15990)

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-11 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +15623 pull_request: https://github.com/python/cpython/pull/15994 ___ Python tracker ___

[issue37698] Update doc of PyBuffer_ToContiguous

2019-09-11 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +15626 pull_request: https://github.com/python/cpython/pull/15999 ___ Python tracker ___

[issue37698] Update doc of PyBuffer_ToContiguous

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset c62da14776d12276ed8f6ecbc74c0db8243b4260 by Stéphane Wirtel (Miss Islington (bot)) in branch '3.7': bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15998)

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-09-11 Thread Davin Potts
Davin Potts added the comment: Apologies, one of the quotes in my previous response should have been attributed to @mental. I think @pierreglaser phrased it very nicely: > shared_memory is a low level python module. Precautions should be made when > handling concurrently the shared_memory

[issue34634] New asyncio streams API

2019-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes, please do -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-11 Thread Christian Heimes
Christian Heimes added the comment: Please try a new shell or refresh the PATH look cache with "hash -r". -- nosy: +christian.heimes ___ Python tracker ___

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It was a conscious decision over not to do the proposed change in the issue. There are other issues over signature difference during construction of mock and in the call_matcher over presence/absence of self. It needs a more careful fix.

[issue37645] Replace PyEval_GetFuncName/PyEval_GetFuncDesc

2019-09-11 Thread Petr Viktorin
Petr Viktorin added the comment: My bad, I didn't publish the comments. They should be there now. -- ___ Python tracker ___ ___

[issue38124] off-by-one error in PyState_GetModule

2019-09-11 Thread Benjamin Peterson
New submission from Benjamin Peterson : https://github.com/python/cpython/blob/3f4db4a0bab073b768fae958e93288bd5d24eadd/Python/pystate.c#L707 should be using > not >=. -- components: Interpreter Core messages: 352031 nosy: benjamin.peterson priority: normal severity: normal status:

[issue28724] Add method send_io, recv_io to the socket module.

2019-09-11 Thread STINNER Victor
STINNER Victor added the comment: Thanks Shinya Okano for the original patch. Well done Joannah! Thanks for your tenacity :-) This PR has 100 comments and 27 commits which shows the complexity of the feature. Honestly, I'm not 100% happy with current documentation, but I chose to merge the

[issue38122] AsyncMock force always creating an AsyncMock for child mocks

2019-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, is there an example of this use case. I went through the issue but have trouble understanding it since there are different suggestions. I guess child mock is always an AsyncMock irrespective of sync/async as I understand. We already had

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset d6ac67f48f5079efc3fa4be3316a9578edb56e0d by Stéphane Wirtel (Miss Islington (bot)) in branch '3.8': bpo-34001: Fix test_ssl with LibreSSL (GH-13783) (#15997) https://github.com/python/cpython/commit/d6ac67f48f5079efc3fa4be3316a9578edb56e0d

[issue12707] Deprecate addinfourl getters

2019-09-11 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +15628 pull_request: https://github.com/python/cpython/pull/16003 ___ Python tracker ___

[issue38116] Make select module PEP-384 compatible

2019-09-11 Thread Josh Rosenberg
Josh Rosenberg added the comment: Why do you describe these issues (this one, #38069, #38071-#38076, maybe more) as making the module PEP 384 compatible? There is no reason to make the built-in modules stick to the limited API, and it doesn't look like you're doing that in any event (among

[issue37967] Beta GPG signature check failing

2019-09-11 Thread mattip
mattip added the comment: > If you use pubkeys.txt from https://www.python.org/static/files/pubkeys.txt, > then GPG verification gives you no additional security I am confused. If the pubkeys.txt on python.org has no benefit, why does it exist? What is considered best practices for people

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-11 Thread Samuel Freilich
Change by Samuel Freilich : -- pull_requests: +15630 pull_request: https://github.com/python/cpython/pull/16005 ___ Python tracker ___

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: There is also the draft test case at https://github.com/ncoghlan/cpython/pull/2 That needs updating to account for the eval loop changes since I last worked on it, though. (I think that conflict may also be keeping the bots from running, even after I updated

[issue38120] DeprecationWarning in test_random due to invalid seed arguments

2019-09-11 Thread STINNER Victor
STINNER Victor added the comment: I confirm that test_random currently fails using -Werror: $ ./python -W error -m test -v test_random == ERROR: test_seed_when_randomness_source_not_found

[issue37941] python -m and runpy.run_module set different __name__ by default

2019-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: There is one, it just isn't public: runpy._run_module_as_main. It's a private API that the -m switch implementation calls, and was introduced after the original runpy.run_module was found not to offer everything the switch needed. It isn't possible to fully

[issue28724] Add method send_io, recv_io to the socket module.

2019-09-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8d120f75fb8c8731464b5f7531d74cdbb897d924 by Victor Stinner (Joannah Nanjekye) in branch 'master': bpo-28724: Add methods send_fds and recv_fds to the socket module (GH-12889)

[issue37698] Update doc of PyBuffer_ToContiguous

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset 15f5a7527b87e11fcf23069c147fd4cb7d42cfb0 by Miss Islington (bot) (Hai Shi) in branch 'master': bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) https://github.com/python/cpython/commit/15f5a7527b87e11fcf23069c147fd4cb7d42cfb0

[issue37698] Update doc of PyBuffer_ToContiguous

2019-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +15625 pull_request: https://github.com/python/cpython/pull/15998 ___ Python tracker ___

[issue37698] Update doc of PyBuffer_ToContiguous

2019-09-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 965e53a9deb1c7f02c68dee119eae94c3be8af15 by Stéphane Wirtel in branch '3.8': [3.8] bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15999) https://github.com/python/cpython/commit/965e53a9deb1c7f02c68dee119eae94c3be8af15

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset cec68c31e8507159534b6eec3fb5d801cd3dbf8c by Miss Islington (bot) (Stéphane Wirtel) in branch '3.7': [3.7] bpo-38117: Test with OpenSSL 1.1.1d (GH-15983) (GH-15994) https://github.com/python/cpython/commit/cec68c31e8507159534b6eec3fb5d801cd3dbf8c

[issue38115] Invalid bytecode offsets in co_lnotab

2019-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38120] DeprecationWarning in test_random due to invalid seed arguments

2019-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for doing this. If you don't mind, let's hold off one day so I can take a closer look at this when I get home tonight. -- assignee: -> rhettinger ___ Python tracker

[issue2771] Test issue

2019-09-11 Thread Ezio Melotti
Ezio Melotti added the comment: test comment -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38113] Remove statics from ast.c

2019-09-11 Thread Eric Snow
Eric Snow added the comment: New changeset ac46eb4ad6662cf6d771b20d8963658b2186c48c by Eric Snow (Dino Viehland) in branch 'master': bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957) https://github.com/python/cpython/commit/ac46eb4ad6662cf6d771b20d8963658b2186c48c

[issue38116] Make select module PEP-384 compatible

2019-09-11 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-11 Thread Tim Peters
Tim Peters added the comment: Paul, please heed what Raymond said: it's not good to merge another core dev's PR unless they ask you to. Besides what Raymond said, a core dev may well check in incomplete work for any number of reasons (e.g., to see how the automated test runs turn out).

[issue38106] Race in PyThread_release_lock - can lead to memory corruption and deadlock

2019-09-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: imho posix made a mistake in allowing signal/broadcast outside the mutex. Otherwise an implementation could rely on the mutex for internal state manipulation. I have my own fast condition variable lib implemented using semaphores and it is simple

[issue9938] Add optional keyword argument exit_on_error to argparse.ArgumentParser

2019-09-11 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- title: Add optional kwargs to argparse -> Add optional keyword argument exit_on_error to argparse.ArgumentParser ___ Python tracker ___

[issue35264] SSL Module build fails with OpenSSL 1.1.0 for Python 2.7

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset 0d63669e52dd7e95708ec14e9e3e07d7dc9cd913 by Miss Islington (bot) (Alexandru Ardelean) in branch '2.7': [2.7] bpo-35264: Modules/_ssl.c: fix build with OpenSSL 1.1.0 (GH-10570)

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The test is same as below and given that __spec__ an __name__ are passed as None where ImportWarning is raised in Lib/importlib/_bootstrap.py 1074 . can we just use self.assertWarns(ImportWarning) in the test? >>> __import__('', {'__package__':

[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-11 Thread Jonathan Gossage
New submission from Jonathan Gossage : I installed Python 3.8.0b4 manually on Ubuntu 19.04 desktop. After the installation that appeared to run OK, I was unable to find python3.8, even though it had been installed in /usr/local/bin and that directory was on the path. I got the result:

[issue38127] A fatal error when running test_ctypes

2019-09-11 Thread Zackery Spytz
New submission from Zackery Spytz : When running test_ctypes, I encountered a fatal error. ./python -m test test_ctypes Run tests sequentially 0:00:00 load avg: 0.13 [1/1] test_ctypes Fatal Python error: a function returned a result with an error set MemoryError The above exception was the

[issue36876] Global C variables are a problem.

2019-09-11 Thread David Bolen
David Bolen added the comment: The new test_check_c_globals.ActualChecks test is failing with an "unexpected success" on the bolen-ubuntu buildbot (under Ubuntu 18.04.3). I can reproduce the failure in a manually built tree. -- nosy: +db3l ___

[issue38126] mailcap top level wildcard support

2019-09-11 Thread pacien
New submission from pacien : given ~/.mailcap containing: */*; xdg-open "%s" >>> mailcap.findmatch(mailcap.getcaps(), 'application/pdf', >>> filename='thing.pdf') returns: (None, None) instead of: ('xdg-open "thing.pdf"', {'view': 'xdg-open "%s"', 'lineno': 0}) --- While top-level wildcards

[issue38112] Compileall improvements

2019-09-11 Thread Lumír Balhar
Change by Lumír Balhar : -- keywords: +patch pull_requests: +15638 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16012 ___ Python tracker ___

[issue38105] hash collision when hash(x) == -2 causes many calls to __eq__

2019-09-11 Thread Tim Peters
Tim Peters added the comment: Note that you can contrive similar cases with positive hash codes too. For example, force both hash codes to 2**60 - 2. The salient points are that 0 * 5 is congruent to 0 mod any power of 2, while -2 * 5 = -10 is congruent to -2 mod 8, so they're fixed

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2019-09-11 Thread Vinay Sharma
Vinay Sharma added the comment: Hi Davin, This PR would fix the issues mentioned by you, by not prematurely unlinking the shared memory segment. And, therefore it would make shared memory useful in a lot of use cases. But, this would still not make Unix's implementation consistent with

[issue38120] DeprecationWarning in test_random due to invalid seed arguments

2019-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay. This looks good to go. I don't remember why the original test repeated some of the seeds -- that would normally only be done if caching was present. -- assignee: rhettinger -> xtreak ___ Python tracker

[issue38105] hash collision when hash(x) == -2 causes many calls to __eq__

2019-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Tim Peters] > I don't believe it's worth a single cycle, overall, to avoid it. That makes complete sense. Marking this one as closed. Guido, thank for the high quality, reproducible report. hongweipeng, thank you for the casual analysis. --

[issue38125] Can' build document in Sphinx v2.2.0

2019-09-11 Thread Ammar Askar
Ammar Askar added the comment: When did you try this? For reference, Doc/conf.py on master currently has `master_doc = 'contents'` and I performed a successful build with Sphinx 2.2.0 a few days ago. -- nosy: +ammar2 ___ Python tracker

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is there a chance this will get resolved for 3.8? This is an important guarantee. -- ___ Python tracker ___

[issue38127] A fatal error when running test_ctypes

2019-09-11 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +15637 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16011 ___ Python tracker ___

[issue38124] off-by-one error in PyState_AddModule

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset 8892a1d685e4898b28961308b3c1447fe9ad3269 by Miss Islington (bot) in branch '3.7': closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007) https://github.com/python/cpython/commit/8892a1d685e4898b28961308b3c1447fe9ad3269 --

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2bb6bf0c8cf863c057027b10751c0fb74189871f by Raymond Hettinger (Paul Ganssle) in branch '3.8': bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895) (GH-15961)

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b7a310d865347eabc60d387dbec82ee408315050 by Raymond Hettinger (Paul Ganssle) in branch '3.7': bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895) (GH-15962)

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Tim, I'll make the fix-ups in a separate PR. There wasn't a clear workflow for reverting, adding fixes, re-applying, and backporting. -- ___ Python tracker

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-11 Thread Eryk Sun
Eryk Sun added the comment: In addition to ERROR_INVALID_FUNCTION (1), ERROR_INVALID_PARAMETER (87), and ERROR_NOT_SUPPORTED (50) for an unsupported device, and ERROR_BAD_NET_NAME (67) for a missing server or share, it should also allow common permission errors: ERROR_ACCESS_DENIED (5)

[issue38128] IDLE undo calls get_saved() when set to None

2019-09-11 Thread Raymond Hettinger
New submission from Raymond Hettinger : Terry, I don't know if these exception reports are useful to you. If not, feel free to close this. I run IDLE in day long sessions and only see these tracebacks when I'm exiting, so I don't know the proximate trigger event. Exception in Tkinter

[issue38124] off-by-one error in PyState_AddModule

2019-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 39de95b746c990e6a2fe9af5fad01747f58b2e5f by Benjamin Peterson in branch 'master': closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007) https://github.com/python/cpython/commit/39de95b746c990e6a2fe9af5fad01747f58b2e5f

[issue38124] off-by-one error in PyState_AddModule

2019-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +15634 pull_request: https://github.com/python/cpython/pull/16008 ___ Python tracker ___

[issue38124] off-by-one error in PyState_AddModule

2019-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +15635 pull_request: https://github.com/python/cpython/pull/16009 ___ Python tracker ___

[issue38124] off-by-one error in PyState_AddModule

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset a5a7102636de82e0687af7131357762337d49c7c by Miss Islington (bot) in branch '3.8': closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007) https://github.com/python/cpython/commit/a5a7102636de82e0687af7131357762337d49c7c --

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15636 pull_request: https://github.com/python/cpython/pull/16010 ___ Python tracker ___

[issue38105] hash collision when hash(x) == -2 causes many calls to __eq__

2019-09-11 Thread hongweipeng
hongweipeng added the comment: More than -2, -1 -4 -8 -16 and -32 will cause many calls to __eq__.In `set_add_entry` use ``` perturb >>= PERTURB_SHIFT; i = (i * 5 + 1 + perturb) & mask; ``` get the next index.In the example,mask is 7,perturb is -2. If i = 6, after execution, the value of i

[issue36876] Global C variables are a problem.

2019-09-11 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38124] off-by-one error in PyState_AddModule

2019-09-11 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +15633 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16007 ___ Python tracker

[issue38125] Can' build document in Sphinx v2.2.0

2019-09-11 Thread Windson Yang
New submission from Windson Yang : I got two errors when I try to build python document with make venv make html The first one is > Since v2.0, Sphinx uses "index" as master_doc by default. Please add > "master_doc = 'contents'" to your conf.py. After fixing this one, the second

[issue38128] IDLE undo calls get_saved() when set to None

2019-09-11 Thread Zackery Spytz
Zackery Spytz added the comment: This seems like a duplicate of bpo-35263. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-11 Thread Carol Willing
Carol Willing added the comment: New changeset efd5741ae953e50a6654e04cf731da86a1307296 by Carol Willing (wwuck) in branch 'master': bpo-38034: Fix typo in logging.handlers.rst (GH-15708) https://github.com/python/cpython/commit/efd5741ae953e50a6654e04cf731da86a1307296 -- nosy:

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-11 Thread miss-islington
miss-islington added the comment: New changeset 7264e92b718d307cc499b2f10eab7644b00f0499 by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-36373: Fix deprecation warnings (GH-15889) https://github.com/python/cpython/commit/7264e92b718d307cc499b2f10eab7644b00f0499 --

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-11 Thread Александр Семенов
Александр Семенов added the comment: setuptools/sandbox.py: class DirectorySandbox(AbstractSandbox): """Restrict operations to a single subdirectory - pseudo-chroot""" When running user scripts it uses os.path.realpath(os.devnull) to include 'normalized' devnull to the allowed list of

[issue37969] Correct urllib.parse functions dropping the delimiters of empty URI components

2019-09-11 Thread Géry
Change by Géry : -- title: urllib.parse functions reporting false equivalent URIs -> Correct urllib.parse functions dropping the delimiters of empty URI components ___ Python tracker

  1   2   3   4   5   >