[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Tal Einat
Tal Einat added the comment: ISTM that this issue can finally be closed! Followup on some remaining minor points brought up here, such as colors and squeezing of multiple output lines printed separately, could be done in separate issues or discussed on idle-dev. --

[issue34804] Repetition of 'for example' in documentation

2018-09-25 Thread Aydin
New submission from Aydin : In the documentation of Python 3.7.0 there is an error in the usage of the world 'for example'. -- assignee: docs@python components: Documentation files: Functional Programming HOWTO — Python 3.7.0 documentation.png messages: 326418 nosy: docs@python,

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 12e3e80241e91df79811f53ff372e28e9371bf9b by Miss Islington (bot) in branch '3.7': bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624) https://github.com/python/cpython/commit/12e3e80241e91df79811f53ff372e28e9371bf9b --

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8984 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8983 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 2aaf98c16ae3070378de523a173e29644037d8bd by Miss Islington (bot) (INADA Naoki) in branch 'master': bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2018-09-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34802] asyncio.iscoroutine() documentation is wrong

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I believe this was done as part asyncio docs overhaul and I am adding Yury here. The current docs link to #coroutine from asyncio.iscoroutine whereas the previous docs had the definition inline. I think this is clarified in

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: You can always do: import argparse foo = int(1e3) # Works: foo = 1000 parser = argparse.ArgumentParser() parser.add_argument( "--foo", type=lambda x: int(float(x))) parser.parse_args( ["--foo=1e3"] ) -- ___

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The conversion fails because is trying to convert a string, not a float: >>> int("1e3") *** ValueError: invalid literal for int() with base 10: '1e3' -- nosy: +pablogsal ___ Python tracker

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8982 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09 by Vinay Sajip (Cheryl Sabella) in branch 'master': bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) https://github.com/python/cpython/commit/d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Great, thanks. I've made the other changes to the PR. -- ___ Python tracker ___ ___

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Jesse Hostetler
Jesse Hostetler added the comment: I suppose desired behavior would be to accept the argument only if it can be converted to int without loss of information. -- ___ Python tracker

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Jesse Hostetler
New submission from Jesse Hostetler : The 'argparse' module gives a parse error for integer arguments written in scientific notation. I would expect this to work, since integers can be constructed from literals in scientific notation. Example (also attached): import argparse foo = int(1e3)

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-25 Thread Tomáš Bouda
Tomáš Bouda added the comment: Oh, I should add that by decreasing number of workers to 4 or 8 the problem disappeared, at least to the extent when I wasn't able to reproduce it on any environment. -- ___ Python tracker

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-25 Thread Tomáš Bouda
Tomáš Bouda added the comment: It's very difficult to reproduce. In this example to get stuck on 3.6/OSX I need to attach debugger. However, the freeze happens regardless of print/logging, even def f(): pass can get stuck. os.write() made no difference and frozen, as well, as I've just

[issue27934] json float encoding incorrect for dbus.Double

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agreed. It is too late. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27934] json float encoding incorrect for dbus.Double

2018-09-25 Thread Mark Dickinson
Mark Dickinson added the comment: [Serhiy] > I have doubts about breaking it in a bugfix release of 2.7. Yes, possibly we shouldn't have changed this (though it's a fairly horrible trick, IMO). I don't think it would be a good idea to revert the change at this point, though. --

[issue34802] asyncio.iscoroutine() documentation is wrong

2018-09-25 Thread Gefn
New submission from Gefn : The documentation states that "This method is different from inspect.iscoroutine() because it returns True for generator-based coroutines decorated with @coroutine." It seems to be wrong, a method written as follow: def test(): yield 1 will be evaluated as a

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
silane added the comment: I've made a pull request. Please look at it. And this is my first pull request, so please let me know if something wrong. https://github.com/python/cpython/pull/9578 -- ___ Python tracker

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
Change by silane : -- keywords: +patch pull_requests: +8980 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue30964] Mention ensurepip in package installation docs

2018-09-25 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I couldn't reproduce with Python 3.6.5 on Ubuntu 18.04. Does it happen if you reduce logging? Or if you replace f() with: def f(i): os.write(1, "{}\n".format(i).encode()) -- ___ Python tracker

