[issue34245] Python library should be installed writable

2018-12-08 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR. I've merged it for release in 3.8.0. As I commented on the PR, I don't think we should backport this; the current behavior has been around for many years and was working as designed so it's not really a bug. -- resolution: -> fixed

[issue34245] Python library should be installed writable

2018-12-08 Thread Ned Deily
Ned Deily added the comment: New changeset 25648d05ac3d74c436f951579bbb716372fb8cc7 by Ned Deily (jdemeyer) in branch 'master': bpo-34245: install Python shared library with more standard 0755 mode (GH-8492) https://github.com/python/cpython/commit/25648d05ac3d74c436f951579bbb716372fb8cc7

[issue33725] Python crashes on macOS after fork with no exec

2018-12-08 Thread Ned Deily
Ned Deily added the comment: Since it looks like multiprocessing_fork is not going to be fixable for macOS, the main issue remaining is how to help users avoid this trap (literally). Should we add a check and issues a warning or error at run time? Or is a doc change sufficient? In the

[issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode

2018-12-08 Thread Stefan Behnel
Stefan Behnel added the comment: If this is really just about debugging, then I would suggest to not break existing code at all. -- nosy: +scoder ___ Python tracker ___

[issue33725] Python crashes on macOS after fork with no exec

2018-12-08 Thread miss-islington
miss-islington added the comment: New changeset df5d884defc8f1a94013ff9beb493f1428bd55b5 by Miss Islington (bot) in branch '3.6': bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043) https://github.com/python/cpython/commit/df5d884defc8f1a94013ff9beb493f1428bd55b5 --

[issue33725] Python crashes on macOS after fork with no exec

2018-12-08 Thread miss-islington
miss-islington added the comment: New changeset d4bcf13e06d33b8ec66a68db20df34a029e66882 by Miss Islington (bot) in branch '3.7': bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043) https://github.com/python/cpython/commit/d4bcf13e06d33b8ec66a68db20df34a029e66882 -- nosy:

[issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode

2018-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we can break this only after adding public API for accessing internal storage of a tuple: PyTuple_ITEMS(). And the same for lists. -- ___ Python tracker

[issue33725] Python crashes on macOS after fork with no exec

2018-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10280 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33725] Python crashes on macOS after fork with no exec

2018-12-08 Thread Ned Deily
Ned Deily added the comment: New changeset ac218bc5dbfabbd61c76ce8a17de088611e21981 by Ned Deily in branch 'master': bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043) https://github.com/python/cpython/commit/ac218bc5dbfabbd61c76ce8a17de088611e21981 --

[issue33725] Python crashes on macOS after fork with no exec

2018-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10281 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33725] Python crashes on macOS after fork with no exec

2018-12-08 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +10279 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue22577] local variable changes lost after pdb jump command

2018-12-08 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +10278 stage: -> patch review ___ Python tracker ___ ___

[issue35105] Document that CPython accepts "invalid" identifiers

2018-12-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Any ideas? Or I will create a PR in a week without 'CPython implementation > detail' I don't think we want to give any stability guarantees for this. Perhaps we should explicitly state that this is not guaranteed behaviour and may change in the future.

[issue35105] Document that CPython accepts "invalid" identifiers

2018-12-08 Thread Windson Yang
Windson Yang added the comment: Any ideas? Or I will create a PR in a week without 'CPython implementation detail' -- ___ Python tracker ___

[issue35325] imp.find_module() return value documentation discrepancy

