[issue32056] Improve exceptions in Lib/wave.py

2018-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have no idea why this was classified as a vulnerability. I don't think it can crash an application. If you have an example of crashing please provide it. I would not classify this issue even as a bug. It is obvious that

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

2018-02-28 Thread Abhilash Raj
Abhilash Raj added the comment: I should also mention probably that I went ahead and made changes to make this work and I can pass most of the tests, one is failing due to missing `\n` character in the header's value obtained from `msg.get_all('Received')`. I can

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

2018-02-28 Thread Abhilash Raj
New submission from Abhilash Raj : Since Python 3.6 the new EmailMessage API seems to be the default but mailbox.Message still subclasses from the old email.message.Message API. It would be nice to get EmailMessage from mailbox so that one can rely on the new methods

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

2018-02-28 Thread Elias Zamaria
Elias Zamaria added the comment: Mark, you have some good ideas. A fraction modulo a float is a float, and an integer modulo infinity produces itself as a float, so it seems reasonable that a fraction modulo infinity should be itself converted to a float. I tried

[issue32974] Add bitwise operations and other missing comparison methods to Python's IP address module

2018-02-28 Thread Ned Deily
Change by Ned Deily : -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32056] bug in Lib/wave.py

2018-02-28 Thread Ned Deily
Change by Ned Deily : -- keywords: +security_issue -patch nosy: +serhiy.storchaka ___ Python tracker ___

[issue32056] bug in Lib/wave.py

2018-02-28 Thread zhangdeyue
zhangdeyue added the comment: The CVE email: The CVE ID is below. Please check whether the vulnerability still exists in Python 3.6.4, and please inform the software maintainer that the CVE ID has been assigned: https://bugs.python.org Use CVE-2017-18207 for this

[issue32056] bug in Lib/wave.py

2018-02-28 Thread BT123
BT123 added the comment: the bug still in the Python 3.7.0b2 - 2018-02-28 -- versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue32974] Add bitwise operations and other missing comparison methods to Python's IP address module

2018-02-28 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2018-02-28 Thread Jay Crotts
Change by Jay Crotts : -- versions: +Python 3.8 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue32974] Add bitwise operations and other missing comparison methods to Python's IP address module

2018-02-28 Thread Kyle Agronick
New submission from Kyle Agronick : I've recently had the experience of implementing a system for managing DNS records at a Fortune 10 company with ~10,000 stores. There were a number of things that I felt were missing from the IP address module and could be added without

[issue32963] Python 2.7 tutorial claims source code is UTF-8 encoded

2018-02-28 Thread Brett Cannon
Brett Cannon added the comment: https://docs.python.org/2.7/tutorial/interpreter.html#source-code-encoding if people are looking for the doc link. -- nosy: +brett.cannon ___ Python tracker

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue32953] Dataclasses: frozen should not be inherited for non-dataclass derived classes

2018-02-28 Thread Eric V. Smith
Eric V. Smith added the comment: See https://mail.python.org/pipermail/python-dev/2018-February/152320.html for a discussion. -- title: Dataclasses: frozen should not be inherited -> Dataclasses: frozen should not be inherited for non-dataclass derived classes

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
miss-islington added the comment: New changeset 32f5392f64f004382e26a988b1145d2dc96c4978 by Miss Islington (bot) in branch '3.6': bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
miss-islington added the comment: New changeset 7e5763469e2fc9d08a3f6b6205f87f20a1bdd465 by Miss Islington (bot) in branch '3.7': bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5710 stage: needs patch -> patch review ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5711 ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset f0daa880a405c8de6743e44fa46006754aa145c9 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The mapping passed to str.translate must map ints representing codepoints to either either ints or strings. Translate can extract binary codepoints for the new string from either. Ints are slightly faster, so I am inclined not to switch.

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

2018-02-28 Thread Vinay Sajip
Vinay Sajip added the comment: This is not a bug, so I have closed the PR and am closing the issue. You might expect extras to be merged, but you can either pass extras in the constructor (as you have observed) or by subclassing LoggerAdapter and overriding the

[issue32878] Document value of st_ino on Windows

2018-02-28 Thread Alexander Nelson
Alexander Nelson added the comment: Thank you for this fix. -- nosy: +Alexander Nelson ___ Python tracker ___

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

2018-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5709 ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Replacing an expression with a less clear equivalent expression makes no sense to me. Anyway, having __missing__ return 120 reduces the benchmark miss time from 1.2-1.3 to .93, making ParseMis always faster than ParseGet and reducing the

[issue32964] Reuse a testing implementation of the path protocol in tests

2018-02-28 Thread Brett Cannon
Brett Cannon added the comment: FakePath? Otherwise SimplePath seems as good a name as any other one. -- ___ Python tracker ___

[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread John Andersen
John Andersen added the comment: More discussion indeed. I figured I was not alone in my desire to see async test support in the stdlib. Let me know what other changes would be good. -- ___ Python tracker

[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread R. David Murray
R. David Murray added the comment: In order for this to be actually useful, I think we also need a mechanism to set up and run async cleanup methods. In my own project I accomplish this by putting the run_until_complete in a try/finally loop and have an

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Thomas Wouters
New submission from Thomas Wouters : This is a continuation, of sorts, of issue16421; adding most of that issue's audience to the noisy list. When importing the same extension module under multiple names that share the same basename, Python 3 will call the extension

[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread John Andersen
New submission from John Andersen : This makes unittest TestCase classes run `test_` methods which are async -- components: Tests, asyncio messages: 313063 nosy: asvetlov, pdxjohnny, yselivanov priority: normal pull_requests: 5708 severity: normal status: open

[issue13830] codecs error handler is called with a UnicodeDecodeError with the same args

2018-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For reference, this behavior was from beginning, since implementing PEP 293 in issue432401. -- ___ Python tracker

[issue32971] Docs on unittest.TestCase.assertRaises() should be improved

2018-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue32971] Docs on unittest.TestCase.assertRaises() should be improved

2018-02-28 Thread NODA, Kai
Change by NODA, Kai : -- title: unittest.TestCase.assertRaises -> Docs on unittest.TestCase.assertRaises() should be improved ___ Python tracker

[issue32971] unittest.TestCase.assertRaises

2018-02-28 Thread NODA, Kai
New submission from NODA, Kai : https://docs.python.org/dev/library/unittest.html#unittest.TestCase.assertRaises > If only the exception and possibly the msg arguments are given, return a > context manager so that the code under test can be written inline rather than > as a

[issue31013] gcc7 throws warning when pymem.h development header is used

2018-02-28 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> [2.7] Fix -Wnonnull and -Wint-in-bool-context warnings ___ Python tracker

[issue32970] Improve disassembly of the MAKE_FUNCTION instruction

2018-02-28 Thread Serhiy Storchaka via Python-bugs-list
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5707 stage: -> patch review ___ Python tracker ___

[issue32970] Improve disassembly of the MAKE_FUNCTION instruction

2018-02-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR adds decryption of the MAKE_FUNCTION argument (it is a bits set) in the disassembler output. For example: $ echo 'def f(x, y=1, *, z=2): ...' | ./python -m dis 1 0 LOAD_CONST 6 ((1,))

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

2018-02-28 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not quite sure why `Fraction_instance % float_instance` wouldn't simply convert the `Fraction` to a `float` and then use the usual floating-point mod. There's the issue that you want to maintain consistency with the floordiv

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

2018-02-28 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___

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

2018-02-28 Thread Cyril Martin
Cyril Martin added the comment: Hi Stéphane, I ask you a question about the change you suggest. The PR has not progress. Do you wait something from me? -- ___ Python tracker

[issue31013] gcc7 throws warning when pymem.h development header is used

2018-02-28 Thread Petr Viktorin
Petr Viktorin added the comment: This is a duplicate of https://bugs.python.org/issue31474 which was fixed in https://github.com/python/cpython/pull/3581 It should be included in the next Python 2.7.x release. -- nosy: +encukou

[issue13830] codecs error handler is called with a UnicodeDecodeError with the same args

2018-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-02-28 Thread Ma Lin
Ma Lin added the comment: ping, this was forgotten. -- nosy: +Ma Lin ___ Python tracker ___

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-02-28 Thread Ma Lin
Ma Lin added the comment: 3.7.0 beta2 still segmentfault. Finer, please have a look. segmentfault conditions: 64bit Windows 10 (1709) + 32bit Python 3.7.0 Beta2 + Compatibility Mode enabled. (64bit Python doesn't segmentfault) -- nosy: +Segev Finer

[issue32864] Visual glitches when animating ScrolledText instances using place geometry manager

2018-02-28 Thread Victor Domingos
Victor Domingos added the comment: The new beta (Python 3.7.0b2 with Tcl/tk 8.6.8) seems to have that issue solved. Nice! :) -- ___ Python tracker

[issue32969] Add more constants to zlib module

2018-02-28 Thread Xiang Zhang
New submission from Xiang Zhang : Inspired by https://github.com/python/cpython/pull/5511, zlib module in Python lacks some constants exposed by C zlib library, and some constants are not documented. -- assignee: docs@python components: Documentation, Library (Lib)