[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 -- no

[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: https

[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 ___

[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: jgossa

[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: https

[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

[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 ___ ___

[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). Wh

[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 ___ ___

[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 ___ ___

[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: https://mail.

[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: https://github.com/python/cpython/blob/ee536b2020b1f0baad1286dbd4345e13870324af/Lib/unittest/mock

[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 o

[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 ___ _

[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 wa

[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 ___ _

[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. -

[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

[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! -- ___

[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: https://mail.pytho

[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 ___ ___

[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

[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 to

[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 t

[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 ___ __

[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 (test.test_random.MersenneTwister_T

[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 ___ ___ Pyt

[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 exists

[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 e

[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: ope

[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 ___ _

[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 __

[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 ___ Py

[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 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

[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 on

[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 --

[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 --

[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

[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

[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 ___

[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) https://github.com/python/cpython/commit/2bb6bf0c8cf863c057027

[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) https://github.com/python/cpython/commit/b7a310d865347eabc60d3

[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

[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 ___ ___

[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

[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)

[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 dir

[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 ___ __

[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: https://mail.py

[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 h

[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 callb

[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 ___ ___ Python

[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 points

[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 Windo

[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. -- nos

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2019-09-11 Thread Nathaniel Smith
Nathaniel Smith added the comment: It's something I'm still interested in, but I'm not actively working on it (as you noticed :-)), and there are some other CPython changes that I'll probably prioritize first. Do you want to close this and I can re-open it when I do get back to it, or...? -

<    1   2   3   4   5