[issue22113] memoryview and struct.pack_into

2014-12-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: lgtm :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22113 ___ ___ Python-bugs-list mailing list

[issue21862] cProfile command-line should accept -m module_name as an alternative to script path

2014-12-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch does not seem to allow parameters after the -m option. I'm sure this restriction can be lifted. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21862

[issue21279] str.translate documentation incomplete

2014-12-19 Thread John Posner
John Posner added the comment: Regarding Martin's patch of 12-18: stdtypes.rst -- looks good to me unicodeobject.c -- I suggest changing this sentence: If a character is not in the table, the subscript operation should raise LookupError, and the character is left untouched. ... to: If the

[issue23085] update internal libffi copy to 3.2.1

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @steve.dower, so, can I abandon this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23085 ___ ___

[issue23085] update internal libffi copy to 3.2.1

2014-12-19 Thread Steve Dower
Steve Dower added the comment: I'm not entirely familiar with our layout of libffi, but I don't think your patch will affect Windows at all. If your intent was to update the version used in Windows builds, then you may as well abandon it. I'm not the one to ask about other platforms -

[issue23085] update internal libffi copy to 3.2.1

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @steve.dower, so no problems, because my patch won't affect Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23085 ___

[issue23089] Update config files

2014-12-19 Thread Gustavo Temple
New submission from Gustavo Temple: Update config.guess and config.sub -- components: Installation files: config.patch keywords: patch messages: 232937 nosy: gustavotemple priority: normal severity: normal status: open title: Update config files versions: Python 3.4, Python 3.5 Added

[issue23089] Update config files

2014-12-19 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089 ___ ___

[issue23084] Expose C struct timespec (nanosecond resolution) in time module

2014-12-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- components: +Extension Modules -Library (Lib) status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23084 ___

[issue23089] Update libffi config files

2014-12-19 Thread R. David Murray
R. David Murray added the comment: How does this patch relate to the discussion on python-dev about libffi? -- components: +ctypes nosy: +r.david.murray title: Update config files - Update libffi config files ___ Python tracker rep...@bugs.python.org

[issue23089] Update libffi config files

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @r.david.murray, I think they aren't related. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089 ___ ___

[issue23089] Update libffi config files

2014-12-19 Thread R. David Murray
R. David Murray added the comment: What is the purpose of your patch, then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089 ___ ___

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Antoine's comments. I still hesitate about C-contiguousity. Looks as all buffers created in the stdlib are C-contiguous, so we can't test non-contiguous buffers. Shouldn't PyObject_AsCharBuffer (or even PyObject_AsReadBuffer

[issue23089] Update libffi config files

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @r.david.murray, the config.guess inside the root folder fixes some verifications about IBM arch, the config.guess inside the libffi folder fixes some verifications about PowerPC, and the config.sub inside the libffi folder fixes some verifications about

[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-19 Thread Éric Araujo
Éric Araujo added the comment: An active core developer needs to see this and decide to commit the patch. You can see if there’s someone on IRC. If there’s no action in a week or two, feel free to ask on python-dev (maybe listing more than one waiting patch, or offering reviews in exchange

[issue23090] fix test_doctest relying on refcounting to close files

2014-12-19 Thread Brian Kearns
Changes by Brian Kearns bdkea...@gmail.com: -- files: fix_test_doctest.patch keywords: patch nosy: bdkearns priority: normal severity: normal status: open title: fix test_doctest relying on refcounting to close files type: behavior versions: Python 2.7 Added file:

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Shouldn't PyObject_AsCharBuffer (or even PyObject_AsReadBuffer and_PyBuffer_Converter) accept only C-contiguous buffers? PyBUF_SIMPLE enforces contiguity. See https://www.python.org/dev/peps/pep-3118/#access-flags and

[issue23089] Update libffi config files

2014-12-19 Thread R. David Murray
R. David Murray added the comment: How do these relate to the upstream libffi? I think we probably need to deal with this as part of the libffi discussion on python-dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2014-12-19 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: multiprocessing.pool methods imap() and imap_unordered() cause deadlock - multiprocessing.pool methods imap()[_unordered()] deadlock ___ Python tracker rep...@bugs.python.org

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, there is a way to create non-contiguous buffers. b = bytes(range(16)) m = memoryview(b) m[::2].c_contiguous False PyBUF_SIMPLE enforces contiguity. Then contiguousity check in getbuffer() in Python/getargs.c is redundant. And in most cases the use

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Stefan Krah
Stefan Krah added the comment: Yes, a PyBUF_SIMPLE request implies c-contiguous, so it's ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22896 ___

[issue23059] cmd module should sort misc help topics

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: cmd.Cmd has a documented do_help(self, arg) method (written in 2000). If arg is '', it prints 1. Documented commands (do_x with help_x or do_x.__doc__ != ''), sorted 2. Other help topics (help_y with no do_y), unsorted 3. Undocumented commands (do_ without no

[issue23061] Update pep8 to specify explicitly 'module level' imports at top of file

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I read Nick's post and I would like PEP8 to continue to discourage imports at class scope unless there is actually a use case. I discovered yesterday that idlelib.ColorDelegator has several imports at the top of the module and more as the top of the class

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2014-12-19 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.r ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___

[issue23069] IDLE's F5 Run Module doesn't transfer effects of future import

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that this is broken. I verified that the following works in 2.7.9 from __future__ import division, print_function 32 / 5 6.4 print(2,3,sep='**') 2**3 #13296 was about self.compile.compiler.flags (in ModifiedInterpreter, which inherits .compile...

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22896 ___ ___ Python-bugs-list

[issue23087] Exec variable not found error

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://stackoverflow.com/questions/27554334/python-3-dictionary-comprehension-exec-error/27571212#27571212 -- nosy: +terry.reedy resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker

[issue15443] datetime module has no support for nanoseconds

2014-12-19 Thread mdcb
mdcb added the comment: patch in attachment is an attempt to provide the datetime type nanosecond support, handles pickle versioning, expose a new class method datetime.fromnanoseconds -- keywords: +patch nosy: +mdcb...@gmail.com Added file:

[issue15443] datetime module has no support for nanoseconds

2014-12-19 Thread mdcb
Changes by mdcb mdcb...@gmail.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15443 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15955] gzip, bz2, lzma: add option to limit output size

2014-12-19 Thread Nikolaus Rath
Nikolaus Rath added the comment: *ping*. It's been another 8 months. It would be nice if someone could review the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___

[issue23004] mock_open() should allow reading binary data

2014-12-19 Thread Aaron Hill
Aaron Hill added the comment: I've fixed the formatting issues. -- Added file: http://bugs.python.org/file37510/mock-open-allow-binary-data-fix-formatting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23004

[issue23080] BoundArguments.arguments should be unordered

2014-12-19 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23080 ___ ___

[issue21071] struct.Struct.format is bytes, but should be str

2014-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to see this and issue 8934 discussed as a usability bug. As far as I can tell, the current state of affairs an unintended by-product of a rushed effort to split the standard library to bytes apis and unicode apis. I don't see any reason that

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread S. Andrew Sheppard
New submission from S. Andrew Sheppard: I came across unexpected behavior working with unpacking keyword arguments in Python 3. It appears to be related to the automatic normalization of unicode characters to NFKC (PEP 3131), which converts e.g. MICRO SIGN to GREEK SMALL LETTER MU. This

[issue23092] Python 2.7.9 test_readline regression on CentOS 6

2014-12-19 Thread Vinson Lee
New submission from Vinson Lee: test_readline regressed from Python 2.7.8 to Python 2.7.9 on CentOS 6 Python 2.7.8 $ ./python -m test.regrtest test_readline test_readline 1 test OK. Python 2.7.9 $ ./python -m test.regrtest test_readline [1/1] test_readline test test_readline failed --

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread S. Andrew Sheppard
S. Andrew Sheppard added the comment: Here's a simple namedtuple example for good measure. from collections import namedtuple Test = namedtuple(Test, [chr(181)]) Test(**{chr(956): test1}) Test(µ='test1') Test(**{chr(181): test1}) Traceback (most recent call last): File stdin, line 1, in

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread R. David Murray
R. David Murray added the comment: I suspect that the normalization is happening in the parsing phase. That is, the keyword argument gets normalized when the python source is compiled, but the dictionary key is, of course, *not* normalized, since it is a literal string. If I'm right, I

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yeah, kwarg dicts do not have the same checks applied to them as syntactic keyword args. It would be weird if, for example, dict(**mydict) normalized the keys of mydict. -- nosy: +benjamin.peterson resolution: - not a bug status: open - closed

[issue22836] Broken Exception ignored in: message on exceptions in __repr__

2014-12-19 Thread Martin Panter
Martin Panter added the comment: Here is a patch that substitutes an explanation if the repr() fails. Output now looks like this, terminated with a newline: === BrokenObj === Exception ignored in: repr() failed Traceback (most recent call last): File stdin, line 3, in __del__ Exception: in

[issue15443] datetime module has no support for nanoseconds

2014-12-19 Thread mdcb
mdcb added the comment: minor bug fixes and improvements in new attachment. -- Added file: http://bugs.python.org/file37512/datetime.nanosecond.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15443

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2014-12-19 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5319 ___ ___ Python-bugs-list

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread S. Andrew Sheppard
S. Andrew Sheppard added the comment: Fair enough. For future reference by anyone coming across this issue, here's a simplified version of the workaround I used: from unicodedata import normalize def normalize_keys(data): return { normalize('NFKC', key): value for key,

[issue23065] Pyhton27.dll at SysWOW64 not updated when updating Python 2.7.X

2014-12-19 Thread Steve Dower
Steve Dower added the comment: That's strange, and it isn't what normally happens, so I suspect it's a configuration or corruption issue on your machine (possibly Kapersky Pure is to blame?). The 2.7.7, 2.7.8 and 2.7.9 installers all have the correct version information and there's no

[issue22671] Typo in class io.BufferedIOBase docs

2014-12-19 Thread Chandan kumar
Changes by Chandan kumar chkumar...@gmail.com: -- nosy: +Chandan.kumar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22671 ___ ___

[issue23092] Python 2.7.9 test_readline regression on CentOS 6

2014-12-19 Thread Berker Peksag
Berker Peksag added the comment: This looks like a duplicate of issue 19884. -- nosy: +berker.peksag resolution: - duplicate stage: - resolved status: open - closed superseder: - Importing readline produces erroneous output type: - behavior ___

[issue23092] Python 2.7.9 test_readline regression on CentOS 6

2014-12-19 Thread Vinson Lee
Vinson Lee added the comment: The regression is introduced with this commit. commit fa06e2bb13a3e67a0641025483efb19ef569dbd9 Author: Victor Stinner victor.stin...@gmail.com Date: Thu Jul 24 12:22:24 2014 +0200 Issue #19884: readline: Disable the meta modifier key if stdout is not a