[issue27069] webbrowser creates zombi processes in the background mode

2018-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't this a duplicate of issue5993? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue32056] Improve exceptions in Lib/wave.py

2018-03-01 Thread zhangdeyue
zhangdeyue added the comment: ok, I found this bug when I use librosa-0.5.1 to read audio file in the audio-classification project -- an ASR project. (https://github.com/nextco/audio-classification) In the project, librosa.load function read audio file, and it called

[issue32903] os.chdir() may leak memory on Windows

2018-03-01 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset aa40f92240adea7067c3add8e09cec09dcf24d7f by Xiang Zhang (Alexey Izbyshev) in branch '2.7': [2.7] bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801). (#5947)

[issue32903] os.chdir() may leak memory on Windows

2018-03-01 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 6ae75d9d1221459ab18c2599e42fcc45f9f65617 by Xiang Zhang (Miss Islington (bot)) in branch '3.7': bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801) (#5945)

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-01 Thread Mark Dickinson
Mark Dickinson added the comment: > I'd argue against such a change in any case And apparently I already did: see issue 22444 for previous discussion on the topic. -- ___ Python tracker

[issue32903] os.chdir() may leak memory on Windows

2018-03-01 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 3e197c7a6740d564ad52fb7901c07d5ff49460f5 by Xiang Zhang (Alexey Izbyshev) in branch 'master': bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801)

[issue32903] os.chdir() may leak memory on Windows

2018-03-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +5713 ___ Python tracker ___

[issue32903] os.chdir() may leak memory on Windows

2018-03-01 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +5715 ___ Python tracker ___ ___

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-01 Thread Mark Dickinson
Mark Dickinson added the comment: > It would be a bit strange if mod with a float returns a float and floordiv > with a float returns an int. Agreed: if there are floats involved (Fraction // float or float // Fraction), I think the rule should be that we simply fall back

[issue32903] os.chdir() may leak memory on Windows

2018-03-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +5714 ___ Python tracker ___

[issue32903] os.chdir() may leak memory on Windows

2018-03-01 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker

[issue32976] linux/random.h present but cannot be compiled

2018-03-01 Thread Mike Schmidt
New submission from Mike Schmidt : I am attempting to install python 3.6.4 to my home directory on a linux cluster where I do not have root access. A warning, "linux/random.h present but cannot be compiled", was emitted from the config process requesting that I

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2018-03-01 Thread Cyril Martin
Cyril Martin added the comment: Hello Vinay, I strongly disagree with you. In the Python documentation (https://docs.python.org/3/library/logging.html), we can read the following for the debug function: > The third keyword argument is extra which can be used to pass a

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-03-01 Thread Segev Finer
Segev Finer added the comment: Windows seems to dereference lpStartupInfo->lpAttributeList, despite it being NULL since we had no attributes to set. Smells like a Windows bug in the compatibility shim, since it doesn't crash in non compatibility mode. Not setting

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-03-01 Thread Segev Finer
Change by Segev Finer : -- keywords: +patch pull_requests: +5716 stage: -> patch review ___ Python tracker ___

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not all Fractions can be converted to float. >>> Fraction(2**2000, 3) // 1.0 Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/fractions.py", line 432, in __floordiv__ return

[issue32977] added acts_like decorator to dataclasses module

2018-03-01 Thread Aaron Christianson
New submission from Aaron Christianson : I'm always writting these wrapper classes where I want to selectively want to expose the interface of some of the methods of certain attributes to co the containing object. This can mean I spend a lot of time implementing wrapper

[issue32056] Improve exceptions in Lib/wave.py

2018-03-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5717 ___ Python tracker ___

[issue32056] Improve exceptions in aifc, sunau and wave

2018-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 5951 adds explicit checks for the number of channels and sample width when read audio files in aifc, sunau and wave and converts some struct.error to EOFError when the file is truncated in wave. This change can break an

[issue30607] Extract documentation theme into a separate package

2018-03-01 Thread Ned Deily
Ned Deily added the comment: New changeset bf63e8d55fd2853df3bb99d66de7f428107aadb3 by Ned Deily (Jon Wayne Parrott) in branch 'master': bpo-30607: Use external python-doc-theme (GH-2017) https://github.com/python/cpython/commit/bf63e8d55fd2853df3bb99d66de7f428107aadb3

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-01 Thread Elias Zamaria
Change by Elias Zamaria : -- keywords: +patch pull_requests: +5721 stage: -> patch review ___ Python tracker ___

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2018-03-01 Thread Preston Landers
Change by Preston Landers : -- nosy: +planders ___ Python tracker ___ ___

[issue32980] Remove functions that do nothing in _Py_InitializeCore()

2018-03-01 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list

[issue32971] Docs on unittest.TestCase.assertRaises() should clarify context manager details

2018-03-01 Thread Brett Cannon
Change by Brett Cannon : -- title: Docs on unittest.TestCase.assertRaises() should be improved -> Docs on unittest.TestCase.assertRaises() should clarify context manager details ___ Python tracker

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-01 Thread Elias Zamaria
Elias Zamaria added the comment: I added the pull request. It includes only my changes to modulo, and not the ones to floordiv. -- ___ Python tracker

[issue32493] UUID Module - FreeBSD build failure

2018-03-01 Thread Michael Felt
Michael Felt added the comment: If it is a bug in OpenBSD how do you propose we "fix" this. imho, the problem is "outside" python. however, until it is fixed in openbsd, would you accept an 3error macro that prevents the mod from being built on the specific version of

[issue32056] Improve exceptions in aifc, sunau and wave

2018-03-01 Thread Ned Deily
Ned Deily added the comment: @zhangdeyue, can you please request that the CVE be unassigned? I think we all agree this is *not* a security issue. -- keywords: -security_issue nosy: +ned.deily ___ Python tracker

[issue30607] Extract documentation theme into a separate package

2018-03-01 Thread Ned Deily
Ned Deily added the comment: Thanks, Jon, and every one else who helped with and commented on the PR. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2018-03-01 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +5720 stage: -> patch review ___ Python tracker

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-01 Thread Elias Zamaria
Elias Zamaria added the comment: Mark, you said "if there's a test that's explicitly checking that `my_fraction // my_float` returns something of type `int`, then the behaviour is clearly intentional". I see exactly that. See

[issue10507] Check well-formedness of reST markup within "make patchcheck"

2018-03-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since `blurb` says to write a simple ReST paragraph and that is code reviewed with the PR, is this issue still needed? -- nosy: +csabella ___ Python tracker

[issue32493] UUID Module - FreeBSD build failure

2018-03-01 Thread Michael Felt
Michael Felt added the comment: oops, sain openbsd, should be freebsd -- ___ Python tracker ___

[issue32978] Issues with reading large float values in AIFC files

2018-03-01 Thread Mark Dickinson
Mark Dickinson added the comment: I'm finding it hard to imagine why you'd ever have a sample rate greater than 1e308 in an audio file. (In fact, it's hard to imagine needing a sample rate greater than 1e6.) Raising an OverflowError for a value that's too large to fit in

[issue18855] Inconsistent README filenames

2018-03-01 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___

[issue18855] Inconsistent README filenames

2018-03-01 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks. I'm going to reject this and to keep the readme files as is. The consequence of renaming files, now that we are on GitHub, is that GitHub doesn't retain the complete file history. So while on GitHub, clicking the file's

[issue32977] added acts_like decorator to dataclasses module

2018-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: Since this has to wait until 3.8 and I'm swamped with 3.7, this is going to have to wait for me to look at it. Is there a reason it needs to be part of dataclasses itself? I'd suggest separating it out, putting it on PyPI, and getting some

[issue32978] Issues with reading large float values in AIFC files

2018-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm fine with an OverflowError, but it looks inconsistent to me that for some huge values an OverflowError is not raised, but aifc._HUGE_VAL is returned instead. And I think that using math.ldexp() can be more preferable that

[issue32979] dict get() function equivalent for lists.

2018-03-01 Thread Felix
Felix added the comment: Thanks for the link! Interesting read. I have to disagree with the statement that this is something that happens very rarely. Just have a look at the mess on stackoverflow alone (these are only the top results I got after a minute of googling):

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-01 Thread Mark Dickinson
Mark Dickinson added the comment: Serhiy: I think both those results are reasonable, and not too surprising. It should be easy to understand that the mixed-type operation converts one of the arguments to float, and if that conversion overflows we get an exception. A

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-03-01 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32937] Multiprocessing worker functions not terminating with a large number of processes and a manager

2018-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't know, maybe someone with a Mac wants to try and debug it? -- ___ Python tracker ___

[issue32981] Catastrophic backtracking in poplib and difflib

2018-03-01 Thread James Davis
New submission from James Davis : Hi Python security team, My name is James Davis. I'm a security researcher at Virginia Tech. The python core (cpython) has 2 regular expressions vulnerable to catastrophic backtracking that look like potential DOS vectors. The vulnerable

[issue32818] subprocess crash under Windows compatibility mode

2018-03-01 Thread Ma Lin
Change by Ma Lin : -- title: multiprocessing segmentfault under Windows compatibility mode -> subprocess crash under Windows compatibility mode ___ Python tracker

[issue32975] mailbox: It would be nice to move mailbox.Message from legacy email.message.Message API to new EmailMessage API

2018-03-01 Thread R. David Murray
R. David Murray added the comment: This is a reasonable request (a good way to use EmailMessage), but EmailMessage is not yet the default even for the email package. You have to specify policy=default to get it (or use it to construct a message). Mailbox probably

[issue32056] Improve exceptions in aifc, sunau and wave

2018-03-01 Thread zhangdeyue
zhangdeyue added the comment: I'm confused now. For any program which receive external file, to check the input file is necessary to do, isn't it? And program error lead to security bug, that's not right? The program itself check input file, catch and show some

[issue32056] Improve exceptions in aifc, sunau and wave

2018-03-01 Thread zhangdeyue
zhangdeyue added the comment: I agree that it is very small, but I still think it is indeed a security issue, because it can crash real world program when called by some library used in Deep Learning ASR project. Does a CVE assigned have any negative impact on you?

[issue32975] mailbox: It would be nice to move mailbox.Message from legacy email.message.Message API to new EmailMessage API

2018-03-01 Thread Abhilash Raj
Abhilash Raj added the comment: Can you suggest what would be the best way go about doing that? Given that mailbox.Message subclasses from Message, I am not sure how to proceed about this to make this configurable with a flag. I haven't yet made a PR, but this[1] is

[issue32056] Improve exceptions in aifc, sunau and wave

2018-03-01 Thread Ned Deily
Ned Deily added the comment: > I agree that it is very small, but I still think it is indeed a security > issue, because it can crash real world program when called by some library > used in Deep Learning ASR project. That sounds like a programming error, not a security

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2018-03-01 Thread Anthony Sottile
Anthony Sottile added the comment: Still a problem in 3.7: $ python3.7 Python 3.7.0b2 (default, Feb 28 2018, 06:59:18) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>> ast.parse("""x =

[issue10507] Check well-formedness of reST markup within "make patchcheck"

2018-03-01 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: This is out of date. I'm closing it. Thanks. -- nosy: +Mariatta resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2018-03-01 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue32982] Parse out invisible Unicode characters?

2018-03-01 Thread Franklin? Lee
New submission from Franklin? Lee : The following line should have a character that trips up the compiler. ‎indices = range(5) The character is \u200e, and was inserted by Google Keep. (I've already reported the issue to Google as a regression.) Here's the error

[issue32981] Catastrophic backtracking in poplib and difflib

2018-03-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___

[issue32978] Issues with reading large float values in AIFC files

2018-03-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The frequency rate is saved as a 80-bit floating point value in AIFC files. There are issues with reading large values. 1. Values with maximal exponent are read as aifc._HUGE_VAL which is less then sys.float_info.max. Thus

[issue32979] dict get() function equivalent for lists.

2018-03-01 Thread Felix
New submission from Felix : Hi there! I hope this wasn't suggested before. I couldn't find any issues related to it. The `get()` function on the dictionary object is such a convenient way for retrieving items from a dict that might not exists. I always wondered why the

[issue32978] Issues with reading large float values in AIFC files

2018-03-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5718 stage: -> patch review ___ Python tracker ___

[issue32980] Remove functions that do nothing in _Py_InitializeCore()

2018-03-01 Thread Thomas Nyberg
New submission from Thomas Nyberg : The `_PyFrame_Init()` and `PyByteArray_Init()` functions are called in these two locations in the `_Py_InitializeCore()` function: https://github.com/python/cpython/blob/master/Python/pylifecycle.c#L693-L694

[issue32980] Remove functions that do nothing in _Py_InitializeCore()

2018-03-01 Thread Thomas Nyberg
Change by Thomas Nyberg : -- keywords: +patch pull_requests: +5719 stage: -> patch review ___ Python tracker ___

[issue32979] dict get() function equivalent for lists.

2018-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was suggested a year ago. See the topic "get() method for list and tuples" on the Python-ideas mailing list. https://mail.python.org/pipermail/python-ideas/2017-February/044839.html -- nosy: +serhiy.storchaka

[issue32979] dict get() function equivalent for lists.

2018-03-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes, this was discussed and rejected several years ago. Thank you for the suggestion. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 0e06be836ca0d578cf9fc0c68979eb682c00f89c by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': Add What's new entry for datetime.fromisoformat (GH-5559) (GH-5939)