[issue31567] Inconsistent documentation around decorators

2017-09-24 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: I can see inconsistency in library documentation around functions that are suitable for decorators. I'd like to clarify if it is based on my misunderstanding, or a real documentation problem. Examples: - https://docs.python.org/3/library/functions.html#st

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-09-24 Thread INADA Naoki
INADA Naoki added the comment: Nice idea! I think it helps not only sharing more memory for forking application, but also long running large application. There are many static objects which is tracked by GC. It makes full GC time long. And CPU cache is filled by unused data. For example, web w

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-09-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-09-24 Thread INADA Naoki
INADA Naoki added the comment: AFAIK, Python shutdown process calls full GC. Don't touching permanent generation makes shutdown faster. On the other hand, there are some downside: * Some object may be not freed while shutdown. It looks like "leak" for application embedding Python interpreter.

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset 86a713cb0c110b6798ca7f9e630fc511ee0a4028 by larryhastings (Victor Stinner) in branch '3.4': [3.4][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3353) https://github.com/python/cpython/commit/86a713cb0c110b6798ca7f9e630fc511ee0

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset 86a713cb0c110b6798ca7f9e630fc511ee0a4028 by larryhastings (Victor Stinner) in branch '3.4': [3.4][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3353) https://github.com/python/cpython/commit/86a713cb0c110b6798ca7f9e630fc511ee0

[issue30152] Reduce the number of imports for argparse

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Got rid of importing errno as Victor suggested. In gettext its import is deferred. It is only used in one exceptional case. In os errno no longer used. Initially errno was imported in os inside a function. The import was moved at module level for fixing issu

[issue31566] assertion failure in _warnings.warn() in case of a bad __name__ global

2017-09-24 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch pull_requests: +3701 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31505] assertion failure in json, in case _json.make_encoder() received a bad encoder() argument

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2b382dd6121bb1e4b75470fb3ef8555665df3eb6 by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received a bad encoder() argument. (#3643) https://github.com/python/cpytho

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: Oh, and, Victor, I tagged you with this because git blame says you're the most person to touch PYTHON_FOR_REGEN in the makefile, checkin ab6b962ef24 . -- ___ Python tracker _

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread Larry Hastings
New submission from Larry Hastings: On Python 3.5, the makefile pseudotarget "regen-opcode" now fails if "python3.5" can't be found on the path. What's strange is that the configure script scans to see if it can find "python3.5", and it thinks it can, but then actually attempting to run it fa

[issue31415] Add -X option to show import time

2017-09-24 Thread INADA Naoki
INADA Naoki added the comment: > If this proposition be accepted I would want to see not only cumulated times, > but also pure times, without time of nested imports. It can be calculated by script. I don't want to add more complexity to import.c. > I guess this feature doesn't work correctly w

[issue31311] a SystemError and a crash in PyCData_setstate() when __dict__ is bad

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4facdf523aa6967487a9425f124da9661b59fd43 by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31311: Impove error reporting in case the first argument to PyCData_setstate() isn't a dictionary. (#3255) https://github.com/python/cpython/comm

[issue31311] a SystemError and a crash in PyCData_setstate() when __dict__ is bad

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I thought about this issue so long because I can't find good cause for __dict__ to be not a dict. Defining the __dict__ method or property doesn't affect instance dictionary and attributes lookup. It just breaks the __setstate__ method. Without having good e

[issue31415] Add -X option to show import time

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Stack management is difficult than inc/dec integer in multi threading case. Actually it is easy. You need just one global integer accumulator and a local variable for keeping a temporary copy of it. -- ___ Pytho

[issue30346] Odd behavior when unpacking `itertools.groupby`

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead with PR 1569 to exhaust the inner iterator when the outer iterator advances. Rationale: The OP expected the inner iterator to be exhausted. That is also what the PyPy team originally implemented and it is what I would have expected. Also, there

[issue30346] Odd behavior when unpacking `itertools.groupby`

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c247caf33f6e6000d828db4762d1cb12edf3cd57 by Serhiy Storchaka in branch 'master': bpo-30346: An iterator produced by the itertools.groupby() iterator (#1569) https://github.com/python/cpython/commit/c247caf33f6e6000d828db4762d1cb12edf3cd57

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

2017-09-24 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, it is - while there's no venv integration in 2.7 (since there's no venv module), ensurepip itself is essentially identical across the two version, so 2.7 will suffer from the same problem. -- stage: patch review -> backport needed versions: -Python

[issue30346] Odd behavior when unpacking `itertools.groupby`

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review and explanations Raymond. This makes sense to me. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue30346] Odd behavior when unpacking `itertools.groupby`

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added the patch for PR 1568 against the current master just for history. -- Added file: https://bugs.python.org/file47167/groupby-invalid.diff ___ Python tracker ___

[issue31550] Inconsistent error message for TypeError with subscripting

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it should. But let to hear Raymond's arguments. -- ___ Python tracker ___ ___ Python-bugs

[issue27319] Multiple item arguments for selection operations

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2fad10235460ac394cc8b869c41f47aba3d63594 by Serhiy Storchaka in branch 'master': bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (#3667) https://github.com/python/cpython/commit/2fad10235460ac394cc8b869c41f47aba3d63594

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2fad10235460ac394cc8b869c41f47aba3d63594 by Serhiy Storchaka in branch 'master': bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (#3667) https://github.com/python/cpython/commit/2fad10235460ac394cc8b869c41f47aba3d63594

[issue27319] Multiple item arguments for selection operations

2017-09-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3702 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3703 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31569] inconsistent case of PCbuild/ directory

2017-09-24 Thread Stefan Grönke
New submission from Stefan Grönke: While reading the build documentation for Windows, I've noticed the `PCbuild/` directory to be mentioned with a different case than the directory in the repository (`PCBuild/` instead of `PCbuild/`). Every occasion of `PCBuild` should be replaced with `PCbuil

[issue31569] inconsistent case of PCbuild/ directory

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be easier to make changes in the opposite direction? Change PCbuild to PCBuild? The file systems on Windows are case-insensitive, so this hardly an error. -- nosy: +serhiy.storchaka ___ Python tracker

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e31eca45e548bf6f439d540f3751516acbc31689 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (GH-3667) (#3719) https://github.com/python/cpython/commit/e31eca45e5

[issue27319] Multiple item arguments for selection operations

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e31eca45e548bf6f439d540f3751516acbc31689 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (GH-3667) (#3719) https://github.com/python/cpython/commit/e31eca45e5

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Warnings are fixed in 3.7. They will reappear in 3.8. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-24 Thread STINNER Victor
STINNER Victor added the comment: Thank you for the fix Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue31569] inconsistent case of PCbuild/ directory

2017-09-24 Thread Paul Moore
Paul Moore added the comment: I would strongly prefer the docs to be changed to match the implementation rather than the other way round. However, I don't see the use case for this - what case sensitive filesystem would anybody be building the Windows version of Python on? I'm -1 on changing

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Larry Myerscough
New submission from Larry Myerscough: I believe the documentation page https://docs.python.org/3/library/email.examples.html contains a minor error: href="http://www.yummly.com/recipe/Roasted-Asparagus-Epicurious-203718 ...should be followed by a closing double quote. This is a small detail bu

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Larry Myerscough
Changes by Larry Myerscough : -- assignee: -> docs@python components: +Documentation, email nosy: +barry, docs@python, r.david.murray ___ Python tracker ___ ___

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

2017-09-24 Thread Guilherme Praciano Karst Caminha
New submission from Guilherme Praciano Karst Caminha: The file Doc/reference/lexical_analysis.rst has at least two redundant parts. The first one is quoted below: "As of Python 3.3 it is possible again to prefix string literals with a u prefix to simplify maintenance of dual 2.x and 3.x codebas

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar : -- keywords: +patch pull_requests: +3706 stage: -> patch review ___ Python tracker ___ ___ Python-bu

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

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first pair was added in 50364b4a5c8f02ec05d33928e29a8780d9acf968 by Armin Ronacher. The duplicate of the other phrase was introduced in 60f2f0cf8e10c94693dfea8937b7feabeffe5744. -- nosy: +aronacher, gvanrossum, serhiy.storchaka

[issue31423] Error while building PDF documentation

2017-09-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Seems like people are seeing 404s when downloading docs today. By any chance this issue is related? -- nosy: +Mariatta ___ Python tracker ___

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

2017-09-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I think we can remove ``` As of Python 3.3 it is possible again to prefix ..." ``` and keep the other one where it says: ``` .. versionadded:: 3.3 Support for the unicode legacy literal ``` About the sentence about numeric literals that appears twice:

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

2017-09-24 Thread Guilherme Praciano Karst Caminha
Guilherme Praciano Karst Caminha added the comment: I believe that the sentence regarding the - operator also applies to Integer literals and Imaginary literals. But it only appears on the Floating point literals and Numeric literals sections. -- __

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

2017-09-24 Thread Guilherme Praciano Karst Caminha
Guilherme Praciano Karst Caminha added the comment: Also, "Numeric literals" is a more general section, so rules that apply for the three types of numeric literals should probably go there to avoid repetition. Maybe the Integer, Floating point and Imaginary literal sections should be one secti

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: I have made a PR, not sure whether it needs backporting? -- nosy: +Henk-Jaap Wagenaar ___ Python tracker ___ __

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3707 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset ce418bf8228c9a6a19702638e5f5c2fb66ad0588 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-31570: Update Email library documentation example (GH-3720) (GH-3721) https://github.com/python/cpython/commit/ce418bf8228c9a6a19702638e5f5c2fb66ad05

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: This is fixed now. Thanks Larry and Henk-Jaap! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker __

[issue27268] Incorrect error message on float('')

2017-09-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue31550] Inconsistent error message for TypeError with subscripting

2017-09-24 Thread Anthony Sottile
Anthony Sottile added the comment: Shouldn't you wait for Raymond's arguments before outright closing the PR? -- ___ Python tracker ___ _

[issue31423] Error while building PDF documentation

2017-09-24 Thread Ned Deily
Ned Deily added the comment: > Seems like people are seeing 404s when downloading docs today. Do you have specific URLs or web pages? Or a link to where this was discussed? I just did a quick look at some of the download pages and everything worked for me. -- __

[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: Nick, what do you think about this proposal? The problem being solved is that decorated tuples no longer work well for controlling ordering (because so many types are now non-comparable). This provides a wrapper to control which fields are used in comparis

[issue27268] Incorrect error message on float('')

2017-09-24 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar : -- pull_requests: +3708 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27268] Incorrect error message on float('')

2017-09-24 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: @Wolfgang I just created a PR, only to realise that Pedro already made one a while back: PR 2745 -- nosy: +Henk-Jaap Wagenaar ___ Python tracker

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

2017-09-24 Thread Steven Warwick
Steven Warwick added the comment: you probably have already considered this, but I just wanted to ask if it might be worth considering turning the problem "upside down" to make things easier. I'm interpreting the problem that there are variables we'd like to add to the output log that are pr

[issue30085] Discourage operator.__dunder__ functions

2017-09-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Initially hasattr() suppressed all raised exceptions. In issue2196 hasattr() was changed to suppress only Exception exceptions and propagate exceptions like SystemExit and KeyboardInterrupt. In issue9666 hasattr() was changed to suppress only AttributeErro

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: After looking at this again, I think the entire example should be removed. We really don't want to encourage people to code like this (it would never make it through a code review). The example itself is silly (not fully, just weird and lacking real-world

[issue31415] Add -X option to show import time

2017-09-24 Thread INADA Naoki
INADA Naoki added the comment: > Actually it is easy. You need just one global integer accumulator and a local > variable for keeping a temporary copy of it. You're right! I updated my pull request. See current output: https://gist.github.com/methane/185d75a3c8da762d85317dd95918a623

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3709 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3710 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3711 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3712 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3713 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3714 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3715 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31285] a SystemError and an assertion failure in warnings.warn_explicit()

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 91fb0afe181986b48abfc6092dcca912b39de51d by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31285: Fix an assertion failure and a SystemError in warnings.warn_explicit. (#3219) https://github.com/python/cpython/commit/91fb0afe181986b48ab

[issue31566] assertion failure in _warnings.warn() in case of a bad __name__ global

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5d3e80021ab33360191eb0fbff34e0246c913884 by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31566: Fix an assertion failure in _warnings.warn() in case of a bad __name__ global. (#3717) https://github.com/python/cpython/commit/5d3e80021a

[issue31566] assertion failure in _warnings.warn() in case of a bad __name__ global

2017-09-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3716 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30085] Discourage operator.__dunder__ functions

2017-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5b9299d8c72aeadccadd77e4b8132094ba9a1f96 by Terry Jan Reedy (Sanket Dasgupta) in branch 'master': bpo-30085: Improve documentation for operator (#1171) https://github.com/python/cpython/commit/5b9299d8c72aeadccadd77e4b8132094ba9a1f96 --

[issue30085] Discourage operator.__dunder__ functions

2017-09-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ _

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

2017-09-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks :) Since Miss Islington couldn't backport this, I'll leave it to the patch author or the core dev who merged the PR ;) -- ___ Python tracker

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3717 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue18558] Iterable glossary entry needs clarification

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll follow David Murray's suggestion here. The glossary definition of iterable is already very good, it just needs to clarify that the __getitem__() method needs to implement sequence semantics. Anything further is beyond the scope of a glossary entry.

[issue18558] Iterable glossary entry needs clarification

2017-09-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch pull_requests: +3718 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31561] difflib pathological behavior with mixed line endings

2017-09-24 Thread Mahmoud Al-Qudsi
Mahmoud Al-Qudsi added the comment: @tim.peters No, `icdiff` is not part of core and probably should be omitted from the remainder of this discussion. I just checked and it's actually not a mix of line endings in each file, it's just that one file is \n and the other is \r\n You can actually

[issue31415] Add -X option to show import time

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido, is this something you want? Historically, we've shown a lot of restraint when it comes to adding command-line options. Also, I'm not sure we want to induce people to start moving their imports inside function calls. Just because we sometimes adop

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

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Vinay Sajip] > I don't think the ways of doing this are bulletproof and > require too much cooperation between third-party libraries. I concur with all of Vinay's comments. If logging were being redesigned from scratch, it would likely use new-style for

[issue31507] email.utils.parseaddr has no docstring

2017-09-24 Thread Rohit Balasubramanian
Changes by Rohit Balasubramanian <98bro...@gmail.com>: -- pull_requests: +3719 ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2017-09-24 Thread Igor Filatov
Changes by Igor Filatov : -- pull_requests: +3720 stage: backport needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31507] email.utils.parseaddr has no docstring

2017-09-24 Thread Rohit Balasubramanian
Changes by Rohit Balasubramanian <98bro...@gmail.com>: -- pull_requests: +3721 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the tutorial For section needs be updated to include non-sequences. A dict example will help with that. I agree that the unrealistic insert mis-directs attention and like Raymond's replacement. ['users.copy()' should be 'users.copy().items'] ---

[issue31566] assertion failure in _warnings.warn() in case of a bad __name__ global

2017-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 415cc1fa57710614ed3384d0cafc58ccf7adee8c by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31566: Fix an assertion failure in _warnings.warn() in case of a bad __name__ global. (GH-3717) (#3730) https://github.com/python/cpy

[issue30085] Discourage operator.__dunder__ functions

2017-09-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3722 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30085] Discourage operator.__dunder__ functions

2017-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d38caf68bb417232fb0ccecb5558d7d0ca4a9507 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30085: Improve documentation for operator (GH-1171) (#3736) https://github.com/python/cpython/commit/d38caf68bb417232fb0ccecb5558d7d0ca4a

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch pull_requests: +3723 stage: needs patch -> patch review ___ Python tracker ___ ___ Py

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread STINNER Victor
STINNER Victor added the comment: The Travis CI error is: --- python3.5 ./Objects/typeslots.py \ < ./Include/typeslots.h \ ./Objects/typeslots.inc pyenv: python3.5: command not found pyenv: python3.5: command not found The `python3.5' command exists in these P

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

2017-09-24 Thread Steven Warwick
Steven Warwick added the comment: sorry, I meant the following: logger.info( " {:s} {:s} ".format(logger.name, logger.module ) ) or logger.info( f" {logger.name:s} {logger.module:s} " ) this could be supported with full backward compatibility with very little effort. Am I missing somet

[issue27385] itertools.groupby has misleading doc string

2017-09-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- pull_requests: +3724 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue31415] Add -X option to show import time

2017-09-24 Thread Guido van Rossum
Guido van Rossum added the comment: @rhettinger > Guido, is this something you want? I think it is useful given how much debate there has been around startup time in various contexts (not just pure interpreter startup time but also startup time when using specific libraries, packages or applic

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

2017-09-24 Thread Guido van Rossum
Guido van Rossum added the comment: Is there anything here that requires my attention? -- ___ Python tracker ___ ___ Python-bugs-list

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset 70c630a7316f9f6063557786442e3c56502fe8ea by larryhastings (Victor Stinner) in branch '3.5': bpo-31568, Travis CI: Fix python3.5 (#3737) https://github.com/python/cpython/commit/70c630a7316f9f6063557786442e3c56502fe8ea -- ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-09-24 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Yes, a public built-in facility to modify a traceback would certainly be useful, although there should be a standard way to "hide" unwanted frames without mutating the traceback, too, and the traceback module seems a perfect place to add it. I have no objecti

[issue31153] Update docstrings of itertools functions

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking this as closed. 1) is being fixed elsewhere, 2) don't want to make func=None an official part of the API (it was a convenience for letting func default to the equivalent of operator.add), 3) already fixed, and 4) already fixed. -- resoluti

[issue28754] Argument Clinic for bisect.bisect_left

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: After more thought, I'm going to close this one because the Argument Clinic and signature objects aren't yet a good fit for this API. The bisect module isn't broken (its API has been successfully living in the wild for a very long time). I do welcome Argu

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-09-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch pull_requests: +3725 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31415] Add -X option to show import time

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Naoki, is it possible to separate out how much of this is I/O vs CPU time? If the I/O dominates, optimizations tend toward zipimports, faster drives, disk caching etc. If the CPU time is dominant, different techniques are used (lazy evaluation, splitting-o

[issue31561] difflib pathological behavior with mixed line endings

2017-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Of course I can understand if all this is out of the scope of difflib and not > an endeavor worth taking up. I agree with that sentiment. Data normalization for comparability belongs upstream from difflib (i.e. normalizing line-endings, unicode normaliza

[issue31561] difflib pathological behavior with mixed line endings

2017-09-24 Thread Tim Peters
Tim Peters added the comment: The text/binary distinction you have in mind doesn't particularly apply to difflib: it compares sequences of hashable objects. "Text files" are typically converted by front ends to lists of strings, but, e.g., the engine is just as happy comparing tuples of floa

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset f2492bb6aae061aea47e21fc7e56b7ab9bfdf543 by larryhastings (Victor Stinner) in branch '3.5': [3.5][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3354) https://github.com/python/cpython/commit/f2492bb6aae061aea47e21fc7e56b7ab9bf

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset f2492bb6aae061aea47e21fc7e56b7ab9bfdf543 by larryhastings (Victor Stinner) in branch '3.5': [3.5][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3354) https://github.com/python/cpython/commit/f2492bb6aae061aea47e21fc7e56b7ab9bf

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

2017-09-24 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset cf7197ae43767c4346864e5b41246f628edd9b51 by Nick Coghlan (Igor Filatov) in branch '2.7': [2.7] bpo-31351: Set return code in ensurepip when pip fails (GH-3734) https://github.com/python/cpython/commit/cf7197ae43767c4346864e5b41246f628edd9b51 -

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

2017-09-24 Thread Nick Coghlan
Nick Coghlan added the comment: And done - thanks for the report and PRs, Igor! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

  1   2   >