[issue30287] cpython and Clang Static Analyzer

2017-05-06 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for this. I took a look at the 5 reports for Objects/longobject.c, and I don't think there's any action to be taken on any of them. (Two false positives; two "dead assignments" that are used when asserts are enabled, and one division-by-zero that depend

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2017-05-06 Thread Steve Barnes
Steve Barnes added the comment: Also noted when looking at the code that the validate function, (validate_version), has a couple of issues: - It will allow python major versions 0-9 (at the moment only 2 or 3 are valid). - It will not allow minor versions with more than one digit so if/when

[issue30159] gdb autoloading python-gdb.py

2017-05-06 Thread Дилян Палаузов
Changes by Дилян Палаузов : -- components: +Build ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30159] gdb autoloading python-gdb.py

2017-05-06 Thread Дилян Палаузов
Дилян Палаузов added the comment: This is what I mean. I asked at https://sourceware.org/bugzilla/show_bug.cgi?id=21465 how configure.ac is supposed to be tweaked. diff --git a/Makefile.pre.in b/Makefile.pre.in --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1093,6 +1093,8 @@ $(DESTSHARED

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Do we need to work around this issue at all? Apple appears to have fixed it already: https://github.com/opensource-apple/xnu/commit/0cccba1c831cfe36f0d67d672f8aa67b4a7d4b6a#diff-e61c2932bb9d5cea2dd0732acd8ec626R1783 A comment in https://github.com/curl/cur

[issue26700] Make digest_size a class variable

2017-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm rejecting this one as low value / infeasible. -- assignee: gregory.p.smith -> resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2017-05-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2017-05-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue30285] Optimize case-insensitive regular expressions

2017-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems like a great idea. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue30195] writing non-ascii characters in xml file using python code embedded in C

2017-05-06 Thread mahboubi
Changes by mahboubi : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30267] Deprecate os.path.commonprefix

2017-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: The ``os.path.commonprefix`` function has been around for a very long time. Deprecating it will just cause unnecessary pain for users and make it harder to upgrade to Python 3. The function isn't broken, the only issue here is that a new function was adde

[issue30293] Peephole binops folding can lead to memory and bytecache ballooning

2017-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: A few thoughts: * This is very unlikely to come up in real code. Accordingly, I've marked this a low priority -- the peepholer is over a decade old and seems to work-out fine in actual practice. * The user explicitly asked for 1 << 5 to be computed

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2017-05-06 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.7 -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2017-05-06 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-06 Thread R. David Murray
R. David Murray added the comment: They are not part of the API, that is why they are not documented. The convention of "always" using _ prefixed names for non-API stuff is (relatively) recent. It used to be we just didn't document the non-API stuff. Your second argument is a good motivation

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: The only thing CPython should do is apply workarounds to any standard library internal uses of poll with 0 fds guarded by a MacOS platform check. -- ___ Python tracker _

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Please DO NOT REMOVE select.poll() on MacOS. It is still useful. Apple needs to live with their bug that they refuse to acknowledge by forcing developers to learn the special case that it now breaks in (0 fds). We should not pretend that poll() does not ex

[issue30293] Peephole binops folding can lead to memory and bytecache ballooning

2017-05-06 Thread Martijn Pieters
New submission from Martijn Pieters: The following expression produces 127MB in constants in `co_consts` due to two 63.5MB integer objects produced when folding: ((200*200 - 2) & ((1 << 5) - 1)) + ((200*200 - 2) >> 5) The optimizer already does not store optimized *sequence

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-06 Thread Aviv Palivoda
Aviv Palivoda added the comment: I have 3 argument for the motivation for this change: 1. Cleaner API - Both objects are internal implementation details. I think that we can look on exposing them as a bug. 2. Easier development - When you remove these objects from the API you can change them wi

[issue30220] Why are custom messages for ValueError, TypeError suppressed in argparse?

2017-05-06 Thread paul j3
paul j3 added the comment: I didn't mean to question the use of value tests in the 'type' callable. The ArgumentTypeError example in the documentation does that kind of test. Argparse is using the term 'type' loosely. It just means any kind of conversion and/or test that can be applied to a

[issue12077] Harmonizing descriptor protocol documentation

2017-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will have a chance to work on this before long. -- ___ Python tracker ___ ___ Python-bugs-list

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will have a chance to work on this before long. -- ___ Python tracker ___ ___ Python-bugs-list

[issue12870] Regex object should have introspection methods

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

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-06 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-06 Thread Martin Panter
Martin Panter added the comment: Raymond I suggest you unassign this and let others work on it. -- stage: patch review -> needs patch ___ Python tracker ___ _

[issue30292] Why is there a concept "unbound method" in python3 version?

2017-05-06 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> docs.python.org/3/howto/descriptor.html still refers to "unbound methods" ___ Python tracker _

[issue12077] Harmonizing descriptor protocol documentation

2017-05-06 Thread Martin Panter
Martin Panter added the comment: See Issue 23702 specifically about unbound methods in Python 3, and Issue 25435 about general problems with the how-to in Python 3. -- nosy: +martin.panter ___ Python tracker _

[issue30292] Why is there a concept "unbound method" in python3 version?

2017-05-06 Thread debuggy
New submission from debuggy: When I read (python 3.6.1 version), I found there is a concept of 'unbound method' in some places. However, when I referred to , it said the concept of “unbound methods” has been removed from the language. So I wondered if there should be a change in python3 ver

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c8faabce6ef318f3b425c6defd846e274d61e2ef by Serhiy Storchaka in branch '3.5': [3.5] Revert bpo-26293 for zipfile breakage. See also bpo-29094. (GH-1484). (#1486) https://github.com/python/cpython/commit/c8faabce6ef318f3b425c6defd846e274d61e2ef

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c8faabce6ef318f3b425c6defd846e274d61e2ef by Serhiy Storchaka in branch '3.5': [3.5] Revert bpo-26293 for zipfile breakage. See also bpo-29094. (GH-1484). (#1486) https://github.com/python/cpython/commit/c8faabce6ef318f3b425c6defd846e274d61e2ef

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 70dc6a7a0b7f104d87512556fca242c2ca96a010 by Serhiy Storchaka in branch '3.6': [3.6] Revert bpo-26293 for zipfile breakage. See also bpo-29094. (GH-1484). (#1485) https://github.com/python/cpython/commit/70dc6a7a0b7f104d87512556fca242c2ca96a010

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 70dc6a7a0b7f104d87512556fca242c2ca96a010 by Serhiy Storchaka in branch '3.6': [3.6] Revert bpo-26293 for zipfile breakage. See also bpo-29094. (GH-1484). (#1485) https://github.com/python/cpython/commit/70dc6a7a0b7f104d87512556fca242c2ca96a010

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1588 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1589 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1586 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1587 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3763ea865cee5bbabcce11cd577811135e0fc747 by Serhiy Storchaka in branch 'master': Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484) https://github.com/python/cpython/commit/3763ea865cee5bbabcce11cd577811135e0fc747 -- _

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3763ea865cee5bbabcce11cd577811135e0fc747 by Serhiy Storchaka in branch 'master': Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484) https://github.com/python/cpython/commit/3763ea865cee5bbabcce11cd577811135e0fc747 -- _

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1585 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1584 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2017-05-06 Thread Steve Barnes
New submission from Steve Barnes: Currently you can use, assuming all are installed: py -2 # gets the latest python 2 with 64 bit as the default py -2.7 # gets python 2.7 with 64 bit as the default py -2.7-32 # gets -32 bit python 2.7 py -3 # gets the latest python 3 with 64 bit as the default p