[issue27788] platform module's version number doesn't match its docstring

2016-08-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: That must have been an oversight. __version__ should read '0.8.0'. -- ___ Python tracker ___ ___

[issue27786] longobject.c: simplify x_sub(), inline _PyLong_Negate()

2016-08-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: "LGTM." Oh, you posted your comment while I was pushing the patch after Brett wrote LGTM on the review (not on the bug tracker). > Maybe use size_a instead of Py_SIZE(z)? > And look at "sign". Currently it takes values 1 and -1. Is it worth t

[issue27789] test_asyncio Resource Warnings

2016-08-17 Thread Terry J. Reedy
New submission from Terry J. Reedy: 3.6, Windows 10, debug build. The following appeared before and after pulling and rebuilding today. I am reporting as per Victor's request on pydev list. 0:00:22 [ 52/402] test_asyncio passed F:\Python\dev\36\lib\asyncio\sslproto.py:329: ResourceWarning: uncl

[issue27594] Assertion failure when running "test_ast" tests with coverage.

2016-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1bf307f42a6b by Ned Deily in branch 'default': Issue #27594: Prevent assertion error when running test_ast with coverage https://hg.python.org/cpython/rev/1bf307f42a6b -- nosy: +python-dev ___ Python trac

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-17 Thread STINNER Victor
STINNER Victor added the comment: > Changing the affected version to just 2.7. Oh. The request looks like an enhancement. The problem is that if you add a new feature in Python 2.7.n+1, it's not available on Python 2.7.n. Support 2.7.n as well, you have to backport the code in your application

[issue27789] test_asyncio Resource Warnings

2016-08-17 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of issue #27746. -- resolution: -> duplicate superseder: -> ResourceWarnings in test_asyncio ___ Python tracker ___

[issue27746] ResourceWarnings in test_asyncio

2016-08-17 Thread STINNER Victor
STINNER Victor added the comment: I marked the issue #272989 as a duplicate of this one. Copy of the msg272986 by Terry J. Reedy: 3.6, Windows 10, debug build. The following appeared before and after pulling and rebuilding today. I am reporting as per Victor's request on pydev list. 0:00:22 [

[issue27790] test_distutils spews linker messages on Windows

2016-08-17 Thread Terry J. Reedy
New submission from Terry J. Reedy: 3.6, Win10, VS recently reinstalled to 'Update 3'. I believe these messages are somewhat new. 0:01:00 [111/402] test_distutils failed (env changed) xxmodule.c Creating library C:\Users\Terry\AppData\Local\Temp\tmpbjffnmc3\Debug\Users\Terry\AppData\Local\

[issue27594] Assertion failure when running "test_ast" tests with coverage.

2016-08-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. It looks the assert error is triggered by the new test case added in 59638baee25e for Issue13436. Since that test case was only added for 3.6, I've only applied Ivan's suggested fix for 3.6 as well, although you could trigger the same asser

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-17 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: For what it's worth, I don't much care whether this is fixed or not; I ended up wanting to leak less information from the RNG output anyway so I wrote this: https://gist.github.com/glyph/ceca96100a3049fefea6f2035abbd9ea but I felt like it should be reported.

[issue27594] Assertion failure when running "test_ast" tests with coverage.

2016-08-17 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Ned, thank you for applying the patch! I have discovered this same issue accidentally while playing with possible implementations of PEP 526. It appeared as a failure in test_sys_settrace in my fork. -- ___ Python

[issue27791] test_threading: test_threads_join_2() failed with "Fatal Python error: Py_EndInterpreter: not the last thread"

2016-08-17 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/4769/steps/test/logs/stdio 0:00:46 [ 41/402] test_threading crashed Fatal Python error: Py_EndInterpreter: not the last thread Current thread 0x000802006400 (most recent

[issue27780] Memory leak during Python build (from git c3ff7e7) on Debian 8.5 x64

2016-08-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the report but, AFAIK, pgen is only used during the build of Python and pgen is not installed (by "make install"). This doesn't seem like it is worth worrying about. Or am I missing something? Feel free to reopen if so or if someone comes up with a pa

[issue26750] Mock autospec does not work with subclasses of property()

2016-08-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: inspect.isdatadescriptor() is better indeed. (I was initially working on an old version of mock.py which does not import inspect, and I did not want to add the dependency there). - inspect uses hasattr(type(obj)) instead of hasatr(obj). This is better, (b

[issue27780] Memory leak during Python build (from git c3ff7e7) on Debian 8.5 x64

2016-08-17 Thread geeknik
geeknik added the comment: FYI, I was only able to build Python with ASAN by passing ASAN_OPTIONS=detect_leaks=0 along with the make command, otherwise ASAN wanted to stop the build process as soon as it detected this leak. -- ___ Python tracker

[issue26750] Mock autospec does not work with subclasses of property()

2016-08-17 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue27790] test_distutils spews linker messages on Windows

2016-08-17 Thread Steve Dower
Steve Dower added the comment: It certainly looks like more than we used to get... Ideally we'd capture the output from the build process and only write it out if the test failed. I'm not entirely sure why that isn't happening here. The warnings themselves are harmless (you get a nearly identi

[issue27780] memory leaks in pgen build step abort build with address sanitizer enabled

2016-08-17 Thread Ned Deily
Ned Deily added the comment: OK, that's not unreasonable and I see there have been earlier issues opened and addressed for similar problems (e.g. Issue18695). Perhaps someone will want to dive in. -- resolution: wont fix -> stage: resolved -> needs patch status: closed -> open title:

[issue18295] Possible integer overflow in PyCode_New()

2016-08-17 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27784] Random failure of test_TCPServer() of test.test_socketserver.SocketServerTest and test_handle_accept() of test.test_asyncore.TestAPI_UseIPv6Select on FreeBSD buildbots

2016-08-17 Thread Martin Panter
Martin Panter added the comment: I think I have seen these kind of errors pop up randomly on various tests on Free BSD buildbots (at least in the last few months or so). Are the buildbots so overloaded that they drop localhost connections? Or are localhost TCP connections generally just that u

[issue27791] test_threading: test_threads_join_2() failed with "Fatal Python error: Py_EndInterpreter: not the last thread"

2016-08-17 Thread Martin Panter
Martin Panter added the comment: I just happened to notice this failure on 3.5 as well: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.5/builds/791/steps/test/logs/stdio -- nosy: +martin.panter versions: +Python 3.5 ___ P

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 617104a6b759 by Alexander Belopolsky in branch 'default': Issue #24773: Include Tallinn 1999-10-31 transition in tests. https://hg.python.org/cpython/rev/617104a6b759 -- ___ Python tracker

[issue27787] Avoid test_main() in test_httplib; gc.collect() dangling threads

2016-08-17 Thread Martin Panter
Martin Panter added the comment: Yes I agree it would make sense to separate the test_httplib changes from the general change. I thought this task would be a very easy change, and noticed it wasn’t that simple the last minute. I would like to adjust the cleanup call to self.addCleanup(thread.

[issue27643] test_ctypes fails on AIX with xlc

2016-08-17 Thread Martin Panter
Martin Panter added the comment: Michael, byref() is just a helper for passing an object’s address to a C function. Calling func(byref(b), ...) in Python is equivalent to the C code unpack_bitfields(&b, ...) I still think the root problem is in unpack_bitfields(). When compiled with XLC, your

[issue27643] test_ctypes fails on AIX with xlc

2016-08-17 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-17 Thread David Hagen
David Hagen added the comment: > Secondarily, the doesn't seem to be any use case that can't be readily > covered by the existing classes. The use case that doesn't have a clean interface in 3.5 at the moment is the most common use case of enums: just a collection of named objects of given ty

[issue27789] test_asyncio Resource Warnings

2016-08-17 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27749] multprocessing errors on Windows: WriteFile() argument 1 must be int, not None; OSError: handle is closed

2016-08-17 Thread wevsty
wevsty added the comment: A similar situation also occurs in the following Linux,A similar situation on stackoverflow http://stackoverflow.com/questions/29277150/python-3-4-multiprocessing-bug-on-lock-acquire-typeerror-integer-required -- ___ Python

[issue27506] make bytes/bytearray delete a keyword argument

2016-08-17 Thread Martin Panter
Martin Panter added the comment: I can look at enhancing the tests at some stage, but it isn’t a high priority for me. Regarding translate() with no arguments, it makes sense if you see it as a kind of degenerate case of neither using a translation table, nor any set of bytes to delete: x.tr

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-17 Thread Guido van Rossum
Guido van Rossum added the comment: Ping -- I'd really like to see this happening, with "Collection" as the name. -- ___ Python tracker ___ __

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-17 Thread Ned Deily
Ned Deily added the comment: "Could you try the comment out test of macosx call for test_autocomplete (around line 30 to 35) in 2.7 and 3.5?" Commenting out the mac.setupApp call in the test setup class did not appear to affect the running of the tests for either 2.7 or 3.5. -- _

[issue27558] SystemError with bare `raise` in threading or multiprocessing

2016-08-17 Thread Xiang Zhang
Xiang Zhang added the comment: Victor, upload a new patch, changing the test case to the approach you prefer. ;) -- Added file: http://bugs.python.org/file44137/issue27558_v3.patch ___ Python tracker _

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-17 Thread Neil Girdhar
Neil Girdhar added the comment: @gvanrossum is there any reason that subclasshook is implemented by overriding instead of cooperation? E.g.,: class Sized(metaclass=ABCMeta): @classmethod def __subclasshook__(cls, C): return (super().__subclasshook__(C) and any

[issue27506] make bytes/bytearray translate's delete a keyword argument

2016-08-17 Thread Xiang Zhang
Xiang Zhang added the comment: Martin, I write the v3 patch to apply the comments. It preserves *table* as mandatory and move the test_translate to BaseBytesTest to remove duplicates. -- title: make bytes/bytearray delete a keyword argument -> make bytes/bytearray translate's delete a

[issue16764] Make zlib accept keyword-arguments

2016-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab0039b8a80e by Serhiy Storchaka in branch 'default': Issue #16764: Move NEWS entry to correct section and remove too strict test. https://hg.python.org/cpython/rev/ab0039b8a80e -- ___ Python tracker

[issue16764] Make zlib accept keyword-arguments

2016-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy, the message added in Misc/NEWS should be in Library section not Core > and Builtins section. Done. And addressed Victor's reasonable comment. Thanks! -- ___ Python tracker

[issue27749] multprocessing errors on Windows: WriteFile() argument 1 must be int, not None; OSError: handle is closed

2016-08-17 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

<    1   2