[issue26015] Add new tests for pickling iterators of mutable sequences

2016-03-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue25776] More compact pickle of iterators etc

2016-03-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger ___ Python tracker ___ ___

[issue23718] strptime() can produce invalid date with negative year day

2016-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Alexander, what would you say? -- stage: patch review -> commit review versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue23718] strptime() can produce invalid date with negative year day

2016-03-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka stage: test needed -> patch review ___ Python tracker ___

[issue25718] itertools.accumulate __reduce__/__setstate__ bug

2016-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Raymond, could you please look at the patch? -- assignee: kristjan.jonsson -> rhettinger nosy: +rhettinger ___ Python tracker

[issue26475] Misleading debugging output for verbose regular expressions

2016-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 910d0256601f by Serhiy Storchaka in branch '3.5': Issue #26475: Fixed debugging output for regular expressions with the (?x) flag. https://hg.python.org/cpython/rev/910d0256601f New changeset b8928725e8cc by Serhiy Storchaka in branch '2.7': Issue

[issue26475] Misleading debugging output for verbose regular expressions

2016-03-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26486] Backport some tests to 2.7

2016-03-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25652] collections.UserString.__rmod__() raises NameError

2016-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to add some tests. For example: 0 % collections.UserString(''). -- nosy: +serhiy.storchaka ___ Python tracker

[issue26486] Backport some tests to 2.7

2016-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea5d01c7997e by Serhiy Storchaka in branch '2.7': Issue #26486: Backported some pickle tests from 3.x. https://hg.python.org/cpython/rev/ea5d01c7997e -- nosy: +python-dev ___ Python tracker

[issue26482] Restore pickling recursive dequeues

2016-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Raymond. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26482] Restore pickling recursive dequeues

2016-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset be993678d4f7 by Serhiy Storchaka in branch 'default': Issue #26482: Allowed pickling recursive dequeues. https://hg.python.org/cpython/rev/be993678d4f7 -- nosy: +python-dev ___ Python tracker

[issue26490] Leading “0” allowed, only for decimal zero

2016-03-05 Thread Ben Finney
Ben Finney added the comment: > rationale unknown That's quite a pity. The inconsistency catches people out, and the docs do not make clear why an exception is made. > but any number of zeroes is still unambiguously zero. Of course. But the same is true for “0003 is unambiguously three”, yet

[issue26490] Leading “0” allowed, only for decimal zero

2016-03-05 Thread Ethan Furman
Ethan Furman added the comment: Short answer: rationale unknown, but any number of zeroes is still unambiguously zero. Closing as duplicate. -- nosy: +ethan.furman resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python

[issue26490] Leading “0” allowed, only for decimal zero

2016-03-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: This was raised and rejected here: http://bugs.python.org/issue24668 -- nosy: +steven.daprano ___ Python tracker ___

[issue26481] unittest discovery process not working without .py source files

2016-03-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___

[issue25825] AIX shared library extension modules installation broken

2016-03-05 Thread Martin Panter
Changes by Martin Panter : -- stage: -> needs patch ___ Python tracker ___ ___

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-03-05 Thread Martin Panter
Martin Panter added the comment: No I think this is ready Tamás. I have been away, but it is on my list of things to catch up on. I won’t add any What’s New entry. -- stage: patch review -> commit review ___ Python tracker

[issue26490] Leading “0” allowed, only for decimal zero

2016-03-05 Thread Ben Finney
New submission from Ben Finney: The language reference carves out a special case for decimal zero literals: they may have leading “0” digits. Non-zero decimal literals may not. This is apparently deliberate: Note that leading zeros in a non-zero decimal number are not allowed. This is

[issue26489] dictionary unpacking operator in dict expression

2016-03-05 Thread Guo Ci Teo
New submission from Guo Ci Teo: The attached patch enables the unparse.py tool to unparse dictionary unpacking operators (**) in a dict expression, for example, {**{'y': 2}, 'x': 1} , as described in PEP 0448. -- components: Demos and Tools files: unpack_in_dict.patch keywords: patch

[issue26488] hashlib command line interface

2016-03-05 Thread Aviv Palivoda
New submission from Aviv Palivoda: I am suggesting to add a command line interface to the hashlib module. A simple example of the api I suggest is: $ python -m hashlib md5 /bin/sh $ d985d0ea551c1253c2305140c583d11f A patch is included. -- components: Library (Lib) files:

[issue26271] freeze.py makefile uses the wrong flags variables

2016-03-05 Thread Brett Cannon
Brett Cannon added the comment: Quick review suggests Daniel's patch does the right thing (based on Tools/freeze/test and looking at the generated Makefile which has PY_LDFLAGS defined). Don't have time to commit it right now, but I will in the near future. -- assignee: ->

[issue25652] collections.UserString.__rmod__() raises NameError

2016-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll apply this shortly. -- stage: -> commit review ___ Python tracker ___

[issue25652] collections.UserString.__rmod__() raises NameError

2016-03-05 Thread Jonathan Goble
Jonathan Goble added the comment: *ping* Can this be reviewed? It's a simple fix to a problem that happens consistently, and it would be nice to get it into the next bugfix release. -- versions: +Python 3.6 ___ Python tracker

[issue26487] Machine value for fat PowerPC build

2016-03-05 Thread Ned Deily
Ned Deily added the comment: Thanks for your suggestion. Unfortunately, at the time support for OS X universal builds was added, it was not anticipated that there would be a need for that particular combination of architectures, i.e. just PPC-32 and PPC-64, and, to the best of my knowledge,

[issue26487] Machine value for fat PowerPC build

2016-03-05 Thread hanz
New submission from hanz: Building on Mac OS X 10.5.8 (Power Mac G5) for ppc and ppc64 fails with File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.11/Lib/_osx_support.py", line 485, in

[issue6958] Add Python command line flags to configure logging

2016-03-05 Thread Marc Abramowitz
Marc Abramowitz added the comment: I guess I should be more specific about the 12factor thing I just mentioned, because http://12factor.net/logs says: >>> A twelve-factor app never concerns itself with routing or storage of its output stream. It should not attempt to write to or manage

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-03-05 Thread Aviv Palivoda
Aviv Palivoda added the comment: I fixed the tests to work with Steven patch. Also changed the patch to open sys.std{in,out} with closefd=False. I changed the 'io.StringIO' that we redirect the stdout, stderr to. Now the 'StdIOBuffer' return the real stdout,stderr when '-' is passed to

[issue6958] Add Python command line flags to configure logging

2016-03-05 Thread Marc Abramowitz
Marc Abramowitz added the comment: I was just thinking that it would be nice if logging could be configured through environment variables. This would make it easier to have Python applications adhere to the Twelve-Factor methodology around application configuration:

[issue25973] Segmentation fault with nonlocal and two underscores

2016-03-05 Thread Nick Coghlan
Nick Coghlan added the comment: And as some additional background as to why segmentation faults provoked by Python code aren't currently considered a security bug: since CPython doesn't include a security sandbox, we're already relying entirely on the OS to provide process isolation. That OS

[issue20215] socketserver can not listen IPv6 address

2016-03-05 Thread Josh Lee
Changes by Josh Lee : -- nosy: +jleedev ___ Python tracker ___ ___ Python-bugs-list

[issue26482] Restore pickling recursive dequeues

2016-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead. -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker ___

[issue17940] extra code in argparse.py

2016-03-05 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue17940] extra code in argparse.py

2016-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset be3874cf87f3 by Berker Peksag in branch 'default': Issue #17940: Remove redundant code from _Section.format_help() https://hg.python.org/cpython/rev/be3874cf87f3 -- nosy: +python-dev ___ Python tracker

[issue26485] Missing newline, raising a warning, in /Doc/license.rst

2016-03-05 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Julien! For the record, here is the warning: Doc/license.rst:350: WARNING: Literal block ends without a blank line; unexpected unindent. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: enhancement

[issue26485] Missing newline, raising a warning, in /Doc/license.rst

2016-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f69b777b3b3e by Berker Peksag in branch '2.7': Issue #26485: Fix Sphinx warning in Doc/license.rst https://hg.python.org/cpython/rev/f69b777b3b3e -- nosy: +python-dev ___ Python tracker

[issue20397] distutils --record option does not validate existence of byte-compiled files

2016-03-05 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue26486] Backport some tests to 2.7

2016-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 These tests may well provide early detection of backport errors. -- nosy: +rhettinger ___ Python tracker ___

[issue26486] Backport some tests to 2.7

2016-03-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch backports some tests that makes sense for 2.7 from 3.x. This adds more assurance that we will not break anything in 2.7 bug fix and didn't break the compatibility unintentionally. -- components: Tests files: