[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I think it is too late in the game to change the semantics of this function.  
Changing it now will only break code.  The time for API discussion is before a 
release, not after.  Also, we have no indication from actual users that there 
is an actual problem here.

--
versions:  -Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 alternative implementation of or
behavior flag to _posixsubprocess.fork_exec() with appropriate autoconf and
conditional compilation based on availability ifdefs.

On Fri, Mar 17, 2017 at 11:49 AM John Jones  wrote:

>
> 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 a subprocess, even though memory
> is doubled for a very short period of time, is enough to raise a
> MemoryError, despite the subprocess i'm spawning using only 2 or 3Mb after
> the exec().
>
> I do appreciate that for most Python users however, they will not see much
> benefit from what I imagine is quite a lot of development work.
>
> FWIW, I did try the posix_spawn module, but i couldn't figure out how to
> write data to the stdin of a posix_spawn subprocess, and gave up in place
> of the commonly recommended solution to this problem (via StackExchange) of
> spawning lots of subprocesses before you put stuff in memory. Fortunately,
> for my problem, this was a possible solution. For others I think they're
> going to have to use posix_spawn, or an entirely different programming
> language if that doesn't work.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 now, hope that's sufficient.

--
nosy: +bquinlan, ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29734] nt._getfinalpathname handle leak

2017-03-17 Thread Mark Becwar

Changes by Mark Becwar :


--
pull_requests: +628

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 yielding a single result.

This makes it unusable as a drop in replacement for plain map, which, being 
lazy, handles infinite iterables just fine, and produces results promptly.

Proposed change makes Executor.map begin yielding results for large iterables 
without submitting every task up front. As a reasonable default, I have it 
submit a number of tasks equal to twice the number of workers, submitting a new 
task immediately after getting results for the next future in line, before 
yielding the result (to ensure the number of outstanding futures stays 
constant). A new keyword-only argument, prefetch, is provided to explicitly 
specify how many tasks should be queued above and beyond the number of workers.

Working on submitting pull request now.

--
components: Library (Lib)
messages: 289789
nosy: josh.r
priority: normal
severity: normal
status: open
title: Executor.map should not submit all futures prior to yielding any results
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, normalization also happens when passing a locale value to the underlying 
setlocale(), mainly to avoid many common bugs due to setlocale() being 
extremely picky about the locale value. A side effect of this is that 
normalization will also kick in to add the encoding in case no encoding is 
given in the parameter.

Note that no normalization is necessary to simply set the configured default 
locale configured on the system. In such a case, you'd run setlocale('LC_ALL') 
and get what's configured.

If you run the lib C setlocale() with a locale without encoding, the encoding 
used by the system entirely on what's configured on the system. The SUPPORTED 
file only gives a hint at what glibc think it should install per default, but 
any admin or distributor could change these settings simply by running 
localedef with some other encoding (charmap in locale speak).

I suppose that we could resolve some of the confusion by adding a parameter to 
disable this normalization in setlocale().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24037] Argument Clinic: add the boolint converter

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests:  -601

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests:  -578

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28682] Bytes support in os.fwalk()

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests:  -580

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26121] Use C99 functions in math if available

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +622

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +625

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29645] webbrowser module import has heavy side effects

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +626

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29438] use after free in key sharing dict

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +621

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29576] Improve some deprecations in the importlib

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +618

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +608

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29534] _decimal difference with _pydecimal

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +610

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +605

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29684] Minor regression in PyEval_CallObjectWithKeywords()

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +614

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29546] A more helpful ImportError message

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +615

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24037] Argument Clinic: add the boolint converter

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +601

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +602

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +613

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29742] asyncio get_extra_info() throws exception

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +596

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +603

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29695] Weird keyword parameter names in builtins

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +589

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +591

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29463] Add `docstring` field to AST nodes

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +584

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28682] Bytes support in os.fwalk()

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +580

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +578

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28231] zipfile does not support pathlib

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +587

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +581

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +579

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 MemoryError for large positive size. For raising 
MemoryError in bytes() we should change OverflowError to MemoryError in other 
place.

But this is not the only difference between bytes and bytearray.

>>> bytearray(b'abcd') * sys.maxsize
Traceback (most recent call last):
  File "", line 1, in 
MemoryError
>>> b'abcd' * sys.maxsize
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: repeated bytes are too long

This looks related and I think that it is worth to change OverflowError to 
MemoryError in the repetition operation. But 'abcd' * sys.maxsize raises 
OverflowError too, therefore we should change exception types in str.

Concatenation also can raise OverflowError. If change OverflowError to 
MemoryError in above operations, it should be changed for concatenation too.

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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', -1))
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: getsockaddrarg: port must be 0-65535.
>>> socket.socket(family=socket.AF_INET6).bind(('::1', -1 << 1000))
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: Python int too large to convert to C long

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 count
>>> bytes(sys.maxsize + 1)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: cannot fit 'int' into an index-sized integer

for the same size arguments, bytearray raises the same errors.

thus, in accordance with #29833 (this is a sub-issue of #29833) for each of the
constructors of bytes and bytearray:
1. ValueErrors with the same error message should be raised for any
   negative size argument (big negative as well as small negative).
2. MemoryError should be raised for any size argument bigger than
   sys.maxsize.


Moreover, currently:
>>> bytes(sys.maxsize - 25)
Traceback (most recent call last):
  File "", line 1, in 
MemoryError
>>> bytes(sys.maxsize - 24)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: byte string is too large
>>> bytes(sys.maxsize)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: byte string is too large

for each of these size arguments, bytearray raises a MemoryError.

IMHO, to make the error messages more consistent, the constructor of bytes
should raise a MemoryError for any too large size argument, as the constructor
of bytearray already does.

--
components: Interpreter Core
messages: 289783
nosy: Oren Milman, serhiy.storchaka
priority: normal
severity: normal
status: open
title: errors raised by bytes and bytearray constructors for invalid size 
argument
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: cannot fit 'int' into an index-sized integer
>>> bool(range(1<<1000))
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: Python int too large to convert to C ssize_t

Proposed patch makes bool() returning True if len() raises OverflowError.

This is an alternate solution of issue28876.

--
components: Interpreter Core
messages: 289781
nosy: mark.dickinson, rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Avoid raising OverflowError in bool()
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 recent call last):
  File "", line 1, in 
ValueError: __len__() should return >= 0
>>> class HugeNegativeLen:
... def __len__(self):
... return -sys.maxsize-10
... 
>>> len(HugeNegativeLen())
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: cannot fit 'int' into an index-sized integer

Proposed patch makes it always raising ValueError.

--
components: Interpreter Core
messages: 289779
nosy: Oren Milman, haypo, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Avoid raising OverflowError in len() when __len__() returns negative 
large value
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-03-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +574

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28876] bool of large range raises OverflowError

2017-03-17 Thread Akira Li

Akira Li added the comment:

> Akira, could you open a pull request on GitHub?

Done. PR 699

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Check that sq_length and mq_length return non-negative result
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 a subprocess, even though memory is doubled 
for a very short period of time, is enough to raise a MemoryError, despite the 
subprocess i'm spawning using only 2 or 3Mb after the exec().

I do appreciate that for most Python users however, they will not see much 
benefit from what I imagine is quite a lot of development work.

FWIW, I did try the posix_spawn module, but i couldn't figure out how to write 
data to the stdin of a posix_spawn subprocess, and gave up in place of the 
commonly recommended solution to this problem (via StackExchange) of spawning 
lots of subprocesses before you put stuff in memory. Fortunately, for my 
problem, this was a possible solution. For others I think they're going to have 
to use posix_spawn, or an entirely different programming language if that 
doesn't work.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29830] pyexpat.errors doesn't have __spec__ and __loader__ set

2017-03-17 Thread Manuel Jacob

Manuel Jacob added the comment:

You're of course right that pyexpat is an extension module and not a builtin 
module.  I was confused because on PyPy it's a builtin module.

But the same question applies for ExtensionFileLoader.is_package().  It returns 
False in the case of pyexpat.  This function looks a bit strange to me anyway.  
It assumes the definition of what a package is for pure Python modules and 
applies it to extension modules.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29830] pyexpat.errors doesn't have __spec__ and __loader__ set

2017-03-17 Thread Brett Cannon

Brett Cannon added the comment:

The BuiltinImporter's assumption is reasonable because there are no built-ins 
that are packages. :) In pyexpat's case it's an extension module, not a 
built-in.

As for the expat issue, a patch that backfills the missing info would probably 
be reviewed.

--
nosy: +brett.cannon, eric.snow, ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/socket.py", line 714, in create_connection
raise error("no connection possible due to %d errors" % nerr, errors)
OSError: [Errno no connection possible due to 2 errors] 
[ConnectionRefusedError(111, 'Connection refused'), ConnectionRefusedError(111, 
'Connection refused')]

And this is on Windows:

>>> socket.create_connection(('localhost', 12345), 1)
Traceback (most recent call last):
  File 
"D:\Apps\WinPython-64bit-3.5.3.0Qt5\python-3.5.3.amd64\lib\site-packages\IPython\core\interactiveshell.py",
 line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
  File "", line 1, in 
socket.create_connection(('localhost', 12345), 1)
  File 
"D:\Apps\WinPython-64bit-3.5.3.0Qt5\python-3.5.3.amd64\lib\socket.py", line 
714, in create_connection
raise error("no connection possible due to %d errors" % nerr, errors)
OSError: [Errno no connection possible due to 2 errors] [timeout('timed 
out',), timeout('timed out',)]


> Would it make sense to concatenate all error messages:

But then the user will not receive a list of errors to inspect, but just a big 
string.
The biggest problem in my latest ec887c0c3 is that I'm abusing the 1st arg to 
OSError() constructor, instead of being an `errno` it is a string.
But I got that from the existing code.[1]

And still, this PR is not yer finished because there is no feedback on any 
intermediate errors in the case of success.
As suggested on the OP, this may happen (in my order of preference):

1. with a new argument for the user to provide the list to collect the errors 
(changes the API backward-compatiblly);
2. with logging logs;
3. with warnings;
4. do nothing.

I prefer logging over warnings because they are more configurable.

[1] https://github.com/python/cpython/blob/master/Lib/socket.py#L724

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 suggest someone who actively cares about a limited available process address 
space environment contribute this.  (ie: not your typical 64-bit system)

fork()+exec() does not cause significant memory allocation, only a brief 
~doubling of mapped address space, with backing pages being the originals just 
marked copy on write, but never written to by the child. The exec undoes that 
mapping.

It is technically possible to cause the copy on writes to happen if you 
immediately write to a large amount of memory in the parent process after the 
fork has happened before the exec has, but that seems like a rare timing 
problem that could even be worked around by monitoring the forked child to see 
that the exec has occurred before continuing.

--
versions: +Python 3.7 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
import pty
from subprocess import Popen, STDOUT

master_fd, slave_fd = pty.openpty()
proc = Popen(['./hello'],stdout=slave_fd, close_fds=True)
os.close(slave_fd)
data = os.read(master_fd, 512)
print('got ' + repr(data))
root@x064:[/data/prj/python/issues/29545]python
Python 2.7.12 (default, Sep 29 2016, 12:02:17) [C] on aix5
Type "help", "copyright", "credits" or "license" for more information.
>>> import errno
import os
import pty
from subprocess import Popen, STDOUT
>>> >>> >>> >>>
>>> master_fd, slave_fd = pty.openpty()
>>> master_fd
3
>>> slave_fd
4
>>> proc = Popen(['./hello'],stdout=slave_fd, close_fds=True)
>>> data = os.read(master_fd, 512)
>>> datat
'hello world\r\n'
>>> os.close(slave_fd)
>>> print (got '
  File "", line 1
print (got '
   ^
SyntaxError: EOL while scanning string literal
>>> print('got ' + repr(data))
got 'hello world\r\n'
>>> quit()

pass 3:
swap the close() and the read() and the program works fine.

"hello.py" 11 lines, 265 characters

root@x064:[/data/prj/python/issues/29545]cat hello.py
#!/usr/bin/env python
import errno
import os
import pty
from subprocess import Popen, STDOUT

master_fd, slave_fd = pty.openpty()
proc = Popen(['./hello'],stdout=slave_fd, close_fds=True)
data = os.read(master_fd, 512)
os.close(slave_fd)
print('got ' + repr(data))

root@x064:[/data/prj/python/issues/29545]./hello.py
got 'hello world\r\n'
root@x064:[/data/prj/python/issues/29545]

--
nosy: +aixto...@gmail.com

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 /opt/csw/lib/python3.3/site-packages/psycopg2/_psycopg.so: symbol 
timeradd: referenced symbol not found 
 

thanks 

justin

--
components: Build
messages: 289763
nosy: juwang
priority: normal
severity: normal
status: open
title: python3 pycopg2 import issue on solaris 10
type: compile error
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >