[issue28207] Use pkg-config to find dependencies

2016-09-27 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks Kubilay I got it. Note to myself: gdb uses lots --with-foo-{include,lib}. -- ___ Python tracker ___ _

[issue27322] test_compile_path fails when python has been installed

2016-09-27 Thread STINNER Victor
STINNER Victor added the comment: Any update on the issue? http://buildbot.python.org/all/builders/x86%20Gentoo%20Installed%20with%20X%203.x is still failing. -- ___ Python tracker ___

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-09-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: This started failing once again on koobs-freebsd-current: == ERROR: test_chown (test.test_os.ChownFileTests) -- Traceback (most

[issue27322] test_compile_path fails when python has been installed

2016-09-27 Thread Chris Angelico
Chris Angelico added the comment: I'm not sure. The patch got backed out with little explanation, so presumably it broke something somewhere, but I don't know what. -- ___ Python tracker __

[issue28115] Use argparse for the zipfile module

2016-09-27 Thread Jaysinh shukla
Jaysinh shukla added the comment: @SilentGhost I have mad few comments on your patch. Please contact me on any confusions. Looking forward to you. Thanks! -- ___ Python tracker

[issue28183] Clean up and speed up dict iteration

2016-09-27 Thread INADA Naoki
INADA Naoki added the comment: Serhiy, may I update your patch, if you're busy in this week? -- ___ Python tracker ___ ___ Python-bugs

[issue28183] Clean up and speed up dict iteration

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Feel free to do this. I'm not such busy, I'm experimenting with other variants. -- ___ Python tracker ___

[issue28115] Use argparse for the zipfile module

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28281] Remove year limits from calendar

2016-09-27 Thread Walter Dörwald
Walter Dörwald added the comment: I don't think that's necessary. What's the use case for this? And if we want to to this, wouldn't it be better to enhance datetime, so that this use case is supported too? -- ___ Python tracker

[issue24098] Multiple use after frees in obj2ast_* methods

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Bad things happen not only when a list shrinks, but also when it grows during iteration. The one solution is to check if the size is changed on every iteration. The other solution is to convert a list to a tuple for iterating. -- versions: +Python 2

[issue24098] Multiple use after frees in obj2ast_* methods

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file44839/issue24098-iterate-tuple.patch ___ Python tracker ___ ___ Python-bu

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Old code looked strange after issue18571: flags |= EPOLL_CLOEXEC; if (flags) self->epfd = epoll_create1(flags); else The condition is always true unless EPOLL_CLOEXEC is 0. -- _

[issue27703] Replace two Py_XDECREFs with Py_DECREFs in do_raise

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e59cb403efa by Serhiy Storchaka in branch 'default': Issue #27703: Got rid of unnecessary NULL checks in do_raise() in release mode. https://hg.python.org/cpython/rev/9e59cb403efa -- nosy: +python-dev __

[issue27703] Replace two Py_XDECREFs with Py_DECREFs in do_raise

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2016-09-27 Thread STINNER Victor
STINNER Victor added the comment: > Old code looked strange after issue18571: epoll_create() is a deprecated. epoll_create(size): "Since Linux 2.6.8, the size argument is ignored, but must be greater than zero" according to the man page. So it's fine to always call epoll_create1(flags). Exam

[issue27577] Make implementation and doc of tuple and list more compliant

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would prefer deprecating keyword parameter for list() and tuple(). It is not documented and unlikely used in third party code. -- ___ Python tracker __

[issue27572] Support bytes-like objects when base is given to int()

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that deprecates support of bytes-like objects except bytes and bytearray in int(), float(), compile(), eval(), exec(). I'm not arguing for it, this is just for the ground of the discussion. -- Added file: http://bugs.python.org/file4

[issue27411] Possible different behaviour of explicit and implicit __dict__ accessing when involving builtin types' __dict__ descriptors

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue26906. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue28285] 35.5 - 29.58 = 5.920000000000002 (it's false !)

2016-09-27 Thread Hogren
New submission from Hogren: I was using python as calculator when I enter : 35.5 - 29.58 I am surprising when python give me a result with many decimals: 5.922 I tried to change one number : 35.5 - 29.57 The result is correct : 5.93 The error is present again when I tried to invers

[issue28285] 35.5 - 29.58 = 5.920000000000002 (it's false !)

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue27572] Support bytes-like objects when base is given to int()

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file44840/deprecate_byte_like_support_in_int.patch ___ Python tracker ___

[issue27572] Support bytes-like objects when base is given to int()

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file44841/deprecate_byte_like_support_in_int.patch ___ Python tracker ___ __

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch makes the implementation of pop() and popitem() methods of the C implementation of OrderedDict matching the Python implementation. This fixes issue28014 and I suppose this fixes this issue too. -- keywords: +patch stage: test needed ->

[issue27963] null poiter dereference in set_conversion_mode due uncheck _ctypes_conversion_errors

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27683] ipaddress subnet slicing iterator malfunction

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue27963] null poiter dereference in set_conversion_mode due uncheck _ctypes_conversion_errors

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 637ce96423ef by Serhiy Storchaka in branch '2.7': Issue #27963: Fixed possible null pointer dereference in ctypes.set_conversion_mode(). https://hg.python.org/cpython/rev/637ce96423ef -- nosy: +python-dev __

[issue27963] null poiter dereference in set_conversion_mode due uncheck _ctypes_conversion_errors

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: security -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27963] null poiter dereference in set_conversion_mode due uncheck _ctypes_conversion_errors

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

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28286] gzip guessing of mode is ambiguilous

2016-09-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: gzip.GzipFile can be open in two modes: reading and writing. The mode is specified by the mode parameter, but if it is not specified or is None, the mode is determined by the mode of passed file object. The problem is that the file object can support readi

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2016-09-27 Thread Martin Richard
New submission from Martin Richard: Hi, Currently, subprocess.Popen performs blocking IO in its constructor (at least on Unix): it reads on a pipe in order to detect outcome of the pre-exec and exec phase in the new child. There is no way yet to modify this behavior as this blocking call is p

[issue28115] Use argparse for the zipfile module

2016-09-27 Thread SilentGhost
SilentGhost added the comment: Jaysinh, you can upload your modified patch, so it can be reviewed. -- ___ Python tracker ___ ___ Pytho

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: Serhiy's patch looks good to me. It would be nice to add a test for multiple invalid keyword arguments: with self.assertRaisesRegex(TypeError, msg): ImportError('test', invalid='keyword', another=True) Using empty_tuple seems reasonable to me. Bret

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: > If nobody fixes the unit test, I will revert the change. I attached a patch that skips the test in case of a timeout in issue 28176. Did you had a chance to take a look at it? -- nosy: +berker.peksag stage: -> needs patch type: -> behavior versions:

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-09-27 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: berker.peksag -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-09-27 Thread Brett Cannon
Brett Cannon added the comment: Left a review, but basically LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Roy Williams
New submission from Roy Williams: I'm finding the `-3` flag to be super useful, but it's quite a huge pain to thread it through all of the places that spawn python subprocesses, sometimes requiring forking of third party code. This would be much simpler if, like PYTHONWARNINGS, Py_Py3kWarningF

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The patch LGTM except tests. What are your issues with the tests? Did you see the -4 patch? > But we should at least document the behavior of itermonthdates(), > monthdatescalendar() and yeardatescalendar() at corner cases. I would rather not. At lea

[issue28247] Add an option to zipapp to produce a Windows executable

2016-09-27 Thread Paul Moore
Paul Moore added the comment: I'm still unsure whether this would be a good idea. On the plus side, it provides (in conjunction with the "embedded" distribution) a really good way of producing a standalone application on Windows. On the minus side there are some limitations which may trip up n

[issue28247] Add an option to zipapp to produce a Windows executable

2016-09-27 Thread Brett Cannon
Brett Cannon added the comment: I think documentation is definitely the cheapest option. It's also the most flexible since if we find out there's a lot of usage of the guide then we can add explicit support. -- ___ Python tracker