[issue10694] zipfile.py end of central directory detection not robust

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change significantly increased the probability of false positive detection in is_zipfile(). It was around 1/2**32, now it is around 1/2**16. It looks small, but not enough small if you test hundreds of thousands files. See issue28494. --

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread R. David Murray
R. David Murray added the comment: An unlimited line length would certainly satisfy the required minimum. As silane indicates, if max_line_length is 0 or None, the serializer is not supposed to wrap lines. (In fact one would like to have the option to control this separately for the

[issue5950] Make zipimport work with zipfile containing comments

2018-09-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 5a5ce064b3baadcb79605c5a42ee3d0aee57cdfc by Barry Warsaw (Zackery Spytz) in branch 'master': bpo-5950: Support reading zips with comments in zipimport (#9548) https://github.com/python/cpython/commit/5a5ce064b3baadcb79605c5a42ee3d0aee57cdfc

[issue5950] Make zipimport work with zipfile containing comments

2018-09-25 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- components: +Library (Lib) -Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK there is no a plan for 4.0. But seems many core developers (including me) think that changing the major number should reflect some major changes like removing GIL. And Guido preferred 3.10 after 3.9. --

[issue34751] Hash collisions for tuples

2018-09-25 Thread Tim Peters
Tim Peters added the comment: >> j is even implies (j ^ -3) == -(j ^ 3) > This follows from what I posted before: if j is even, then > j ^ 3 is odd, so we can apply the rule x ^ -2 = -x to x = j ^ 3 > ... Thanks! That helps a lot. I had a blind spot there. This kind of thing would have

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: PendingDeprecationWarning -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Nicolas Hug
Nicolas Hug added the comment: Thanks for the link, But I don't see any justification for this behavior*? Why should lists be compacted but not dicts (even when explicitly asked)? At the very least it should be made clear in the documentation that dicts are not compacted. * Maybe there's

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 3cc9557d9f03086fa3b0ea166f8506087e6950e3 by Miss Islington (bot) in branch '3.7': bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)

[issue34789] Make xml.sax.make_parser accept iterables

2018-09-25 Thread Andrés Delfino
Change by Andrés Delfino : -- components: +XML -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34789] Make xml.sax.make_parser accept iterables

2018-09-25 Thread Andrés Delfino
Change by Andrés Delfino : -- components: +Library (Lib) -Documentation title: doc xml.sax.make_parser expects a list not just any sequence -> Make xml.sax.make_parser accept iterables ___ Python tracker

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: Actually, since Andrew also agrees that we need to deprecate passing coroutines to wait(), I'll keep this issue open until we add an actual DeprecationWarning in 3.8. -- resolution: fixed -> stage: resolved -> status: closed -> open

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8979 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 996859a90df51f84eab47351702cb59c6db4428a by Yury Selivanov in branch 'master': bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543) https://github.com/python/cpython/commit/996859a90df51f84eab47351702cb59c6db4428a

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks much Serhiy for the details! -- ___ Python tracker ___ ___ Python-bugs-list

[issue32750] lib2to3 log_error method behavior is inconsitent with documentation

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Nick for the details. I think 2to3 uses StdoutRefactoringTool [1] which inherits from RefactoringTool in the chain and implements log_error [2] that logs the error. StdoutRefactoringTool inherits from MultiprocessRefactoringTool [3] which

[issue34766] BaseProxy cache should be cleaned when Manager client is reconnected

2018-09-25 Thread Yongnan Wu
New submission from Yongnan Wu : BaseProxy class in multiprocessing has an internal cache _address_to_local that is only cleaned when Manager server gets shutdown. If a Manager is used as client, the cache should to be cleaned when a new connection is created by Manager. --

[issue34789] doc xml.sax.make_parser expects a list not just any sequence

2018-09-25 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +8978 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is on purpose. See issue19132. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Nicolas Hug
Nicolas Hug added the comment: Sorry: [2] https://github.com/scikit-learn/scikit-learn/pull/11705/files#diff-f83e8d9362766b385472f1be7fed9482R96 -- ___ Python tracker ___

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Nicolas Hug
Nicolas Hug added the comment: Thank you for the feedback! I'll try the python-ideas mail list. I posted a message on Python-list [1] a few weeks ago but it didn't get much traction. I'm not sure about what the final solution could be (if any), but I had to hack pprint myself [2] for the

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Nicolas Hug
Change by Nicolas Hug : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks silane for the report and script. The case where max_line_length=0 causing ValueError was introduced with b938c8c25316b69f1d5df2c7880a9f6b87e7c2fa and the code at [0] has some comments regarding the minimum value to be 4 characters. There

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset dc335ae77dfc1fb6a500eb1cd0baf23fcda45434 by Miss Islington (bot) in branch '3.6': bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573) https://github.com/python/cpython/commit/dc335ae77dfc1fb6a500eb1cd0baf23fcda45434 --

[issue34801] codecs.getreader() splits lines containing control characters

2018-09-25 Thread Neil Schemenauer
New submission from Neil Schemenauer : This seems to be a bug in codecs.getreader(). io.TextIOWrapper(fp, encoding) works correctly. -- files: codecs_bug.py messages: 326382 nosy: nascheme priority: low severity: normal status: open title: codecs.getreader() splits lines containing

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset b2ae5502981ae7e8fc080f5155060235696afe22 by Miss Islington (bot) in branch '3.7': bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573) https://github.com/python/cpython/commit/b2ae5502981ae7e8fc080f5155060235696afe22 --

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8977 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8976 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 22ef31d0b4b497eda5e356528c3e1d29584d6757 by Terry Jan Reedy in branch 'master': bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573) https://github.com/python/cpython/commit/22ef31d0b4b497eda5e356528c3e1d29584d6757 --

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report Nicolas. I looked into the code and it seems that pprint for a dictionary now doesn't really take compact into account. List, sets, tuple and dequeue use _format_items [0] that honors value of compact but dictionary

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the review Pablo. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread STINNER Victor
STINNER Victor added the comment: The issue should now be fixed. Reopen it if it is not the case. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12806] argparse: Hybrid help text formatter

2018-09-25 Thread Perette Barella
Perette Barella added the comment: I would find this a useful feature. -- nosy: +perette ___ Python tracker ___ ___

[issue34751] Hash collisions for tuples

2018-09-25 Thread Tim Peters
Tim Peters added the comment: > Suppose that there is a hash collision, say hash((3, 3)) == > hash((-3, -3)) and you change the hashing algorithm to fix > this collision. There are _two_ hash functions at play in that collision: the tuple hash function, and the integer hash function.

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset fdcb5ae25c0b5c82a32955617d253810ef110cac by Terry Jan Reedy in branch 'master': bpo-1529353: IDLE - Squeezer What's New for 3.8 (#9572) https://github.com/python/cpython/commit/fdcb5ae25c0b5c82a32955617d253810ef110cac --

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: See my 3.6/3.7 patches for how I now handle new-in-maintenance-release user-visible features in What's New. Note that there are similar entries for Python at the bottom of the file. If I were not rushing, I would have mentioned user colors in text view.

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-09-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +8975 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +8974 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 3637e68d7c92eda0b80e6ab3f58610e1cfb4f1d8 by Miss Islington (bot) in branch '3.7': bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (GH-9568) https://github.com/python/cpython/commit/3637e68d7c92eda0b80e6ab3f58610e1cfb4f1d8 --

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 92ad2612bef198f2e3f8f09bf552189e27afcc4e by Miss Islington (bot) in branch '3.7': bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567) https://github.com/python/cpython/commit/92ad2612bef198f2e3f8f09bf552189e27afcc4e --

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 98c8236cc75529407e305f26de95d9e72a72a0eb by Miss Islington (bot) in branch '3.6': bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567) https://github.com/python/cpython/commit/98c8236cc75529407e305f26de95d9e72a72a0eb --

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8973 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ea718d377db3941ecfc86288a3465fce653cc682 by Terry Jan Reedy in branch 'master': bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (#9568) https://github.com/python/cpython/commit/ea718d377db3941ecfc86288a3465fce653cc682 --

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8972 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8971 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset dac712d51667227ce3862fc61be6a8094b1066fa by Terry Jan Reedy in branch 'master': bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (#9567) https://github.com/python/cpython/commit/dac712d51667227ce3862fc61be6a8094b1066fa --

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 857b0028c0832c3159927489bc55f802bc5146cb by Miss Islington (bot) in branch '3.6': bpo-33937: Catch ENOMEM error in test_socket (GH-9557) https://github.com/python/cpython/commit/857b0028c0832c3159927489bc55f802bc5146cb --

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +8970 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +8969 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset ef1173ab141ba5387598f8859ba96f98d20d743e by Miss Islington (bot) in branch '3.7': bpo-33937: Catch ENOMEM error in test_socket (GH-9557) https://github.com/python/cpython/commit/ef1173ab141ba5387598f8859ba96f98d20d743e -- nosy:

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-25 Thread Eric Snow
Eric Snow added the comment: > Conversion is happens when type() (or metaclass()) is called. Right. So an extra test to cover the __prepare__ case is somewhat redundant. I only suggested it because type() is called implicitly and the test would make the conversion case clear. However, it

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
Change by silane : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

2018-09-25 Thread STINNER Victor
STINNER Victor added the comment: Thank you for the review Yury ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8968 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8967 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
New submission from silane : The document of the email.policy.Policy says max_line_length=0 or None indicates that no line wrapping should be done at all. But email.contentmanager doesn't handle this properly and raises error when calling set_content() with bytes or non-ascii str. ---Code to

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 46f40be8b907854deb81c6132b7cb038e9e5202a by Victor Stinner in branch 'master': bpo-33937: Catch ENOMEM error in test_socket (#9557) https://github.com/python/cpython/commit/46f40be8b907854deb81c6132b7cb038e9e5202a --

[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 6ea29c5e90dde6c240bd8e0815614b52ac307ea1 by Yury Selivanov (Victor Stinner) in branch 'master': bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538) https://github.com/python/cpython/commit/6ea29c5e90dde6c240bd8e0815614b52ac307ea1

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-25 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34799] When function in tracing returns None, tracing continues.

2018-09-25 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : https://docs.python.org/3/library/sys.html#sys.settrace explicitly states: The local trace function should return a reference to itself (or to another function for further tracing in that scope), or None to turn off tracing in that scope. Yet, it seems

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset c8c0249c9e8f61ab7670119a5a5278354df27bbb by Miss Islington (bot) (Joe Pamer) in branch 'master': bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372)

[issue27526] test_venv.TestEnsurePip fails mysteriously when /tmp is too small

2018-09-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Nicolas Hug
New submission from Nicolas Hug : Dict representations that exceed the line width are printed with one line per key-value pair, ignoring the compact=True parameter: >>> pprint.pprint({i: 0 for i in range(15)}, compact=True) {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0,

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-25 Thread INADA Naoki
INADA Naoki added the comment: Conversion is happens when type() (or metaclass()) is called. And I added test for it already. https://github.com/python/cpython/pull/8624/files#diff-7ba610fbe5686a1d67c5504312be4817R1977 Why regression test for this bugfix need to use __prepare__? --

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-25 Thread Eric Snow
Eric Snow added the comment: There is a conversion. See builtin___build_class__ in Python/bltinmodule.c (and the LOAD_BUILD_CLASS target in Python/ceval.c). Specifically, the metaclass (e.g. the builtin type) is instantiated using the namespace from the class definition. The metaclass

[issue34794] memory leak in TkApp:_createbytearray

2018-09-25 Thread David Talkin
David Talkin added the comment: Attached please find a Python script that demonstrates the bug. David On Tue, Sep 25, 2018 at 2:55 AM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > Thanks for the report David. Feel free to

[issue25095] test_httpservers hangs since Python 3.5

2018-09-25 Thread William Pickard
Change by William Pickard : -- pull_requests: +8966 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2018-09-25 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: test comment -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2018-09-25 Thread Ernest W. Durbin III
Change by Ernest W. Durbin III : -- nosy: +EWDurbin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34736] Confusing base64.b64decode output

2018-09-25 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +8965 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread Vinay Sajip
Change by Vinay Sajip : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: > I'm wondering if there should be a change to `format()` to add an else There's no need; the field is initialised to None in the LogRecord constructor and then only set later if there is a traceback to be cached. > I think the cutoff for 3.7.1 was yesterday,

  1   2   >