2018-12-08 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +10277 stage: -> patch review ___ Python tracker ___ ___

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-08 Thread Jonathan Gossage
Jonathan Gossage added the comment: I think documentation is sufficient but I would like it to state the pitfalls available if apply_async is not synchronized correctly which will happen whenever the output does not fit the pipe buffer. -- ___

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > For what its worth, the colour I prefer for this bikeshed are > "comb" and "perm", which are the names used by the > HP 48GX calculator. Second choice would be to spell the names > out in full, "combinations" and "permutations". +1 These would be my

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-08 Thread Windson Yang
Windson Yang added the comment: As Jonathan Gossage said, I think it may break some code to fix this issue, maybe we could just add a warning on the document? -- ___ Python tracker

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread Steve Dower
Steve Dower added the comment: So, you're suggesting doing a lazy mimetypes.init() on Windows and not on the others? There's no reason to have such a semantic difference between platforms, and since the whole point of mimetypes.init() is to avoid initializing on import, it makes the most

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread pmpp
pmpp added the comment: sorry i was on my free time when enumerating profiling/instrumentation and testing. given now you pay attention i'll try to explain more. instrumentation : what does that server actually support ? eg writing a test for a specific mimitype support eg

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread Steve Dower
Steve Dower added the comment: > I agree that makes no sense at all. I have to admit I have no idea what you're trying to argue or suggesting as an alternative. Could you try clearly explaining the change you'd rather see to fix the issue? --

[issue35440] Setup failed 0x80072f7d - Unspecified error

2018-12-08 Thread Eryk Sun
Eryk Sun added the comment: For what it's worth, 0x8007 indicates a Windows error, which in this case is ERROR_INTERNET_SECURITY_CHANNEL_ERROR (12157 or 0x2f7d) [1]: "the application experienced an internal error loading the SSL libraries". [1]:

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread pmpp
pmpp added the comment: the PR as it is actually add a blocking read (and maybe exceptions or whatever mimetypes modules decide to do) in processing of the first request to server, which has nothing to do with the code serving that request. I agree that makes no sense at all. --

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread Steve Dower
Steve Dower added the comment: (Sorry, page submitted while I was still typing for some reason.) ... Instrumentation for everything other than time is unaffected, so if you didn't mean to conflate them, then no there is no impact on the documented use. Yes, moving mimetypes.init to the

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread Steve Dower
Steve Dower added the comment: If you weren't conflating profiling and instrumentation then your original comment makes no sense. -- ___ Python tracker ___

[issue35442] Chain of several subcommands in argparse

2018-12-08 Thread Victor Porton
New submission from Victor Porton : We should consider some way to implement argparse functionality asked here: https://stackoverflow.com/q/53686523/856090 It is unclear how exactly to do this. This message is a call to discuss what should be the information format and API. The awful thing

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread pmpp
pmpp added the comment: ??? i never compared Instrumentation and profiling and what getting delta timing about the script behind the first http request has to do with performance ? <= that's actually another question thefirst was : isn't http.server reserved for instrumentation and testing

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2018-12-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23874] Encrypted MSI fails to install with code 2755

2018-12-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: For 3.x, this is out of date. Since 3.5, Windows installers are .exe, not .msi. There will be no more 3.4 installers. For 2.x, there should be at most 3 more releases. But the .msi installer author has been inactive since before this was opened. Given

[issue34977] Release Windows Store app containing Python

2018-12-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2018-12-08 Thread Maarten ter Huurne
Maarten ter Huurne added the comment: I was working on what I thought would be an elegant solution to this problem: for non-qualified attributes, add the element's namespace before accessing the cache and strip the namespace prefix after accessing the cache if it's equal to the element's

[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2018-12-08 Thread kernc
Change by kernc : -- nosy: +kernc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35433] Correctly detect installed SDK versions

2018-12-08 Thread Steve Dower
Steve Dower added the comment: Did you see my comment about converting the version numbers to System.Version before comparing? (I didn't know it could be done the first time I looked :) ) -- ___ Python tracker

[issue35433] Correctly detect installed SDK versions

2018-12-08 Thread Jeremy Kloth
Jeremy Kloth added the comment: Not to be impatient or anything, but this change is keeping my buildbot from being useful. Would it be possible for someone to merge as it has already been approved (msg331263). -- ___ Python tracker

[issue34977] Release Windows Store app containing Python

2018-12-08 Thread Steve Dower
Steve Dower added the comment: > In which case, let's have a placeholder note in the docs, saying that > the Windows Store installer exists, but it's experimental and may have > unexpected interactions with other tools that expect a standard Python > install. Users trying the Windows Store

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread Steve Dower
Steve Dower added the comment: Instrumentation is not the same thing as profiling, and this one is certainly not intended for performance. That said, simply importing it shouldn't impact anyone else's performance either, and since six imports this, fixing it will have a pretty broad impact.

[issue35440] Setup failed 0x80072f7d - Unspecified error

2018-12-08 Thread Steve Dower
Steve Dower added the comment: It looks like you're not able to download the debug symbol packages from your machine. This may be a network issue or perhaps a totally disconnected machine? If you run setup with the "/layout [directory]" option on a machine with internet access it will give

[issue31823] Opaque default value for close_fds argument in Popen.__init__

2018-12-08 Thread Danish Prakash
Change by Danish Prakash : -- keywords: +patch pull_requests: +10276 stage: -> patch review ___ Python tracker ___ ___

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread miss-islington
miss-islington added the comment: New changeset 2e0fbed15f809a247c7e16ab9d0a0088f806 by Miss Islington (bot) in branch '3.6': bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033) https://github.com/python/cpython/commit/2e0fbed15f809a247c7e16ab9d0a0088f806

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread miss-islington
miss-islington added the comment: New changeset 8b7d8ac09cc0f736d0c3a39d838814d7ae253021 by Miss Islington (bot) in branch '3.7': bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033) https://github.com/python/cpython/commit/8b7d8ac09cc0f736d0c3a39d838814d7ae253021

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10275 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10274 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : New changeset 99d56b53560b3867844472ae381fb3f858760621 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread pmpp
pmpp added the comment: > and potentially other platforms? strangely, it does not. but adding a blocking read on first requests may ruin profiling data on any platform. isn't http.server reserved for instrumentation and testing ? -- nosy: +pmpp

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-08 Thread Chris Withers
Change by Chris Withers : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-08 Thread Chris Withers
Chris Withers added the comment: New changeset ee2c5a8e2dcf662048dbcf4e49af9b4aaf81f7d3 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-35330: Don't call the wrapped object if `side_effect` is set (GH11035)

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-08 Thread Chris Withers
Chris Withers added the comment: New changeset 12b9fb603eea9298c835bae5b8742db4fa52892e by Chris Withers (Miss Islington (bot)) in branch '3.6': bpo-35330: Don't call the wrapped object if `side_effect` is set (GH11034)

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-12-08 Thread Anirudha Bose
Change by Anirudha Bose : -- keywords: +patch pull_requests: +10273 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10272 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10271 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-08 Thread Chris Withers
Chris Withers added the comment: New changeset f05df0a4b679d0acfd0b1fe6187ba2d553b37afa by Chris Withers (Mario Corchero) in branch 'master': bpo-35330: Don't call the wrapped object if `side_effect` is set (GH10973)

[issue34977] Release Windows Store app containing Python

2018-12-08 Thread Paul Moore
Paul Moore added the comment: > Yeah, and these are all essentially my fault (though I documented the > embeddable package relatively well, modulo a few uses I hadn't imagined). > Maybe my holiday writing project can be some better docs for choosing how to > install Python, especially since

[issue35435] Discourage external links to old docs.

2018-12-08 Thread Julien Palard
Julien Palard added the comment: > Without spending too much time on it, it seems to me there are s number of > issues here: > 1. What URL schemes do we have and want to continue to support? > 2. What things do we want to show up in search engine results? > 3. How do we make that happen? > 4.

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +10270 stage: -> patch review ___ Python tracker ___ ___

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-08 Thread Zackery Spytz
Change by Zackery Spytz : -- components: Extension Modules nosy: ZackerySpytz priority: normal severity: normal status: open title: Dead (and buggy) code due to mishandling of PyList_SetItem() errors type: behavior versions: Python 2.7, Python 3.7, Python 3.8

[issue35440] Setup failed 0x80072f7d - Unspecified error

2018-12-08 Thread Kamaal Khan
New submission from Kamaal Khan : I've been trying to install version 3.7.1 64-bit but it keeps on giving me that error. Tried fixing it by installing KB2999226, but to no avail. Been running the install file as admin too. Using Windows 7. Install log is attached. -- components: