[issue14364] Argparse incorrectly handles '--' as argument to option

2019-09-05 Thread hai shi
Change by hai shi : -- nosy: +rhettinger type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14364] Argparse incorrectly handles '--' as argument to option

2019-09-05 Thread hai shi
Change by hai shi : -- pull_requests: +15369 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15714 ___ Python tracker ___

[issue14364] Argparse incorrectly handles '--' as argument to option

2019-09-05 Thread hai shi
hai shi added the comment: some test cases which paul provided looks doesn't keep compatible. In TestDoubleDashRemoval: # output in my env is Namespace(cmd='cmd', foo=None, rest=['--', '--foo']) ('-- cmd -- -- --foo', NS(cmd='cmd', foo=None, rest=['--', '--', '--foo'])) # output in my env is

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
Change by Greg Price : -- pull_requests: +15368 pull_request: https://github.com/python/cpython/pull/15558 ___ Python tracker ___

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
Change by Greg Price : -- pull_requests: +15367 pull_request: https://github.com/python/cpython/pull/15712 ___ Python tracker ___

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
Change by Greg Price : -- keywords: +patch pull_requests: +15366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15711 ___ Python tracker ___

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
New submission from Greg Price : Benjamin noticed in reviewing GH-15558 (for #37966) several points where the existing code around Unicode normalization can be improved: * on the `QuickcheckResult` enum: > Maybe `makeunicodedata.py` should output this enum (with better name namespacing) *

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily stage: resolved -> needs patch versions: +Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue38015] inline function generates slightly inefficient machine code

2019-09-05 Thread Ma Lin
Ma Lin added the comment: Revert commit 5e63ab0 or use PR 15710, both are fine. -- ___ Python tracker ___ ___ Python-bugs-list

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: not a bug -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Ned Deily added the comment: > 2to3 should be able to parse valid Python 3 code. OK, then should the original behavior here be treated as a bug and fixed? If so, this issue should be re-opened. -- ___ Python tracker

[issue38015] inline function generates slightly inefficient machine code

2019-09-05 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +15365 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15710 ___ Python tracker ___

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2to3 should be able to parse valid Python 3 code. -- ___ Python tracker ___ ___

[issue38041] IDLE Shell: Refine restart line

2019-09-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> commit review title: Refine IDLE Shell restart line -> IDLE Shell: Refine restart line ___ Python tracker ___

[issue38035] shared_semaphores cannot be shared across unrelated processes

2019-09-05 Thread Vinay Sharma
Vinay Sharma added the comment: Let's say I have two processes which are accessing a shared resource (let's say shared memory). Now, these two processes will need some kind of synchronisation mechanism, to be able to access the resource properly, and avoid race condition. Currently, shared

[issue38041] Refine IDLE Shell restart line

2019-09-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE Shell: Redesign minimum restart line -> Refine IDLE Shell restart line ___ Python tracker ___

[issue38041] IDLE Shell: Redesign minimum restart line

2019-09-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +15364 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15709 ___ Python tracker

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-05 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +15362 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15708 ___ Python tracker ___

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Ned Deily added the comment: Benjamin, can you answer Justin's question above? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue38039] Segfault when pickling dictionary with large pandas dataframes

2019-09-05 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide the code that caused the segfault? -- nosy: +eric.smith ___ Python tracker ___

[issue38042] Crash on double list(lxml.etree.iterparse(f))

2019-09-05 Thread Alexander Kurakin
Change by Alexander Kurakin : -- title: Crash on double list(lxml.etree.iterparse(f)) Edit -> Crash on double list(lxml.etree.iterparse(f)) ___ Python tracker ___

[issue38042] Crash on double list(lxml.etree.iterparse(f)) Edit

2019-09-05 Thread Alexander Kurakin
New submission from Alexander Kurakin : I have a crash in Python 3.x environments and don't have in 2.7. === Crashes in: Python 3.7.4, Anaconda, Linux 64bit, lxml 4.3.3 OR Python 3.7.4, Anaconda, Linux 64bit, lxml 4.4.1 OR Python 3.6.5, Gentoo Linux 64bit, lxml 4.3.3 test.py: import lxml

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-09-05 Thread Ryan May
Change by Ryan May : -- nosy: +Ryan May ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38040] Typo: "Writeable" Should be "Writable" in IO Library Documentation

2019-09-05 Thread Sean Happenny
Sean Happenny added the comment: It is a minor issue and I understand that there are many, much more important fixes and features the whole Python dev team is working on. But reading the documentation for these classes indicates that these classes may have a "writeable" member. If, as an

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Justin Arthur
Justin Arthur added the comment: Ned, can you confirm that 2to3 is not intended for cumulative/incremental runs over the same codebase? If it's not intended to be run on previously ported code, this will just need to be fixed on the lib2to3 downstream projects like awpa and Black that are

[issue14689] make PYTHONWARNINGS variable work in libpython

2019-09-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @petere do you want to open a PR with your patch here: https://github.com/python/cpython/pulls -- nosy: +nanjekyejoannah ___ Python tracker

[issue38041] IDLE Shell: Redesign minimum restart line

2019-09-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : Currently, Shell prints restart lines as =...= RESTART filename =...= where filename is 'Shell' or the full pathname. The code is tag = 'RESTART: ' + (filename if filename else 'Shell') halfbar = ((int(console.width) -len(tag) - 4) // 2)

[issue38040] Typo: "Writeable" Should be "Writable" in IO Library Documentation

2019-09-05 Thread SilentGhost
SilentGhost added the comment: There are more cases of using this spelling in the code base, but I personally don't see how any confusion can arise and why this "fix" is needed. -- nosy: +SilentGhost ___ Python tracker

[issue38040] Typo: "Writeable" Should be "Writable" in IO Library Documentation

2019-09-05 Thread Sean Happenny
New submission from Sean Happenny : Problem: There are 4 instances of the typo "writeable" in the documentation for the IO library affecting, at least, versions 3.7, 3.8, 3.9, and the latest master of the documentation (https://docs.python.org/[3.7,3.8,3.9]/library/io.html and

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Ned Deily added the comment: "2to3 is a Python program that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code." The example you supply, badvar,py, is not a valid Python 2.x program. Python 2 identifiers cannot contain such characters.

[issue38035] shared_semaphores cannot be shared across unrelated processes

2019-09-05 Thread Ned Deily
Ned Deily added the comment: Please give an example of how this is a problem in using Python. You don't give any context here. -- nosy: +ned.deily ___ Python tracker ___

[issue38038] Remove urllib.parse._splittype from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- title: Remove urllib.parse._ from xmlrpc.client -> Remove urllib.parse._splittype from xmlrpc.client ___ Python tracker ___

[issue38039] Segfault when pickling dictionary with large pandas dataframes

2019-09-05 Thread Ilya Valmianski
New submission from Ilya Valmianski : Tried pickling a dictionary with multiple pandas tables and python primitive types. Pandas tables are large so full object size is ~200GB but system should not be OOM (crashed with ~300 GB system memory available). Reproduced on two machines running RHEL

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3f43ceff186da09978d0aff257bb18b8ac7611f7 by Victor Stinner in branch 'master': bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705) https://github.com/python/cpython/commit/3f43ceff186da09978d0aff257bb18b8ac7611f7 --

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: Thanks Joannah. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2bc43cdc015eda4f1a651bb2b308a17a83c38e14 by Victor Stinner (Joannah Nanjekye) in branch 'master': bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315)

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread Steve Dower
Steve Dower added the comment: I triggered automatic backports to see how they go. Doesn't necessarily mean we'll merge them without looking more closely, but may as well check out what our automated tools suggest. -- ___ Python tracker

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15361 pull_request: https://github.com/python/cpython/pull/15707 ___ Python tracker ___

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15360 pull_request: https://github.com/python/cpython/pull/15706 ___ Python tracker ___

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread Steve Dower
Change by Steve Dower : -- stage: patch review -> backport needed versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: The function is not documented nor tested. I searched for usage of PyGen_NeedsFinalizing() in C code in GitHub: https://github.com/search?l=C=1=PyGen_NeedsFinalizing=Code I only found copies of the CPython code source: PyGen_NeedsFinalizing() definition in

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: PyGen_NeedsFinalizing() was added by: commit 49fd7fa4431da299196d74087df4a04f99f9c46f Author: Thomas Wouters Date: Fri Apr 21 10:40:58 2006 + Merge p3yk branch with the trunk up to revision 45595. This breaks a fair number of tests, all

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15359 pull_request: https://github.com/python/cpython/pull/15705 ___ Python tracker ___

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: The newly added test fails if Python is installed: https://buildbot.python.org/all/#/builders/188/builds/927 == FAIL: test_pathfix (test.test_tools.test_pathfix.TestPathfixFunctional)

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: My searches show references to this function in CPython cloned repositories. From @pitrous's views, I think it is better to deprecate it with a removal notice for a later release. I have deprecated the Function instead and will be removed in the next

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread Chip Lynch
Chip Lynch added the comment: I see there is a merged patch for this (https://github.com/python/cpython/pull/14360); is it possible to get it tagged for backport to 3.7? I haven't seen the 3.7.5 tag drop yet so wanted to recommend it's included, it's giving us fits. On our Windows 10 dev

[issue36797] Cull more oudated distutils information

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15358 pull_request: https://github.com/python/cpython/pull/15704 ___ Python tracker ___

[issue36797] Cull more oudated distutils information

2019-09-05 Thread miss-islington
miss-islington added the comment: New changeset 2c2b561967c1916855399f809e30ae0ba7e09ae2 by Miss Islington (bot) (Miro Hrončok) in branch 'master': bpo-36797: Fix a dead link in Doc/distutils/apiref (GH-15700) https://github.com/python/cpython/commit/2c2b561967c1916855399f809e30ae0ba7e09ae2

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 50254ac4c179cb412e90682098c97db786143929 by Victor Stinner (PatrikKopkan) in branch 'master': bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548) https://github.com/python/cpython/commit/50254ac4c179cb412e90682098c97db786143929

