[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Pankaj Sharma
New submission from Pankaj Sharma: Hi, Reporting bugs for dereferencing a pointer "m" might be NULL. the respective patch have been attached ,please check and review it. thanks! -- components: Extension Modules, Library (Lib) files: Python-2.7.10-json.patch keywords: patch messages: 24

[issue24697] Add CoroutineReturn and CoroutineExit builtin exceptions for coroutines

2015-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: My initial inclination is to agree with Stefan. At the moment, we have a slightly leaky abstraction where the exceptions used mean that coroutines still expose the fact that under the covers they're defined in terms of generator semantics. However, that leak in th

[issue24302] Dead Code of Handler check in function faulthandler_fatal_error()

2015-07-24 Thread STINNER Victor
STINNER Victor added the comment: The check is required to fix a compiler warning. Please keep it, it doesn't bite. Maybe add a comment to explain it. -- ___ Python tracker ___

[issue19475] Add microsecond flag to datetime isoformat()

2015-07-24 Thread Berker Peksag
Changes by Berker Peksag : -- stage: resolved -> needs patch superseder: datetime: add ability to parse RFC 3339 dates and times -> versions: +Python 3.6 -Python 3.5 ___ Python tracker

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-07-24 Thread STINNER Victor
Changes by STINNER Victor : -- title: Add microsecond flag to datetime isoformat() -> Add timespec optional flag to datetime isoformat() to choose the precision ___ Python tracker _

[issue19475] Add microsecond flag to datetime isoformat()

2015-07-24 Thread STINNER Victor
STINNER Victor added the comment: > 'seconds' - %H:%M:%S > 'us' - %H:%M:%S.%f 'us' is not consistent with the datetime module: it should be 'microseconds. >>> datetime.datetime.now().second 50 >>> datetime.timedelta(seconds=1) datetime.timedelta(0, 1) >>> datetime.datetime.now().microsecond 12

[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> commit review ___ Python tracker ___ __

[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1a1e3fe837a by Serhiy Storchaka in branch '2.7': Issue #24704: Fixed possible NULL pointer dereferencing in the _json module https://hg.python.org/cpython/rev/a1a1e3fe837a -- nosy: +python-dev ___ Python

[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Pankaj. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker __

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-24 Thread Cyd Haselton
Cyd Haselton added the comment: I'm compiling for ARM, not ARM64, on an armv7 device. On July 23, 2015 7:10:35 PM CDT, Russell Keith-Magee wrote: > >Russell Keith-Magee added the comment: > >What hardware architecture are you compiling for? If it's ARM64, and >you're not using a trunk version

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-07-24 Thread Alex Grönholm
Alex Grönholm added the comment: Yes, Yury's approach is wrong here -- Futures should not know about asyncio, but asyncio should be able to handle Futures natively. This seems like the obvious solution to me. Any counterarguments? -- nosy: +alex.gronholm __

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-07-24 Thread Yury Selivanov
Yury Selivanov added the comment: > Any counterarguments? There are no counterarguments. There is no obvious way to support concurrent.futures transparently, though: await conc_fut requires conc_fut to implement __await__. So we either have to implement __await__ for concurrent futures an

[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Matthias Klose
New submission from Matthias Klose: LIPL has the value ${prefix}/lib/python3.5/config-$(VERSION)$(ABIFLAGS)-x86_64-linux-gnu and the code relies to substitute parameters from the left to the right, but it prefers $() variables. the attached patch substitutes all variables from the left to t

[issue22737] Provide a rejected execution model and implementations for futures.

2015-07-24 Thread Mehdi ABAAKOUK
Changes by Mehdi ABAAKOUK : -- nosy: +sileht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide an example where unpatched code fails but patched code work? -- nosy: +serhiy.storchaka, tarek stage: -> test needed type: -> behavior ___ Python tracker

[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Matthias Klose
Matthias Klose added the comment: On 07/24/2015 03:14 PM, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Could you please provide an example where unpatched code fails but patched > code work? yes, see the substitution for the LIBPL macro, which leaves ${prefix} unexpanded

[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I don't understand your example. Could you please provide reproducible Python code? Or better a patch for Lib/test/test_sysconfig.py? -- ___ Python tracker __

[issue24685] collections.OrderedDict collaborative subclassing

2015-07-24 Thread Eric Frederich
Eric Frederich added the comment: I understand that in the general case you cannot just swap the order around and get the same behaviour. This LoggingDict just prints some stuff to the screen and delegates to super and so I believe it should work wherever it is placed in a cooperative hierarc

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset b45077269aaa by Berker Peksag in branch '3.5': Issue #24695: Fix a regression in traceback.print_exception() https://hg.python.org/cpython/rev/b45077269aaa New changeset 2825c87d3f72 by Berker Peksag in branch 'default': Issue #24695: Fix a regressi

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-24 Thread Berker Peksag
Berker Peksag added the comment: Fixed in 3.5 and default branches. Thank you for your review, Raymond. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-24 Thread Adam Bartoš
Adam Bartoš added the comment: Thank you all for a quick reaction. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6e10dfbeab1 by Berker Peksag in branch 'default': Issue #10708: Add a FAQ entry about porting Python to a new platform. https://hg.python.org/devguide/rev/d6e10dfbeab1 -- nosy: +python-dev ___ Python tra

[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread Chris Smowton
Chris Smowton added the comment: Why wouldn't that fix the problem? The issue is poplib not tolerating server behaviour seen in the wild, and if you limit by message size not line length you shouldn't see this problem? (Side note, I'm surprised not to have been emailed when you replied, any id

[issue24706] poplib: Line too long error causes knock-on failure to retrieve all subsequent messages

2015-07-24 Thread Chris Smowton
New submission from Chris Smowton: As mentioned in #23906, when poplib bails from receiving a message with a 'line too long' error it neither flushes nor re-establishes the TCP connection. This means that subsequent commands fail because instead of the expected response we receive part of the

[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-07-24 Thread Berker Peksag
Berker Peksag added the comment: Applied it with minor changes. Thanks for the great patch, Paul Anton Letnes. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread Chris Smowton
Chris Smowton added the comment: Created #24706 to describe the unflushed connection problem. -- ___ Python tracker ___ ___ Python-bug

[issue15657] Error in Python 3 docs for PyMethodDef

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 3.5 it would be better to make METH_KEYWORDS == METH_VARARGS | METH_KEYWORDS. Current definition: #define METH_VARARGS 0x0001 #define METH_KEYWORDS 0x0002 Should be: #define METH_VARARGS 0x0001 #define METH_KEYWORDS 0x0003 But it can't be applied in m

[issue24379] operator.subscript

2015-07-24 Thread Joe Jevnik
Joe Jevnik added the comment: Any more comments? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue24699] TemporaryDirectory is cleaned up twice

2015-07-24 Thread Robert Collins
Robert Collins added the comment: I think you may need to instrument TemporaryDirectory._cleanup to be sure, but it sounds like its being run twice. now, you're not using it like a context manager (at least as far as your code shows), so it must be happening from the weakref. https://docs.pyt

[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread Berker Peksag
New submission from Berker Peksag: >From >http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/2436: python: Python/pytime.c:633: pymonotonic_new: Assertion `!last_set || last <= *tp' failed. Fatal Python error: Aborted Full log is here: http://buildbot.python.org/all/b

[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread R. David Murray
R. David Murray added the comment: Sorry, I was unclear. In order to implement maximum message size we have to do a bit more to the logic than just use the max message size as the readline limit. But it does seem like the right approach to me. --

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch
John Leitch added the comment: Attaching repro. -- Added file: http://bugs.python.org/file40007/strop.replace_Integer_Overflow.py ___ Python tracker ___ _

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch
New submission from John Leitch: The Python strop.replace() method suffers from an integer overflow that can be exploited to write outside the bounds of the string buffer and potentially achieve code execution. The issue can be triggered by performing a large substitution that overflows the ar

[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-07-24 Thread Carol Willing
Carol Willing added the comment: Thanks Berker for the commit review. Paul Anton Letnes, thanks for your contribution to the devguide. Nicely done. -- ___ Python tracker ___ ___

[issue24685] collections.OrderedDict collaborative subclassing

2015-07-24 Thread Éric Araujo
Éric Araujo added the comment: FWIW I once helped a friend combine OrderedDict and defaultdict: https://gist.github.com/merwok/11268759 The behavior can be surprising if we don’t know what Raymond said about design choices in OrderedDict, but it was not hard (in the default+ordered case) to wo

[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread STINNER Victor
STINNER Victor added the comment: This buildbot runs in a VM. I need more information on the host (machine running the VM): OS, OS version, kernel version, hardware virtualization?, version of qemu/kvm?, etc. It's probably a bug in the virtualization. In the PEP 418, we decided to _not_ handl

[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -Chris ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +Rosuav ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue24685] collections.OrderedDict collaborative subclassing

2015-07-24 Thread Eric Frederich
Eric Frederich added the comment: Éric (Araujo), Combinding defaultdict and OrderedDict is a little easier since one of them (defaultdict) has special behavior on getitem while the other (OrderedDict) has special behavior on setitem. I played with mixing those two myself and saw some issues a

[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread Chris Angelico
Chris Angelico added the comment: The host is running Debian Jessie (newer than the Debian Wheezy of the VM). Linux sikorsky 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux What info are you after re hardware virtualization? VirtualBox 4.3.28 r100309 manages th

[issue20366] SQLite FTS (full text search)

2015-07-24 Thread Mark Summerfield
Changes by Mark Summerfield : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue20366] SQLite FTS (full text search)

2015-07-24 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> wont fix stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue24613] array.fromstring Use After Free

2015-07-24 Thread John Leitch
John Leitch added the comment: I understand the desire for consistency and I will create such a patch when I get some slack space (hopefully tonight), but I believe it will constitute a breaking change; in 2.7, passing self to array.fromstring works as expected most of the time. -- _

[issue24613] array.fromstring Use After Free

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not about consistency, this is about that don't encourage users to write new code incompatible with 3.x. For now passing self to array.fromstring() doesn't work in 3.x and doesn't work (sporadically crashes) and never worked in 2.7. What you think a

[issue24709] Unix build uses '-Wno-unused-result', which icc doesn't recognize

2015-07-24 Thread Zachary Ware
New submission from Zachary Ware: It would be nice to leave out '-Wno-unused-result' when CC=icc to prevent superfluous warnings like: icc: command line warning #10006: ignoring unknown option '-Wno-unused-result' -- components: Build messages: 247299 nosy: zach.ware priority: low seve

[issue24613] array.fromstring Use After Free

2015-07-24 Thread John Leitch
John Leitch added the comment: To clarify one point, passing self to array.fromstring works as expected almost all the time in 2.7. My testing revealed anomalous behavior <1% of the time, and it was almost always non-fatal corruption of the buffer. It stands to reason that legacy code may exis

[issue24710] Class name hardcoded in TracebackException.from_exception()

2015-07-24 Thread Berker Peksag
New submission from Berker Peksag: Here is a patch that changes to use cls() instead of hardcoded TracebackException. Serhiy also suggested on IRC to use the from_exception() classmethod in TracebackException's __init__ method. -- components: Library (Lib) files: classmethod.diff keyw

[issue24711] Document getpass.getpass behavior on ^C

2015-07-24 Thread Markus Unterwaditzer
New submission from Markus Unterwaditzer: getpass.getpass doesn't enter a newline when the user aborts input with ^C, while input/raw_input does. This behavior is surprising and can lead to mis-formatting of subsequent output. However, since this behavior exists since 2.7 and applications may

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Biwin John
Changes by Biwin John : -- assignee: docs@python components: Documentation nosy: Biwin John, docs@python priority: normal severity: normal status: open title: Docs page's sidebar vibrates on mouse wheel scroll on Chrome. type: behavior versions: Python 2.7 __

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Biwin John
New submission from Biwin John: The sidebar on the documentation pages ex. https://docs.python.org/2/library/collections.html vibrates/flashes on mouse wheel scroll. The sidebar with class sphinxsidebar, works okay when scrolling with the scrollbar, Firefox but not with mouse wheel on Chrome.

[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ba239d4efbb by Ned Deily in branch '2.7': Issue #24603: Update the OS X 32-bit installer build to use OpenSSL 1.0.2d. https://hg.python.org/cpython/rev/7ba239d4efbb New changeset 436b8902b305 by Ned Deily in branch '3.4': Issue #24603: Update the O

[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-24 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue24539] StreamReaderProtocol.eof_received() should return True to keep the transport open

2015-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc1d40a706e7 by Victor Stinner in branch '3.4': asyncio: sync with github https://hg.python.org/cpython/rev/fc1d40a706e7 -- nosy: +python-dev ___ Python tracker __

[issue24539] StreamReaderProtocol.eof_received() should return True to keep the transport open

2015-07-24 Thread STINNER Victor
STINNER Victor added the comment: > but it still needs a unittest and merging into CPython 3.4 and up. I did this part. By the way, running unit tests now logs two warnings on SSL tests, because returning True has no effect on SSL. We may just remove the warning at runtime and ensure that it'

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Carol Willing
Carol Willing added the comment: Biwan John, thanks for the issue report. I can confirm that there is jitter due to scroll speed lag in Chrome for Python 2.7 docs. This behavior does not happen with Python 3.x docs. No issues with Firefox. I am using Mac OS X 10.10 with up-to-date Chrome and

[issue12978] Figure out extended attributes on BSDs

2015-07-24 Thread Ned Deily
Ned Deily added the comment: There certainly is interest in supporting extended attributes on additional platforms. Thanks for the patch, William, and the positive comments, Billy. Since this probably falls into the category of new feature, it should be targeted for 3.6, now that 3.5 is in f

[issue14373] C implementation of functools.lru_cache

2015-07-24 Thread Ned Deily
Ned Deily added the comment: Sorry about the delay in testing the patch. I just confirmed (1) that I am still able to produce a segfault on OS X as described above under the specific conditions with a 10.6-like installer built with the current 3.5 tip and (2) that, with clru_cache_new.patch a

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-24 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Are you using the libffi sources vendored into the Python source tree, or a more recent version? I can verify that libffi v3.2 works on ARMv7 (on iOS, anyway), and there's been plenty of changes to the ARM source tree since the Python version was vendored

[issue24646] Python accepts SSL certificate that should be rejected on OSX

2015-07-24 Thread Ned Deily
Ned Deily added the comment: Ronald, FWIW, your test program seems to work without crashing on both 10.6 and 10.8; not surprisingly, it failed to compile on 10.5 (no 'errSecSuccess'). -- ___ Python tracker ___

[issue24647] Document argparse.REMAINDER as being equal to "..."

2015-07-24 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +bethard, docs@python versions: +Python 2.7, Python 3.6 ___ Python tracker ___

[issue24613] array.fromstring Use After Free

2015-07-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think it should raise an exception. It's hard to feel too bad about preventing corruption even if only "occasional". -- ___ Python tracker ___

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch looks truncated at 120th column. -- assignee: -> serhiy.storchaka components: +Extension Modules nosy: +serhiy.storchaka stage: -> patch review type: security -> crash ___ Python tracker

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch
Changes by John Leitch : Removed file: http://bugs.python.org/file40006/strop.replace_Integer_Overflow.patch ___ Python tracker ___ ___ Pytho

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch
John Leitch added the comment: Oops. Here's a corrected patch. -- Added file: http://bugs.python.org/file40009/strop.replace_Integer_Overflow.patch ___ Python tracker ___ __

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is modified patch. In new code we try to avoid integer wrap around. It is safer to raise MemoryError right after PyMem_MALLOC(), otherwise it would possible to reraise unrelated exception instead MemoryError if strop.replace() is called without clearing

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b5513e5afd2 by Benjamin Peterson in branch '2.7': proper overflow checks for mymemreplace (closes #24708) https://hg.python.org/cpython/rev/7b5513e5afd2 -- nosy: +python-dev resolution: -> fixed stage: patch review -> resolved status: open

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread asal ada
Changes by asal ada : -- components: +2to3 (2.x to 3.x conversion tool), Benchmarks, Build, Cross-Build, Demos and Tools, IO, Installation, Interpreter Core, Library (Lib), Tests, Unicode, Windows, XML, email nosy: +barry, haypo, paul.moore, r.david.murray, steve.dower, tim.golden, za

[issue11872] cPickle gives strange error for large objects.

2015-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this issue still actual? -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker ___

[issue2263] struct.pack() + numpy int raises SystemError

2015-07-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Steve Dower
Changes by Steve Dower : -- components: -2to3 (2.x to 3.x conversion tool), Benchmarks, Build, Cross-Build, Demos and Tools, IO, Installation, Interpreter Core, Library (Lib), Tests, Unicode, Windows, XML, email nosy: -steve.dower ___ Python track