[issue31145] PriorityQueue.put() fails with TypeError if priority_number in tuples of (priority_number, data) are the same.

2017-09-24 Thread Nick Coghlan
Nick Coghlan added the comment: The main downside I see to that approach is that it would still require quite a few client code changes to restore compatibility for folks upgrading from 2.7, and even though six could add a "six.Prioritize" backport, it would still be difficult for automated to

[issue31356] Add context manager to temporarily disable GC

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Assigning this to Lisa for a C implementation, docs, and tests. -- assignee: -> lisroach nosy: +lisroach ___ Python tracker ___ ___

[issue31553] Extend json.tool to handle jsonlines (with a flag)

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Eric, did you want to write the PR yourself or would you like for Lisa to bring it to fruition? If you're going to do it yourself, Lisa will serve as the primary reviewer (with either Ezio or me doing the final sign-off). -- assignee: -> lisroach

[issue31145] PriorityQueue.put() fails with TypeError if priority_number in tuples of (priority_number, data) are the same.

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: We already have recommendations in the heapq documentation on how to do a work-around. I'm looking at the more general problem of how can we make it easy once again to decorate a value with a sort value (not just for heaps but for anyplace where compariso

[issue31415] Add -X option to show import time

2017-09-24 Thread INADA Naoki
INADA Naoki added the comment: I don't have any good idea for it. I usually run `python -X importtime -c 'import functools'` several times to ensure pyc files are created and it is cached by OS. On Linux, `strace -c` and `time` command can be used. But I don't know cross platform way to do it.

[issue30995] Support logging.getLogger(style='{')

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > logger.info( f" {logger.name:s} {logger.module:s} " ) > > this could be supported with full backward compatibility > with very little effort. > > Am I missing something? One issue is that some of that data isn't known until the logging.info() call is

[issue28754] Argument Clinic for bisect.bisect_left

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the itertools module has many functions that can have the ArgumentClinic applied without any fundamental problems (pretty much all of the functions will work except for repeat(), accumulate(), and islice()). -- ___

[issue31131] asyncio.wait_for() TimeoutError doesn't provide full traceback

2017-09-24 Thread Surenkumar Nihalani
Surenkumar Nihalani added the comment: this'd be useful to me as well. I'd propose we pass the future in the exception object. Can write a write a tiny patch for this if someone would approve. -- nosy: +snihalani ___ Python tracker

[issue31475] Bug in argparse - not supporting utf8

2017-09-24 Thread INADA Naoki
INADA Naoki added the comment: ping? May I close this issue and pull request? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31145] PriorityQueue.put() fails with TypeError if priority_number in tuples of (priority_number, data) are the same.

2017-09-24 Thread Nick Coghlan
Nick Coghlan added the comment: My rationale for asking "What if we just changed heapq back to working closer to the way it used to work?" is that it's a case where arbitrarily ordering unorderable tuples made sense, and reverting it to the old behaviour is reasonably safe: - some Py3 heapq c

[issue31475] Bug in argparse - not supporting utf8

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Guido, in 60f2f0cf8e10c94693dfea8937b7feabeffe5744 you added the phrase "Note that numeric literals do not include a sign; ..." in the "Numeric literals" section. Did you mean moving it from the "Floating point literals" section or creating a duplicate? ---

[issue31351] ensurepip discards pip's return code which leads to broken venvs

2017-09-24 Thread Igor Filatov
Igor Filatov added the comment: Thanks for the reviews, Nick! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

<    1   2