[issue28281] Remove year limits from calendar

2016-09-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > What's the use case for this? Why did George Mallory climb Mount Everest? "Because it's there." We have two open issues complaining about calendar behavior for years 1 and : #28253 and #26650. There is also a closed issue #15421 that attempted to

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread Yury Selivanov
Yury Selivanov added the comment: Berker, I think it's an OK workaround. The test is kind of unstable, to the point of me thinking to just remove it (keeping the rest of the patch applied). Feel free to apply it. -- ___ Python tracker

[issue28275] LZMADecompressor.decompress Use After Free

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset b4c0e733b342 by Serhiy Storchaka in branch '3.5': Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress(). https://hg.python.org/cpython/rev/b4c0e733b342 New changeset 52f8eb2fa6a6 by Serhiy Storchaka in branch '3.6': Issue #282

[issue28275] LZMADecompressor.decompress Use After Free

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with small changes. Thank you John for your contribution. Tested that 3.4 is not affected. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Something went wrong with issue28253-4.diff. I'll investigate and replace. -- ___ Python tracker ___

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b8f0db1944f by Serhiy Storchaka in branch '3.5': Issue #21578: Fixed misleading error message when ImportError called with https://hg.python.org/cpython/rev/9b8f0db1944f New changeset 95549f4970d0 by Serhiy Storchaka in branch '3.6': Issue #21578:

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file44845/issue28253-4.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: issue28253-4.diff should be good now. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file44837/issue28253-4.diff ___ Python tracker ___ ___ Python-bugs-list

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a test for multiple invalid keyword arguments, added braces, fixed a leak. But there is other oddity in ImportError constructor (issue28289). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue28289] ImportError.__init__ doesn't reset not specified exception attributes

2016-09-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: ImportError.__init__ sets only specified attributes ("msg", "name" or "path"), and left not explicitly specified attributes unchanged. >>> err = ImportError('test', name='name') >>> err.args, err.msg, err.name, err.path (('test',), 'test', 'name', None) >>>

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: I think we can add a note for starmap() in the following sentence: > [...] (it supports only one iterable argument though). (Quoted from https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.map) Would you like to write a patch? ---

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks for triaging this, Bert. Would you like to propose a patch with a test case? Note that we can't fix this in 3.3 and 3.4 because they are in security-fix-only mode. See https://docs.python.org/devguide/index.html#status-of-python-branches for details.

[issue28289] ImportError.__init__ doesn't reset not specified exception attributes

2016-09-27 Thread Brett Cannon
Brett Cannon added the comment: I think it's a bug, but a low priority one. -- priority: normal -> low ___ Python tracker ___ ___ Pyth

[issue28290] BETA report: Python-3.6 build messages to stderr: AIX and "not GCC"

2016-09-27 Thread Michael Felt
Changes by Michael Felt : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28290] BETA report: Python-3.6 build messages to stderr: AIX and "not GCC"

2016-09-27 Thread Michael Felt
New submission from Michael Felt: GCC and IBM xlC compilers pay attention to different things - so some of the messages are "accepted" if not harmless. e.g. this type: "./Modules/xxsubtype.c", line 293.19: 1506-196 (W) Initialization between types "void*" and "int(*)(struct _object*)" is not a

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch LGTM. You can see how itermonthdates() is used in third-party code: https://github.com/sunlightlabs/django-locksmith/blob/master/locksmith/hub/dataviews.py https://github.com/quandyfactory/Quandy/blob/master/quandy.py https://github.com/takanory/plo

[issue20947] -Wstrict-overflow findings

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset dad879edefd2 by Serhiy Storchaka in branch '3.5': Issue #20947: Fixed a gcc warning with -Wstrict-overflow. https://hg.python.org/cpython/rev/dad879edefd2 New changeset 5ecbe8a55ccd by Serhiy Storchaka in branch '3.6': Issue #20947: Fixed a gcc warn

