[issue22581] Other mentions of the buffer protocol

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please look at the patch? I touches only docs and comments. -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22581

[issue22581] Other mentions of the buffer protocol

2014-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- Removed message: http://bugs.python.org/msg231643 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22581 ___

[issue22581] Other mentions of the buffer protocol

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please look at the patch? It touches only docs and comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22581 ___

[issue20899] Nested namespace imports do not work inside zip archives

2014-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20899 ___

[issue20002] Cleanup and microoptimize pathlib

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you are not interested in any of proposed changes Antoine, this issue can be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20002 ___

[issue20002] Cleanup and microoptimize pathlib

2014-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20002 ___ ___

[issue20002] Cleanup and microoptimize pathlib

2014-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not really, sorry. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20002 ___ ___

[issue19676] Add the namereplace error handler

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- assignee: - serhiy.storchaka keywords: +needs review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19676 ___

[issue22798] time.mktime doesn't update time.tzname

2014-11-25 Thread Akira Li
Akira Li added the comment: One of the ways to fix this issue is to synchronize time.tzname attribute with the corresponding C tzname variable. I've uploaded sync-time-timezone-attr-with-c.diff patch that synchronizes tzname, timezone, altzone, daylight attributes. The patch also includes

[issue22798] time.mktime doesn't update time.tzname

2014-11-25 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: Removed file: http://bugs.python.org/file37132/test_mktime_changes_tzname.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22798 ___

[issue19676] Add the namereplace error handler

2014-11-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch looks good to me. But it seems that the reverse operation is not possible in the general case: .decode('unicode_escape') assumes a latin-1 or ascii encoding. Should we document this? -- nosy: +amaury.forgeotdarc

[issue19676] Add the namereplace error handler

2014-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The patch looks good. One nit: the name buffer length should be NAME_MAXLEN instead of 100. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19676 ___

[issue22939] integer overflow in iterator object

2014-11-25 Thread Clement Rouault
New submission from Clement Rouault: I found an interger overflow in the standard iterator object (Objects/iterobject.c) The `it_index` attribute used by the iterator is a `Py_ssize_t` but overflow is never checked. So after the index `PY_SSIZE_T_MAX`, the iterator object will ask for the

[issue19676] Add the namereplace error handler

2014-11-25 Thread Nick Coghlan
Nick Coghlan added the comment: Patch looks good to me, too. As far as Amaury's question goes, isn't the general reverse operation the same as for the existing backslashreplace handler? That is, decode with the appropriate ASCII compatible encoding (since ASCII compatibility is needed for

[issue20002] Cleanup and microoptimize pathlib

2014-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - rejected stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20002 ___

[issue19676] Add the namereplace error handler

2014-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32d08aacffe0 by Serhiy Storchaka in branch 'default': Issue #19676: Added the namereplace error handler. https://hg.python.org/cpython/rev/32d08aacffe0 -- nosy: +python-dev ___ Python tracker

[issue19676] Add the namereplace error handler

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you all for reviews. One nit: the name buffer length should be NAME_MAXLEN instead of 100. NAME_MAXLEN is private name available only in Modules/unicodedata.c. Making it public name would be other issue. I have increased buffer size to 256.

[issue22286] Allow backslashreplace error handler to be used on input

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with the tip (resolved conflicts with issue22470 and issue19676). -- assignee: - serhiy.storchaka keywords: +needs review Added file: http://bugs.python.org/file37274/backslashreplace_decode_2.patch

[issue19105] pprint doesn't use all width

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please make a review? -- keywords: +needs review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19105 ___

[issue18965] 2to3 can produce illegal bytes literals

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now Python 2 with the -3 option warns about b-prefixed strings with non-ASCII characters (issue19656). -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue22939] integer overflow in iterator object

2014-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +rhettinger, serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22939 ___

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-11-25 Thread Robert Kuska
Robert Kuska added the comment: FYI fedora (rawhide) has SSLv3 disabled in SSLv23 method of openssl package. http://pkgs.fedoraproject.org/cgit/openssl.git/commit/?id=80b5477597e9f0d9fababd854adfb4988b37efd5 This looks like the same approach as in attached issue22638.diff. -- nosy:

[issue22939] integer overflow in iterator object

2014-11-25 Thread R. David Murray
R. David Murray added the comment: For possibly relevant background information, see issue 21444 and the issues linked from it, and issue 14794. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22939

[issue22939] integer overflow in iterator object

2014-11-25 Thread STINNER Victor
STINNER Victor added the comment: The `it_index` attribute used by the iterator is a `Py_ssize_t` but overflow is never checked. Yes it is a bug. iter_iternext() must raises an OverflowError if it-it_index is equal to PY_SSIZE_T_MAX. -- nosy: +haypo

[issue22940] readline does not offer partial saves

2014-11-25 Thread bru
New submission from bru: The readline module offers write_history_file from readline/history.h write_history, but there's no append_history_file that would invoke append_history from the C header. This causes inconveniences when saving history to a file (like shown there:

[issue22841] Avoid to use coroutine with add_signal_handler()

2014-11-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22841 ___

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch with a simple unit test. Can someone review it? If not, I will commit it without review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22685

[issue20899] Nested namespace imports do not work inside zip archives

2014-11-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +gregory.p.smith, twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20899 ___ ___

[issue22581] Other mentions of the buffer protocol

2014-11-25 Thread R. David Murray
R. David Murray added the comment: There's no review link. And no obvious reason why there isn't. Could you try regenerating the patch and uploading it again? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22581

[issue22939] integer overflow in iterator object

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think OverflowError is good for maintained releases, but for 3.5 Clement's idea with long index looks attractive to me. In any case an exception should be raised for negative argument in __setstate__(). Let split this issue on two parts. First fix the bug

[issue22581] Other mentions of the buffer protocol

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Regenerated for review. I don't know why Rietweld didn't like previous patch. -- Added file: http://bugs.python.org/file37276/bytes_like.patch ___ Python tracker rep...@bugs.python.org

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, looks good. On Tue, Nov 25, 2014 at 6:37 AM, STINNER Victor rep...@bugs.python.org wrote: STINNER Victor added the comment: Here is a patch with a simple unit test. Can someone review it? If not, I will commit it without review. --

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f75d40c02f0a by Victor Stinner in branch '3.4': Closes #22685, asyncio: Set the transport of stdout and stderr StreamReader https://hg.python.org/cpython/rev/f75d40c02f0a New changeset 7da2288183d1 by Victor Stinner in branch 'default': (Merge 3.4)

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread STINNER Victor
STINNER Victor added the comment: Fix also pushed to Python 3.4, 3.5 and to Tulip. Thanks for the report wabu. Tulip commit: changeset: 1350:c3a9d355eb34 user:Victor Stinner victor.stin...@gmail.com date:Tue Nov 25 17:17:13 2014 +0100 files: asyncio/subprocess.py

[issue22941] IPv4Interface arithmetic changes subnet mask

2014-11-25 Thread Søren Løvborg
New submission from Søren Løvborg: Addition and subtraction of integers are documented for ipaddress.IPv4Address and ipaddress.IPv6Address, but also work for IPv4Interface and IPv6Interface (though the only documentation of this is a brief mention that the Interface classes inherit from the

[issue22939] integer overflow in iterator object

2014-11-25 Thread STINNER Victor
STINNER Victor added the comment: I think OverflowError is good for maintained releases, but for 3.5 Clement's idea with long index looks attractive to me. What is your use case? -- ___ Python tracker rep...@bugs.python.org

[issue22941] IPv4Interface arithmetic changes subnet mask

2014-11-25 Thread Søren Løvborg
Søren Løvborg added the comment: Proposed implementation patch attached. If this has any interest, I'll look into expanding the patch to include documentation and unit tests. Resulting behavior: import ipaddress ipaddress.IPv4Interface('10.0.0.1/8') + 1 IPv4Interface('10.0.0.2/8')

[issue19676] Add the namereplace error handler

2014-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b6fab008d63a by Berker Peksag in branch 'default': Issue #19676: Tweak documentation a bit. https://hg.python.org/cpython/rev/b6fab008d63a -- ___ Python tracker rep...@bugs.python.org

[issue22941] IPv4Interface arithmetic changes subnet mask

2014-11-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +ncoghlan, pmoody ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22941 ___ ___

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-11-25 Thread Miki Tebeka
Miki Tebeka added the comment: Can we also update iglob [1] as well? [1] https://docs.python.org/2/library/glob.html#glob.iglob -- nosy: +tebeka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22524

[issue20204] pydocs fails for some C implemented classes

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem not in pydoc or inspect itself. In Python 3.3 _tkinter.TkappType has the __module__ attribute: import _tkinter _tkinter.TkappType.__module__ 'builtins' Something was changed in 3.4 and builtin classes without dot in qualified name no longer

[issue22906] PEP 479: Change StopIteration handling inside generators

2014-11-25 Thread Chris Angelico
Chris Angelico added the comment: Known issues with the current patch, if anyone feels like playing with this who better knows the code: 1) Needs a __future__ directive to control behaviour 2) test_generators needs to be heavily reworked 3) The test of what exception was thrown needs to also

[issue22939] integer overflow in iterator object

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is your use case? Something like range(). I agree that it is very unlike to encounter this problem in real work, and we can live with implementation-related limitation (for which OverflowError exists). --

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-11-25 Thread Akira Li
Akira Li added the comment: scandir is slower on my machine: $ git clone https://github.com/benhoyt/scandir $ cd scandir/ $ ../cpython/python benchmark.py /usr/ Using slower ctypes version of scandir Comparing against builtin version of os.walk() Priming the system's cache...

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread wabu
wabu added the comment: thanks for the fixes 'n' integration -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22685 ___ ___ Python-bugs-list

[issue22518] integer overflow in encoding unicode

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you want to add a bigmem test or close this issue Benjamin? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22518 ___

[issue22942] Language Reference - optional comma

2014-11-25 Thread Jordan
New submission from Jordan: # I would like to report three bugs in the # Language Reference Python 3.4.2 # # bug 1: Typo in parameter_list # # # In 8.6 the rule for parameter_list should be corrected: The first | should be ( #

[issue22942] Language Reference - optional comma

2014-11-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22942 ___ ___

[issue22518] integer overflow in encoding unicode

2014-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: I wouldn't object if you had a patch. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22518 ___

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-11-25 Thread STINNER Victor
STINNER Victor added the comment: scandir is slower on my machine: Please share more information about your config: OS, disk type (hard drive, SSD, something else), filesystem, etc. -- ___ Python tracker rep...@bugs.python.org

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached script raises the PyExc_RecursionErrorInst singleton and reproduces the issue. The attached patch fixes the issue by ignoring the warning when clearing PyExc_RecursionErrorInst and clearing the frames associated with its traceback, in

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-25 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: Added file: http://bugs.python.org/file37279/warn_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22898 ___

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-11-25 Thread Ben Hoyt
Ben Hoyt added the comment: Akira, note the Using slower ctypes version of scandir -- this is the older, ctypes implementation of scandir. On Linux, depending on file system etc, that can often be slower. You need to at least be using the fast C version in _scandir.c, which is then half C,

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread STINNER Victor
STINNER Victor added the comment: You can workaround the issue by setting manually the transport on the StreamReader objects. Tell me if you need help to write the workaround if you cannot wait for a release containing the fix. -- ___ Python

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-25 Thread STINNER Victor
STINNER Victor added the comment: +/* during Python finalization, warnings may be emited after interp-sysdict + is cleared: see issue #22898 */ I would prefer to see this comment in the else block. -- ___ Python tracker

[issue22943] bsddb: test_queue fails on Windows

2014-11-25 Thread Benjamin Peterson
New submission from Benjamin Peterson: One gets this on the Windows bots: == FAIL: test01_basic (bsddb.test.test_queue.SimpleQueueTestCase) -- Traceback (most

[issue22943] bsddb: test_queue fails on Windows

2014-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5ed983bc784 by Benjamin Peterson in branch '2.7': disable tests that always fail on windows (#22943) https://hg.python.org/cpython/rev/e5ed983bc784 -- nosy: +python-dev ___ Python tracker

[issue22944] Python argument tuple unpacking

2014-11-25 Thread Simon Zack
New submission from Simon Zack: Python already has tuple unpacking in many places, I wonder if this has been considered for arguments yet, it seems rather convenient and a natural extension to me. Here's what I mean: def func((a, b, c)): print(a, b, c) func((1, 2, 3)) should print 1 2

[issue22944] Python argument tuple unpacking

2014-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Python 2 has it. It was removed in Python 3. See https://www.python.org/dev/peps/pep-3113/ -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread koobs
Changes by koobs koobs.free...@gmail.com: Added file: http://bugs.python.org/file37281/koobs-freebsd10-python34-build-598.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22685 ___

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-25 Thread koobs
koobs added the comment: Buildbot failures observed on koobs-freebsd9 and koobs-freebsd10 for 3.x and 3.4, respectively. Both logs are attached, inlined failure below: == FAIL: test_pause_reading

[issue22945] Ctypes inconsistent between Linux and OS X

2014-11-25 Thread Daniel Standage
Changes by Daniel Standage daniel.stand...@gmail.com: -- hgrepos: -281 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22945 ___ ___

[issue22945] Ctypes inconsistent between Linux and OS X

2014-11-25 Thread Daniel Standage
New submission from Daniel Standage: The ctypes documentation describes the '._as_parameter_' attribute, which simplifies using Python objects to encapsulate C objects. If a ctypes object with the '._as_parameter_' attribute defined is passed as a parameter to a C function, the value of

[issue22945] Ctypes inconsistent between Linux and OS X

2014-11-25 Thread Ned Deily
Ned Deily added the comment: FWIW, your test does seem to run if the C test program is instead built in 32-bit mode (modifying CFLAGS to include -arch i386). For example, with the Apple OS X 10.10 system Python: DYLD_LIBRARY_PATH=.. arch -i386 /usr/bin/python2.7 test.py Gizmo 1: 15 Gizmo 2:

[issue22804] Can't run Idle in Windows 8 or windows 64

2014-11-25 Thread Vandana Rao
Vandana Rao added the comment: Try uninstalling IDLE and install it once again.I had this situation previously where the command prompt opens and gets closed within fraction of seconds. Uninstall it completely and try once again.I hope this would work. -- nosy: +Vandana.Rao

[issue20204] pydocs fails for some C implemented classes

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _tkinter.TkappType.__flags__ is different. In 3.3: 0b101 In 3.4: 0b1010010 The difference is Py_TPFLAGS_HEAPTYPE. This is the consequence of the change made in issue15721. -- components: +Interpreter Core, Tkinter nosy:

[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _tkinter classes are now heap types and they no longer have the __module__ attribute. import _tkinter _tkinter.TkappType.__module__ Traceback (most recent call last): File stdin, line 1, in module AttributeError: __module__ See issue20204. --