[issue37926] regression: PySys_SetArgvEx(0, NULL, 0): SystemError: Python-3.8.0b3/Objects/unicodeobject.c:2089: bad argument to internal function

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: FYI this bug was found in paraview in Fedora Rawhide: https://bugzilla.redhat.com/show_bug.cgi?id=1743896 -- ___ Python tracker ___

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +cheryl.sabella ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +15357 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15703 ___ Python tracker ___

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
New submission from Dong-hee Na : This issue is the same as bpo-22347. Let's remove the deprecated urllib.parse._splituser and urllib.parse._splittype from xmlrpc.client -- components: Library (Lib) messages: 351199 nosy: corona10, serhiy.storchaka, vstinner priority: normal severity:

[issue38037] Assertion failed: object has negative ref count

2019-09-05 Thread Ma Lin
Ma Lin added the comment: I did a Git bisect, this is the first bad commit: https://github.com/python/cpython/commit/9541bd321a94f13dc41163a5d7a1a847816fac84 nosy involved mates. -- nosy: +berker.peksag, nanjekyejoannah ___ Python tracker

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +15356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15702 ___ Python tracker ___

[issue38037] Assertion failed: object has negative ref count

2019-09-05 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +15355 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15701 ___ Python tracker ___

[issue36409] plistlib old API should be removed

2019-09-05 Thread Jon Janzen
Change by Jon Janzen : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-05 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner Here is the new benchmark with you suggested. It seems to affect performance. == Baseline == Mean +- std dev: 134 ns +- 2 ns == PR 15633 == Mean +- std dev: 174 ns +- 5 ns -- ___ Python tracker

[issue36797] Cull more oudated distutils information

2019-09-05 Thread Miro Hrončok
Change by Miro Hrončok : -- pull_requests: +15354 pull_request: https://github.com/python/cpython/pull/15700 ___ Python tracker ___

[issue35939] Remove urllib.parse._splittype from mimetypes.guess_type

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: fixed -> duplicate superseder: -> mimetypes.guess_type("//example.com") misinterprets host name as file name ___ Python tracker ___

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: """ ./python.exe -m timeit -r11 -s 'import datetime' -s 'a = datetime.datetime.now().isocalendar()' 5000 loops, best of 11: 8.72 nsec per loop Let me know if the benchmark code is not appropriate """ Hum wait, this benchmark measures the performance of

[issue38037] Assertion failed: object has negative ref count

2019-09-05 Thread Ma Lin
New submission from Ma Lin : Adding these two lines to /Objects/longobject.c will disable the "preallocated small integer pool": #define NSMALLPOSINTS 0 #define NSMALLNEGINTS 0 Then run this reproduce code (attached): from enum import IntEnum import _signal class

[issue18049] Re-enable threading test on macOS

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: > Ronald, is it feasible that the changes made in > https://github.com/python/cpython/pull/14748/files to THREAD_STACK_SIZE in > Python/thread_pthread.h could be causing intermittent failures for the Azure > macOS PR tests? See also bpo-37245 ("Azure

[issue37245] Azure Pipeline 3.8 CI: multiple tests hung and timed out on macOS 10.13

2019-09-05 Thread Kyle Stanley
Kyle Stanley added the comment: It looks like the Azure macOS tests timed out again in the recently opened PR-15688. Specifically, for test_multiprocessing_spawn and test_functools (both of which also timed out in PR-15651, which Victor mentioned earlier): 0:26:41 load avg: 2.89 [418/419/1]

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2019-09-05 Thread Maxwell McKinnon
Change by Maxwell McKinnon : -- nosy: +bodom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-09-05 Thread hongweipeng
hongweipeng added the comment: According to the provided text.py file. `__exit__` will always execute due to the `with` syntax. It looks like this: ``` def rec(): try: rec() except RecursionError: rec() rec() ``` -- nosy: +hongweipeng

[issue37934] Docs: Clarify NotImplemented use cases

2019-09-05 Thread Vedran Čačić
Vedran Čačić added the comment: Of course, if there are independent use cases already in the codebase, then my opinion is changed. -- ___ Python tracker ___

[issue36409] plistlib old API should be removed

2019-09-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset ce81a925ef2d466b0d801deaba9af44a0dfc2aa1 by Ronald Oussoren (Jon Janzen) in branch 'master': bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615) https://github.com/python/cpython/commit/ce81a925ef2d466b0d801deaba9af44a0dfc2aa1

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset f5649bfe7622447b302ef55e4db3a96b5840f8e8 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-36324: Apply review comment from Jake Vanderplas (GH-15695) (GH-15696)

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9b51570ffd0494c07dafe10c7d2afe865754694c by Raymond Hettinger in branch 'master': bpo-36324: Apply review comment from Jake Vanderplas (GH-15695) https://github.com/python/cpython/commit/9b51570ffd0494c07dafe10c7d2afe865754694c --

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15353 pull_request: https://github.com/python/cpython/pull/15696 ___ Python tracker ___

[issue38036] ssl docs say that ssl.SSLContext() is secure-by-default since 3.6, but it isn't

2019-09-05 Thread Christian Heimes
Christian Heimes added the comment: Indeed, the text is misleading. "secure default values" refers to SSLContext.options only (no compression, "good" TLS versions) and not to cert and host name verification. -- ___ Python tracker

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15352 pull_request: https://github.com/python/cpython/pull/15695 ___ Python tracker ___

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset dafbe3265657dc5a5c46e762080023f0aa25ec58 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-36324: Apply review comments from Allen Downey (GH-15693) (GH-15694)

[issue38036] ssl docs say that ssl.SSLContext() is secure-by-default since 3.6, but it isn't

2019-09-05 Thread Nathaniel Smith
New submission from Nathaniel Smith : Quoting from the docs for ssl.SSLContext: "Changed in version 3.6: The context is created with secure default values." - https://docs.python.org/3/library/ssl.html#ssl.SSLContext This is not true. If you call ssl.SSLContext(), you get a context with cert

[issue18049] Re-enable threading test on macOS

2019-09-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @aeros167 The build log failures due to timeout in the linked Azure pipeline failure seem to be similar to report at issue37245 -- nosy: +xtreak ___ Python tracker

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e4810b2a6c1d0db1a27ad046831b8fa3b57967a4 by Raymond Hettinger in branch 'master': bpo-36324: Apply review comments from Allen Downey (GH-15693) https://github.com/python/cpython/commit/e4810b2a6c1d0db1a27ad046831b8fa3b57967a4 --

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15351 pull_request: https://github.com/python/cpython/pull/15694 ___ Python tracker ___

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Would you be able to make a PR for this? I think this is a good newcomer friendly issue. -- nosy: +vinay.sajip, xtreak versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue37669] Make mock_open return per-file content

2019-09-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Using a side_effect is one way to achieve this currently if I understand the use case correctly. For every open side_effect will be called and hence it will return a new mock_open with read_data for the given filename used inside the context. This

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15350 pull_request: https://github.com/python/cpython/pull/15693 ___ Python tracker ___

[issue37934] Docs: Clarify NotImplemented use cases

2019-09-05 Thread Kyle Stanley
Kyle Stanley added the comment: > As you say, we currently have only one usage of NotImplemented outside its > intended purpose. Maybe we should wait to see whether it becomes at least a > little bit more popular, before thinking about blessing it. > I know at least 3 in CPython, so it's

[issue18049] Re-enable threading test on macOS

2019-09-05 Thread Kyle Stanley
Kyle Stanley added the comment: Ronald, is it feasible that the changes made in https://github.com/python/cpython/pull/14748/files to THREAD_STACK_SIZE in Python/thread_pthread.h could be causing intermittent failures for the Azure macOS PR tests? In a recent PR

[issue37891] Exceptions tutorial page does not mention raise from

2019-09-05 Thread Niels Albers
Niels Albers added the comment: Thanks Srinivas for the suggestion. IMO exception chaining has more utility than only dealing with new exceptions that are caused by exception handling. It's all about preserving exception context. As both a writer of libraries and a user of such, I do like

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-05 Thread Tal Einat
Tal Einat added the comment: > Would it be possible to tell pickle to serialize .isocalendar() as a tuple, > and deserialize it from a tuple to a structseq? The former is possible but that latter is not: If the object is pickled as a tuple, it will always be unpickled as a simple tuple. To