[issue20947] -Wstrict-overflow findings

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

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: serhiy.storchaka -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue28281] Remove year limits from calendar

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think data range is limited by year 1 due to ambiguity of year -1. Is it 1 B.D. or 2 years before year 1 (2 B.D.)? -- ___ Python tracker __

[issue28290] BETA report: Python-3.6 build messages to stderr: AIX and "not GCC"

2016-09-27 Thread Christian Heimes
Christian Heimes added the comment: blake2 is a hash algorithm. It uses #pragma pack(push, 1) and #pragma pack(pop) to change packing rules for structs. -- nosy: +christian.heimes ___ Python tracker __

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2016-09-27 Thread Michael Felt
Michael Felt added the comment: Actually, what may be needed are more "@skip" blocks - as ctypes has always been platform dependent. OR - have a counter or boolean that starts as zero or false and increase each time find_library() returns a value - and the test fails if the counter is still z

[issue28281] Remove year limits from calendar

2016-09-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Under my proposal year=-1 is 2 B.C. and year 0 is a leap year $ ./python.exe -mcalendar 0 2 February 0 Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 This is the simplest extension and p

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread STINNER Victor
STINNER Victor added the comment: I dislike the idea of a test for a race condition which skips itself if it fails to reproduce the race condition :-/ I like the idea of removing he unit test. But I don't have a strong opinion on this issue. -- ___ P

[issue28117] warning: dereferencing type-punned pointer will break strict-aliasing rules

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch eliminates warnings. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file44847/keccak_warnings.patch ___ Python tracker _

[issue28289] ImportError.__init__ doesn't reset not specified exception attributes

2016-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a simple patch. But I'm not sure that this is a bug. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file44848/importerror-reset-attributes.patch ___ Python tracker

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: Perhaps running a script like below on the host would help to identify the problem? import getpass import grp import pprint pprint.pprint(getpass.getuser()) pprint.pprint([(g.gr_gid, g.gr_name) for g in grp.getgrall()]) pprint.pprint([(g.gr_gid, g.gr_name, g.gr

[issue28176] Fix callbacks race in asyncio.SelectorLoop.sock_connect

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: test_sock_connect_sock_write_race failure is being discussed in issue 28283. Closing this again. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue28291] urllib/urllib2 AbstractDigestAuthHandler locked to retried count of 5

2016-09-27 Thread secynic
New submission from secynic: urllib/urllib2 AbstractDigestAuthHandler is hardcoded to 5 retries (self.retried). Normally this wouldn't be an issue. Certain products link basic HTTP auth to Active Directory (yes, this shouldn't be a thing). When you have a failed login attempt lockout set on AD

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread Yury Selivanov
Yury Selivanov added the comment: > I dislike the idea of a test for a race condition which skips itself if it fails to reproduce the race condition :-/ I like the idea of removing he unit test. OK, let's remove the test. I can do that myself in a couple of days. -- ___

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf93671100bf by Berker Peksag in branch '3.5': Issue #28283: Remove flaky test test_sock_connect_sock_write_race https://hg.python.org/cpython/rev/cf93671100bf New changeset b9f18dcbfc4b by Berker Peksag in branch '3.6': Issue #28283: Merge from 3.5

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: Just saw http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.5/builds/1136/steps/test/logs/stdio and went ahead to remove the test. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___

[issue28289] ImportError.__init__ doesn't reset not specified exception attributes

2016-09-27 Thread Brett Cannon
Brett Cannon added the comment: Patch LGTM. -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28289] ImportError.__init__ doesn't reset not specified exception attributes

2016-09-27 Thread Brett Cannon
Brett Cannon added the comment: And I say don't worry about backporting. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28291] urllib/urllib2 AbstractDigestAuthHandler locked to retried count of 5

2016-09-27 Thread R. David Murray
R. David Murray added the comment: For (convoluted) background, see issue 8797. A solution that uses a new would be a new feature and could only go in 3.7, but perhaps the solutions in the above issue will point to a backward compatible solution. -- nosy: +r.david.murray

[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2016-09-27 Thread Joe Jevnik
Joe Jevnik added the comment: I definitely could have used PyImport_Import and PyObject_Call to accomplish this task; however, when I looked at at the implementation of these functions it seemed like a lot of overhead and book keeping just to set a boolean. Since I was already in a C extension

[issue28291] urllib/urllib2 AbstractDigestAuthHandler locked to retried count of 5

2016-09-27 Thread secynic
secynic added the comment: It is a very limited use case; I won't gripe about 3.7+ only support. At the end of the day, even shown in the comments of that class, it shouldn't be set to a static 5 count. At least this is a very easy patch that won't affect existing code. -- __

[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue26075] typing.Union unifies types too broadly

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue26477] typing forward references and module attributes

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- nosy: +gvanrossum resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Changes by Brett Cannon : -- components: +Interpreter Core -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___ ___ Python-bugs-l

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Changes by Brett Cannon : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Brett Cannon added the comment: The idea seems reasonable to me. I would think this would fall under the -3 exemption if others agree this is reasonable to implement. -- nosy: +brett.cannon ___ Python tracker

[issue27322] test_compile_path fails when python has been installed

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: Here's an updated patch. -- Added file: http://bugs.python.org/file44849/issue27322_v3.diff ___ Python tracker ___ __

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: +1 from me. This would help people to port their projects to Python 3. -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue28219] Is order of argparse --help output officially defined?

2016-09-27 Thread paul j3
paul j3 added the comment: The display of the Action help lines is determined by the parser.format_help function https://docs.python.org/3/library/argparse.html#printing-help This function creates a Formatter, and then loads it with a 'stack' of sections. Sections are displayed in that order

[issue28210] argparse with subcommands difference in python 2.7 / 3.5

2016-09-27 Thread paul j3
paul j3 added the comment: Yes there was/is a bug that made subparsers optional. http://bugs.python.org/issue9253 -- nosy: +paul.j3 ___ Python tracker ___ __

[issue28291] urllib/urllib2 AbstractDigestAuthHandler locked to retried count of 5

2016-09-27 Thread secynic
Changes by secynic : -- keywords: +patch versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file44850/issue28291.patch ___ Python tracker _

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c439bce36bf2 by Alexander Belopolsky in branch '3.5': Issue #28253: Fixed calendar functions for extreme months: 0001-01 and -12. https://hg.python.org/cpython/rev/c439bce36bf2 New changeset cd384c4b441a by Alexander Belopolsky in branch '3.6':

[issue11501] distutils.archive_util should handle absence of zlib module

2016-09-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___ __

[issue28253] calendar.prcal(9999) output has a problem

2016-09-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7efba48299e9 by Alexander Belopolsky in branch 'default': Issue #28253: Added a NEWS entry. https://hg.python.org/cpython/rev/7efba48299e9 New changeset 55f11196c949 by Alexander Belopolsky in branch '3.5': Issue #28253: Added a NEWS entry. https://

[issue27470] -3 commandline option documented differently via man

2016-09-27 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy nosy: +berker.peksag stage: -> needs patch type: -> behavior ___ Python tracker ___ __

[issue26869] unittest longMessage docs

2016-09-27 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2016-09-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't have a burning desire to get this in, > I just thought it would be a nice to have. In that case, I think we should decline. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't see any problem with switching the lookup order now, > and I agree that should be less confusing, Thanks Nick. I concur as well and will apply this. Would it be reasonable to apply this to 3.6? IMO, it isn't a new feature, it is more of a usabil

[issue23155] unittest: object has no attribute '_removed_tests'

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: The culprit is the ``test_suite='nose.collector'`` line here. It looks like this has already been fixed in nose: https://github.com/nose-devs/nose/issues/759 -- nosy: +berker.peksag resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-09-27 Thread naught101
naught101 added the comment: Happy to. What is the process? hg clone cpython, and make a patch from that and post it here? Or is there some pull-request style process available? -- ___ Python tracker _

  1   2   >