[issue29808] SyslogHandler: should not raise exception in constructor if connection fails

2017-03-17 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29836] Remove nturl2path from test_sundry and amend its docstring

2017-03-17 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: After discussion on [1] this PR removes nturl2path from test_sundry and ammends its docstring to include a note on how it is an implementation detail and tested elsewhere. -- messages: 289760 nosy: Jim Fasarakis-Hilliard priority: normal

[issue29545] Python behavioral difference between Linux and AIX

2017-03-17 Thread Michael Felt
Michael Felt added the comment: Curious. First pass: using python2.7.12 also hanged as program, on the close() second pass: interactive - do the read first, then the close - seems to work: root@x064:[/data/prj/python/issues/29545]cat hello.py #!/usr/bin/env python import errno import os

[issue29816] Get rid of C limitation for shift count in right shift

2017-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated PR. Now OverflowError is never raised if the result is representable. Mark, could you please make a review? -- ___ Python tracker

[issue20104] expose posix_spawn(p)

2017-03-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think someone wanting this will need to put forward a patch adding it to be reviewed and mulled over. As Alex mentioned in msg22571 - https://github.com/dreid/posix_spawn/ exists as does the code Danek pointed at in the next comment. try those. I

[issue29837] python3 pycopg2 import issue on solaris 10

2017-03-17 Thread justin
New submission from justin: Hi, I have installed psycopg2 through pip3, but when I tried to import it, I got the following error. what could be the problem? help> psycopg2 problem in psycopg2 - ImportError: ld.so.1: python3.3: fatal: relocation error: file

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-03-17 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: > When the list of errors is passed as a second argument to the exception, how > is it rendered? This is how my latest ec887c0c3 looks on Linux: >>> import socket >>> socket.create_connection(('localhost', 12345)) Traceback (most recent

[issue29808] SyslogHandler: should not raise exception in constructor if connection fails

2017-03-17 Thread Vinay Sajip
Changes by Vinay Sajip : -- pull_requests: +569 ___ Python tracker ___ ___

[issue29836] Remove nturl2path from test_sundry and amend its docstring

2017-03-17 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Whoops: [1]: https://mail.python.org/mailman/private/core-mentorship/2017-March/003832.html -- ___ Python tracker

[issue29808] SyslogHandler: should not raise exception in constructor if connection fails

2017-03-17 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Does this need backport into 3.5 and 3.6? -- nosy: +Mariatta ___ Python tracker ___

[issue29836] Remove nturl2path from test_sundry and amend its docstring

2017-03-17 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +568 ___ Python tracker ___ ___

[issue29808] SyslogHandler: should not raise exception in constructor if connection fails

2017-03-17 Thread Марк Коренберг
Марк Коренберг added the comment: Yes, I want this simple patch to be back-ported. We use Python 3.5 in our projects. -- ___ Python tracker ___

[issue29808] SyslogHandler: should not raise exception in constructor if connection fails

2017-03-17 Thread Vinay Sajip
Vinay Sajip added the comment: Sorry, I was a bit too hasty closing the issue. -- ___ Python tracker ___ ___

[issue29808] SyslogHandler: should not raise exception in constructor if connection fails

2017-03-17 Thread Vinay Sajip
Changes by Vinay Sajip : -- pull_requests: +570 ___ Python tracker ___ ___

[issue29837] python3 pycopg2 import issue on solaris 10

2017-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: This would be an issue for pscyopg2 support, not the Python bug tracker. You're probably using an unsupported combination of psycopg2 and postgres libraries. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed

[issue28876] bool of large range raises OverflowError

2017-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Akira, could you open a pull request on GitHub? -- ___ Python tracker ___

[issue29840] Avoid raising OverflowError in bool()

2017-03-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: For now bool() raises OverflowError if __bool__ is not defined and __len__ returns large value. >>> class A: ... def __len__(self): ... return 1 << 1000 ... >>> bool(A()) Traceback (most recent call last): File "", line 1, in OverflowError:

[issue29840] Avoid raising OverflowError in bool()

2017-03-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Avoid raising OverflowError in len() when __len__() returns negative large value keywords: +patch Added file: http://bugs.python.org/file46731/bool-overflow.diff ___ Python

[issue29352] provide the authorative source for s[i:j] negative slice indices (<-len(s)) behavior for standard sequences

2017-03-17 Thread Akira Li
Changes by Akira Li <4kir4...@gmail.com>: -- pull_requests: +576 ___ Python tracker ___ ___ Python-bugs-list

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +602 ___ Python tracker ___ ___

[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +613 ___ Python tracker ___ ___

[issue29742] asyncio get_extra_info() throws exception

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +596 ___ Python tracker ___ ___

[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +603 ___ Python tracker ___ ___

[issue29347] Python could crash while creating weakref for a given object

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +607 ___ Python tracker ___ ___

[issue28929] Provide a link from documentation back to its source file

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +600 ___ Python tracker ___ ___

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +611 ___ Python tracker ___ ___

[issue28963] Use-after-free in _asyncio_Future_remove_done_callback() of _asynciomodule.c

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +598 ___ Python tracker ___ ___

[issue24037] Argument Clinic: add the boolint converter

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +601 ___ Python tracker ___ ___

[issue29546] A more helpful ImportError message

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +615 ___ Python tracker ___ ___

[issue22807] uuid.uuid1() should use uuid_generate_time_safe() if available

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +606 ___ Python tracker ___ ___

[issue29615] SimpleXMLRPCDispatcher._dispatch mangles tracebacks when invoking RPC calls through _dispatch

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +595 ___ Python tracker ___ ___

[issue29800] functools.partial segfaults in repr when keywords attribute is abused

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +623 ___ Python tracker ___ ___

[issue28518] execute("begin immediate") throwing OperationalError

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +608 ___ Python tracker ___ ___

[issue29532] functools.partial is not compatible between 2.7 and 3.5

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +612 ___ Python tracker ___ ___

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +616 ___ Python tracker ___ ___

[issue29438] use after free in key sharing dict

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +621 ___ Python tracker ___ ___

[issue29576] Improve some deprecations in the importlib

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +618 ___ Python tracker ___ ___

[issue29602] complex() on object with __complex__ function loses sign of zero imaginary part

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +620 ___ Python tracker ___ ___

[issue24037] Argument Clinic: add the boolint converter

2017-03-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The main purpose of the alias table is to support normalization and this is used for getdefaultencoding() which was created to be able to determine the default encoding based on what X.org uses as default without doing temporary setlocale() tricks. Now,

[issue29841] errors raised by bytes and bytearray constructors for invalid size argument

2017-03-17 Thread Oren Milman
New submission from Oren Milman: currently (on my Windows 10): >>> bytes(-1 << 1000) Traceback (most recent call last): File "", line 1, in OverflowError: cannot fit 'int' into an index-sized integer >>> bytes(-1) Traceback (most recent call last): File "", line 1, in ValueError: negative

[issue29832] Don't refer to getsockaddrarg in error messages

2017-03-17 Thread Oren Milman
Oren Milman added the comment: note that #15988 also left 3 changes for this issue to fix, as can be seen by searching for '29832' in the comments of PR 668. for example, this issue should also fix the following inconsistent error messages: >>> socket.socket(family=socket.AF_INET6).bind(('::1',

[issue29463] Add `docstring` field to AST nodes

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +584 ___ Python tracker ___ ___

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +592 ___ Python tracker ___ ___

[issue29695] Weird keyword parameter names in builtins

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +589 ___ Python tracker ___ ___

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +585 ___ Python tracker ___ ___

[issue29139] operator.concat/iconcat could only work if left operand is a sequence

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +590 ___ Python tracker ___ ___

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +593 ___ Python tracker ___ ___

[issue29271] Task.current_task(None) returns unexpected result

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +591 ___ Python tracker ___ ___

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +597 ___ Python tracker ___ ___

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +599 ___ Python tracker ___ ___

[issue29623] configparser.ConfigParser.read() does not accept Pathlib path as a single argument.

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +594 ___ Python tracker ___ ___

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: -593 ___ Python tracker ___ ___

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: -583 ___ Python tracker ___ ___

[issue28682] Bytes support in os.fwalk()

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: -580 ___ Python tracker ___ ___

[issue29568] undefined parsing behavior with the old style string formatting

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: -588 ___ Python tracker ___ ___

[issue24037] Argument Clinic: add the boolint converter

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: -601 ___ Python tracker ___ ___

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: -578 ___ Python tracker ___ ___

[issue28876] bool of large range raises OverflowError

2017-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In issue29840 proposed an alternate and more general solution. But I think that nb_bool should be implemented for range objects since issue29840 is 3.7 only and nb_bool is faster. -- stage: needs patch -> patch review

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +617 ___ Python tracker ___ ___

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +619 ___ Python tracker ___ ___

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2017-03-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29839] Avoid raising OverflowError in len() when __len__() returns negative large value

2017-03-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I was going to say that this is an API change, but given that without this, folks would have to catch both exceptions and now only have to catch one of them, it isn't. -- nosy: +barry ___ Python tracker

[issue29841] errors raised by bytes and bytearray constructors for invalid size argument

2017-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I worked on this issue. The simplest solution is calling PyNumber_AsSsize_t() with NULL rather than PyExc_OverflowError in bytes and bytearray constructors. Then both constructors will raise ValueError for large negative size and bytearray() will raise

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +581 ___ Python tracker ___ ___

[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +579 ___ Python tracker ___ ___

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +583 ___ Python tracker ___ ___

[issue28682] Bytes support in os.fwalk()

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +580 ___ Python tracker ___ ___

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +578 ___ Python tracker ___ ___

[issue29568] undefined parsing behavior with the old style string formatting

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +588 ___ Python tracker ___ ___

[issue28231] zipfile does not support pathlib

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +587 ___ Python tracker ___ ___

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +577 ___ Python tracker ___ ___

[issue28624] Make the `cwd` argument to `subprocess.Popen` accept a `PathLike`

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +586 ___ Python tracker ___ ___

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +582 ___ Python tracker ___ ___

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +609 ___ Python tracker ___ ___

[issue29684] Minor regression in PyEval_CallObjectWithKeywords()

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +614 ___ Python tracker ___ ___

[issue28692] gettext: deprecate selecting plural form by fractional numbers

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +605 ___ Python tracker ___ ___

[issue29534] _decimal difference with _pydecimal

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +610 ___ Python tracker ___ ___

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +604 ___ Python tracker ___ ___

[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +624 ___ Python tracker ___ ___

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +625 ___ Python tracker ___ ___

[issue29645] webbrowser module import has heavy side effects

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +626 ___ Python tracker ___ ___

[issue26121] Use C99 functions in math if available

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +622 ___ Python tracker ___ ___

[issue29615] SimpleXMLRPCDispatcher._dispatch mangles tracebacks when invoking RPC calls through _dispatch

2017-03-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20104] expose posix_spawn(p)

2017-03-17 Thread John Jones
John Jones added the comment: I agree with everything you're saying Gregory, however I don't think the significance of the memory doubling is as inconsequential as you might first think. For example, i have on my 64bit Linux system 128Gb of RAM, and a numpy table that's around 70Gb. Spawning

[issue28876] bool of large range raises OverflowError

2017-03-17 Thread Akira Li
Changes by Akira Li <4kir4...@gmail.com>: -- pull_requests: +572 ___ Python tracker ___ ___ Python-bugs-list

[issue29836] Remove nturl2path from test_sundry and amend its docstring

2017-03-17 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29839] Avoid raising OverflowError in len() when __len__() returns negative large value

2017-03-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +575 ___ Python tracker ___ ___

[issue29352] provide the authorative source for s[i:j] negative slice indices (<-len(s)) behavior for standard sequences

2017-03-17 Thread Akira Li
Akira Li added the comment: I prefer the wording in the current patch. Though I don't have strong feelings one way or the other as long as the behavior is specified explicitly. -- ___ Python tracker

[issue29838] Check that sq_length and mq_length return non-negative result

2017-03-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Following PR adds several asserts for checking that sq_length and mq_length either return non-negative result or raise an exception. One assert already was in PySequence_GetItem(). -- components: Interpreter Core messages: 289777 nosy: haypo,

[issue29839] Avoid raising OverflowError in len() when __len__() returns negative large value

2017-03-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: For now len() raises ValueError if __len__() returns small negative integer and OverflowError if __len__() returns large negative integer. >>> class NegativeLen: ... def __len__(self): ... return -10 ... >>> len(NegativeLen()) Traceback (most

[issue29833] Avoid raising OverflowError if possible

2017-03-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Avoid raising OverflowError in len() when __len__() returns negative large value ___ Python tracker

[issue29822] inspect.isabstract does not work on abstract base classes during __init_subclass__

2017-03-17 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Serhiy, sorry for a distraction, but it looks like here is one more situation where inspect.isabstract is problematic, similar to what was discussed in http://bugs.python.org/issue29638 recently. -- nosy: +levkivskyi, serhiy.storchaka

[issue20104] expose posix_spawn(p)

2017-03-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: All I'm really saying is that someone who wants this should provide a patch/PR with unittests. :) I can help review and go from there. It does make sense to me for it to be available as part of the subprocess API if it is available at all, likely an

[issue29842] Executor.map should not submit all futures prior to yielding any results

2017-03-17 Thread Josh Rosenberg
New submission from Josh Rosenberg: As currently implemented, Executor.map is not particularly lazy. Specifically, if given huge argument iterables, it will not begin yielding results until all tasks have been submitted; if given an infinite input iterable, it will run out of memory before

[issue29842] Executor.map should not submit all futures prior to yielding any results

2017-03-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +627 ___ Python tracker ___

[issue29842] Executor.map should not submit all futures prior to yielding any results

2017-03-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: Nosying folks suggested by GitHub, hope that's the right etiquette. For the record, filled out contributor agreement ages ago, but hadn't linked (or even created) GitHub account until after I got the warning. I've linked this account to my GitHub username

[issue29638] Spurious failures in test_collections in releak hunting mode after typing is imported

2017-03-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29822] inspect.isabstract does not work on abstract base classes during __init_subclass__

2017-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this an alternate fix of issue29638? -- components: +Library (Lib) nosy: +yselivanov stage: -> patch review type: -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue29734] nt._getfinalpathname handle leak

2017-03-17 Thread Mark Becwar
Changes by Mark Becwar : -- pull_requests: +628 ___ Python tracker ___ ___

  1   2   >