[issue26974] Crash in Decimal.from_float

2016-05-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Following example causes a segmentation fault.

from decimal import Decimal
class BadFloat(float):
def as_integer_ratio(self):
return 1
def __abs__(self):
return self

Decimal.from_float(BadFloat(1.2))

--
components: Extension Modules
messages: 265113
nosy: facundobatista, mark.dickinson, rhettinger, serhiy.storchaka, skrah
priority: normal
severity: normal
status: open
title: Crash in Decimal.from_float
type: crash
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



[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

'''
call find_library("foo")
libc:  libc.a
libc.a:  libc.a
libc.so.6:  libc.a
libcrypto.so:  libcrypto.a
'''

The above don’t seem right to me, unless compiling with “cc -llibc.so.6” etc 
works on AIX.

'''
call cdll.LoadLibrary("foo")
m:  
libm.so:  
'''

These doesn’t look right. What happened to the library name?

With your new aixutil.py file, it might be good to give it an underscore (_) 
prefix, to indicate it is an internal module rather than part of the ctypes 
API. So your code would do

import ctypes._aixutil as aix

--
Added file: http://bugs.python.org/file42776/python.Lib.ctypes.160504.patch

___
Python tracker 

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



[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

There are a few review comments that probably need addressing.

--
stage: patch review -> needs patch

___
Python tracker 

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



[issue26973] Dict View binops permit non-set types

2016-05-07 Thread Joshua Morton

New submission from Joshua Morton:

Following the comments in python ideas [1], I'm submitting a bug report. In 
python 3, dictionary views (KeysView and ItemsView specifically) do not adhere 
to the same interface as Sets. Specifically, the __and__, __or__, __xor__, and 
__sub__ methods on Views will accept a non-set type (`{}.keys() | []`), while 
the same throws a TypeError on a Set. The suggested, not-backwards-compatible 
solution, was to have dictviews raise errors in the same way. 

[1] https://mail.python.org/pipermail/python-ideas/2016-April/039469.html

--
messages: 265110
nosy: Joshua Morton
priority: normal
severity: normal
status: open
title: Dict View binops permit non-set types
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker 

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



[issue11063] uuid.py module import has heavy side effects

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

The versioning problem with libFOO.so.N already occurs with compiled programs. 
A C program compiled against libuuid.so.1 will fail to load if you only have 
libuuid.so.2. On the other hand, a Python program using find_library() will 
find either version. My point about robustness is that if a version 2 is 
invented, it might have different semantics or function signatures, and Python 
would then be assuming the wrong semantics.

--

___
Python tracker 

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



[issue23275] Can assign [] = (), but not () = []

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

Erm, I think you went overboard with the sequence → iterable changes and 
subscripting; see the review. Also, I think target_list should be made optional 
in the grammar description.

--

___
Python tracker 

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



[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-07 Thread Ilya Kulakov

Ilya Kulakov added the comment:

Guido, Probably a legitimate example of having multiple event loops in a single 
thread: you want to run certain coroutine synchronously without running 
thread's own event loop.

--

___
Python tracker 

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



[issue23815] Segmentation fault when create _tkinter objects

2016-05-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I noticed that you reported the crash and asked for a fix or reversion on 
#15721 6 months ago, with no response.  Hence, lets not wait longer.

Looking again, I see that there were 3 rounds of patches in 2012/2013.  If you 
want to follow up, I suggest closing that issue and open a fresh issue with 
with alternatives and your recommendation.

--

___
Python tracker 

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



[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2016-05-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Correct.  The doc I quoted was for the unlying mkstemp function.  I should have 
said so even though this fact was easily discovered. So by docstring, I meant 
the one for mkstemp also, which is currently 27 lines.  The docstring for the 
high level functions should not change.

I proposed to shorten the docstring by combining the sentences for prefix and 
suffix, while adding a bit of info.  I decided to withdraw this suggestion and 
close this issue.

--
assignee: docs@python -> terry.reedy
resolution:  -> rejected
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



[issue23640] int.from_bytes() is broken for subclasses

2016-05-07 Thread Ethan Furman

Changes by Ethan Furman :


--
Removed message: http://bugs.python.org/msg237891

___
Python tracker 

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



[issue23640] int.from_bytes() is broken for subclasses

2016-05-07 Thread Ethan Furman

Changes by Ethan Furman :


--
Removed message: http://bugs.python.org/msg240053

___
Python tracker 

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



[issue23640] int.from_bytes() is broken for subclasses

2016-05-07 Thread Ethan Furman

Changes by Ethan Furman :


--
Removed message: http://bugs.python.org/msg239619

___
Python tracker 

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



[issue23640] int.from_bytes() is broken for subclasses

2016-05-07 Thread Ethan Furman

Ethan Furman added the comment:

Not sure what I was thinking at the time, but several of my comments were 
supportive of `classmethod`s not calling subclass' __new__; I actually do not 
think that, and am +1 on the patch.

--
nosy: +ethan.furman

___
Python tracker 

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



[issue14111] IDLE Debugger should handle interrupts

2016-05-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

More info: Even though the debug window looks inactive, it is not.  After the 
restart, debugger cannot be turned off because it is 'active'.  It must be 
stuck on the raise statement.  The window can be closed, but after that, it 
cannot be brought back because something is still going.  It takes another 
Restart to restart debugger.

--

___
Python tracker 

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



[issue23815] Segmentation fault when create _tkinter objects

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I called the fix a workaround because other solution may be to make 
PyType_FromSpec() not setting tp_new in such cases. I expect that this is 
common mistake when convert a static class to a heap class with 
PyType_FromSpec(). At least we should add warnings in C API documentation and 
PEP 384. Or change the behavior of PyType_FromSpec() if it is appropriate. But 
this is different issue. If PyType_FromSpec() will be changed, proposed fix can 
be reverted.

--

___
Python tracker 

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



[issue26949] IDLE restarts when one debugs code raising SystemExit

2016-05-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#14111 is about handling ^C while debugging.  So for now I will assume that 
handling 'raise KeyboardInterrupt' is part of that issue.

--

___
Python tracker 

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



[issue14111] IDLE Debugger should handle interrupts

2016-05-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

'raise KeyboardInterrupt' in code causes shell to hang until Restart Shell 
Cntl-F6 in invoked.

>>> 
[DEBUG ON]
>>> raise KeyboardInterrupt


=== RESTART: Shell ===
[DEBUG ON]
>>> 

The behavior was noted by pperry on #26949, which is about SystemExit behavior. 
 I currently think it part of this issue.

--
stage:  -> patch review
type: enhancement -> behavior
versions: +Python 3.6 -Python 3.4

___
Python tracker 

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



[issue26935] android: test_os fails

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

I think this is an Android bug. See specification 
, fix 
.

If the change is to go into Python, it would be good to include a comment 
admitting it is an Android workaround, rather than a general deficiency.

--
nosy: +martin.panter
stage:  -> patch review

___
Python tracker 

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



[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

I think Terry may have had the mkstemp() doc string in mind. The 
NamedTemporaryFile() doc string already points to that function, and it doesn’t 
make sense to single NamedTemporaryFile() out above other functions.

--
nosy: +martin.panter

___
Python tracker 

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



[issue23815] Segmentation fault when create _tkinter objects

2016-05-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The news part of the patch did not apply  -- best not to include such in posted 
patches.

After recompiliing 3.5 on Windows 10, the two tkinter test cases give the 3.3 
TypeErrors instead of crashing.  test_tcl also runs.  curses does not run on 
Windows.

I do not know enough internals to really understand #15721 or why you call the 
fix a workaround, but I do understand 'exception' (OK) versus 'crash' 
(forbidden).  Unless you think restoring the previous situation (tp_new = NUll) 
can cause a worse problem, I would apply this soon, within a week, so not 
forgotten before the June update releases.  The tcl test addition is correct.  
The fix can be improved later if you think of something better.

I initially wondered why _tkinter has classes that cannot be instantiated (from 
Python).  Then I discovered that this is normal, and that the exception is 
standard.

>>> type(iter([]))()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: cannot create 'list_iterator' instances

Is list_iterator.tp_new NULL?  Or does it raise instead of crash by other means?

--

___
Python tracker 

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



[issue26949] IDLE restarts when one debugs code raising SystemExit

2016-05-07 Thread ppperry

ppperry added the comment:

This issue has worse consequences than I previously thought. It also affects 
`KeyboardInterrupt` with worse consequences.

If you run a program raising `KeyboardInterrupt` in the debugger, the shell 
will hang. Restarting the shell fixes this problem.

--

___
Python tracker 

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



[issue24500] provide context manager to redirect C output

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

Is it really common to have a C wrapper with undesirable output? I suspect 
there is not much demand for this feature. Maybe this would be better outside 
of Python’s standard library.

--
nosy: +martin.panter
status: open -> languishing

___
Python tracker 

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



[issue23815] Segmentation fault when create _tkinter objects

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There is special exception -- tp_new is not inherited for static types whose 
base class is 'object' (see a comment in inherit_special() in 
Objects/typeobject.c#4569 for explanation). After converting them to heap types 
they became inherit tp_new from object.

Proposed patch adds workarounds for types in _tkinter and curses.panel modules.

--
assignee:  -> serhiy.storchaka
keywords: +patch
stage:  -> patch review
versions:  -Python 3.4
Added file: http://bugs.python.org/file42775/tp_new_workaround.patch

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Berker Peksag

Berker Peksag added the comment:

Thanks! Perhaps we should not set HAVE_SEM_* to 1 if we are on Android in the 
configure step.

--

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

sem_open() is not implemented as well. Here is a gdb session with a breakpoint 
set at semlock_new() (SEM_FAILED is NULL on android):

Breakpoint 1, semlock_new (type=0xb6d070c0 <_PyMp_SemLockType>, 
args=(1, 1, 1, '/mp-dkzrq4ed', True), kwds=0x0)
at 
/home/xavier/src/packages/android/cpython/Modules/_multiprocessing/semaphore.c:420
420 {
(gdb) next
428 if (!PyArg_ParseTupleAndKeywords(args, kwds, "iiisi", kwlist,
(gdb) 
432 if (kind != RECURSIVE_MUTEX && kind != SEMAPHORE) {
(gdb) 
437 if (!unlink) {
(gdb) 
424 char *name, *name_copy = NULL;
(gdb) 
445 handle = SEM_CREATE(name, value, maxvalue);
(gdb) 
447 if (handle == SEM_FAILED || SEM_GET_LAST_ERROR() != 0)
(gdb) print handle
$5 = (SEM_HANDLE) 0x0
(gdb) next
460 if (handle != SEM_FAILED)
(gdb) 
462 PyMem_Free(name_copy);
(gdb) 
463 _PyMp_SetError(NULL, MP_STANDARD_ERROR);
(gdb) 
464 return NULL;
(gdb) 


This is run with sem_unlink_alt.diff modified to include the change to 'define 
SEM_UNLINK(name) 0' although I guess this does not change anything.

Sorry for misleading you about sem_unlink().

--

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

There is a typo in sem_unlink_alt.diff, not in the patch itself but in the 
neighbouring lines. In Modules/_multiprocessing/semaphore.c, it should be, I 
think, after one does 's/define sem_unlink(name)/define SEM_UNLINK(name)/':

@@ -194,8 +194,8 @@
 #  define SEM_FAILED ((sem_t *)-1)
 #endif
 
-#ifndef HAVE_SEM_UNLINK
-#  define sem_unlink(name) 0
+#if !defined(HAVE_SEM_UNLINK) || defined(__ANDROID__)
+#  define SEM_UNLINK(name) 0
 #endif
 
 #ifndef HAVE_SEM_TIMEDWAIT


But applying this new patch, gives exactly the same results. Maybe it is not 
just sem_unlink() that is not implemented. I will run a gdb session to find out.

--

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Attached the results with sem_unlink_alt.diff.

--
Added file: http://bugs.python.org/file42774/sem_unlink_alt_output.txt

___
Python tracker 

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



[issue6827] deepcopy erroneously doesn't call __setstate__ if __getstate__ returns empty dict

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The documentation of the pickle module doesn't match PEP 307 and the 
implementation. The copy module was changed in issue25718 to match the 
implementation of the pickle module. This fixed this issue.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-05-07 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I'd there any good reason 2.7 needs this? They are available via pypi as
extensions. (Read: I vote no)

On Sat, May 7, 2016, 3:15 AM Larry Hastings  wrote:

>
> Larry Hastings added the comment:
>
> Christian: any interest in proposing this for 2.7?  We could ask
> Benjamin.  It could still make 2.7.11--rc1 should be tagged in about a
> month.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue12290] __setstate__ is called for false values

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually this wording is not quite correct. __setstate__() is called for any 
pickled state. It is not called only if the state is not pickled. The state is 
not pickled if reducing method (__reduce_ex__ or __reduce__) doesn't return 
state or returns None as a state. Default reducing method for protocol 0 and 1 
doesn't return a state if __getstate__() returns false value.

There are many other details of pickle protocol that are not correctly 
documented in the documentation of the pickle module. PEP 307 documents pickle 
protocol more correctly.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows

2016-05-07 Thread Tim Peters

Tim Peters added the comment:

Just noting that the `multiprocessing` module can be used instead.  In the 
example, add

import multiprocessing as mp

and change

with concurrent.futures.ProcessPoolExecutor() as executor:

to

with mp.Pool() as executor:

That's all it takes.  On my 4-core Win10 box (8 logical cores), that continued 
to work fine even when passing 1024 to mp.Pool() (although it obviously burned 
time and RAM to create over a thousand processes).

Some quick Googling strongly suggests there's no reasonably general way to 
overcome the Windows-defined MAXIMUM_WAIT_OBJECTS=64 for implementations that 
call the Windows WaitForMultipleObjects().

--
nosy: +tim.peters

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Berker Peksag

Berker Peksag added the comment:

Xavier, could you try this alternative patch?

--
Added file: http://bugs.python.org/file42773/sem_unlink_alt.diff

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eee959fee5f5 by Berker Peksag in branch 'default':
Issue #26924: Fix Windows buildbots
https://hg.python.org/cpython/rev/eee959fee5f5

--

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Berker Peksag

Berker Peksag added the comment:

Thanks, Xavier.

--
components: +Extension Modules -Cross-Build, Library (Lib)
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



[issue22893] Idle: __future__ does not work in startup code.

2016-05-07 Thread Eric Fahlgren

Changes by Eric Fahlgren :


--
nosy: +eric.fahlgren

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1030aa8357a7 by Berker Peksag in branch 'default':
Issue #26924: Do not define _multiprocessing.sem_unlink under Android
https://hg.python.org/cpython/rev/1030aa8357a7

--
nosy: +python-dev

___
Python tracker 

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



[issue26906] format(object.__reduce__) fails intermittently

2016-05-07 Thread Antti Haapala

Antti Haapala added the comment:

Could it be possible to to make the debug build absolutely abort on any usage 
of PyType's that are not readied, usage including instantiating them. Then, 
instead of changing all `static` linkages to `extern`s (as in Serhiy's first 
patch) one could rather make per-compilation unit initialization functions that 
are called from objects.c; that way it would be easier to use preprocessor to 
turn on and off the very existence of certain types in a compilation unit based 
on a preprocessor flag.

Likewise the C-API docs for PyType_Ready should perhaps say "This must be 
called on all type objects to finish their initialization." instead of "should"

--

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

> Here is the result of the test:

I meant, results with the new patch.

--

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Here is the result of the test:

root@generic_x86:/data/local/tmp # python -m test -v test_concurrent_futures
== CPython 3.6.0a0 (default:811ccdee6f87+, May 7 2016, 18:51:28) [GCC 4.9 
20140827 (prerelease)]
==   Linux-3.4.67+-i686-with-libc little-endian
==   hash algorithm: fnv 32bit
==   /data/local/tmp/test_python_2024
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
Run tests sequentially
0:00:00 [1/1] test_concurrent_futures
test_concurrent_futures skipped -- This platform lacks a functioning sem_open 
implementation, therefore, the required synchronization primitives needed will 
not function, see issue 3770.
1 test skipped:
test_concurrent_futures
Total duration: 0:00:01

--

___
Python tracker 

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



[issue26936] android: test_socket fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

On android getservbyname(const char *NAME, const char *PROTO) returns NULL when 
PROTO is NULL:

root@generic_x86:/data/local/tmp # python
Python 3.6.0a0 (default:811ccdee6f87+, May  7 2016, 17:56:37) 
[GCC 4.9 20140827 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getservbyname('daytime', 'tcp')
13
>>> socket.getservbyname('daytime', 'udp')
13
>>> socket.getservbyname('daytime')
Traceback (most recent call last):
  File "", line 1, in 
OSError: service/proto not found
>>> 


On android socket.getaddrinfo() raises an exception when port is not a number:

>>> socket.getaddrinfo('127.0.0.1', 80)
[(, , 17, '', ('127.0.0.1', 
80)), (, , 6, '', 
('127.0.0.1', 80))]
>>> socket.getaddrinfo('127.0.0.1', 'http')
Traceback (most recent call last):
  File "", line 1, in 
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/socket.py", line 732, in 
getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 9] servname not supported for ai_socktype
>>>

--

___
Python tracker 

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



[issue26972] mistakes in docstrings in the import machinery

2016-05-07 Thread Brett Cannon

Brett Cannon added the comment:

Thanks for the thorough review, Oren! I'll have a look at the patch when I get 
a chance.

--
assignee:  -> brett.cannon
priority: normal -> low

___
Python tracker 

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



[issue26972] mistakes in docstrings in the import machinery

2016-05-07 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +brett.cannon
stage:  -> patch review
type:  -> behavior

___
Python tracker 

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



[issue26972] mistakes in docstrings in the import machinery

2016-05-07 Thread Oren Milman

Changes by Oren Milman :


Added file: http://bugs.python.org/file42772/patchedCPythonTestOutput.txt

___
Python tracker 

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



[issue26972] mistakes in docstrings in the import machinery

2016-05-07 Thread Oren Milman

Changes by Oren Milman :


Added file: http://bugs.python.org/file42771/CPythonTestOutput.txt

___
Python tracker 

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



[issue26972] mistakes in docstrings in the import machinery

2016-05-07 Thread Oren Milman

New submission from Oren Milman:

the proposed changes:
I believe there are some mistakes in the following docstrings:
1. in Lib/importlib/_bootstrap.py:
- _module_repr - a typo
- _exec - I believe 'Execute the module specified by the spec' is more 
accurate than 'Execute the spec'. 
This docstring wasn't changed since this version of _exec was added in 
revision 90915 (this version of _exec replaced the one that was in 
_SpecMethods), so I guess the exact phrasing of that docstring wasn't already 
challenged.
- _find_spec - I believe "Find a module's spec." is more accurate than 
"Find a module's loader.", as the function returns a spec and not a loader. It 
might be argued that ultimately the function does find a loader. However, we 
have the perfectly normal case where it is a namespace package, and _find_spec 
doesn't find any loader. 
This docstring was the docstring of _find_module, and was left as is 
when _find_spec replaced _find_module in revision 87347 (which implemented PEP 
451), so I guess the exact phrasing of that docstring (in the context of 
_find_spec) wasn't already challenged.
2. in Lib/importlib/_bootstrap_external.py:
- PathFinder._path_hooks - It seems the function's docstring was left 
as is when issue #14605 was addressed, and thus, since revision 76566, the 
docstring is inaccurate. 
- PathFinder.find_spec - I believe "Try to find a spec for 'fullname' 
on..." is more accurate than "find the module on..." (I took the phrasing from 
Doc\library\importlib.rst). 
It seems this docstring was copied from PathFinder.find_module when it 
was added in revision 87347, and was never changed since, so I guess its exact 
phrasing wasn't already challenged. 
- FileFinder.find_spec - It seems this docstring was copied from 
FileFinder.find_loader when it was added in revision 87347, and was never 
changed since. Again, I took the phrasing of my proposed new docstring from 
Doc\library\importlib.rst.


diff:
The patches diff is attached.


tests:
I played a little with the interpreter, and everything worked as usual. I also 
verified that CPython was indeed compiled with my patched frozen modules (made 
by _freeze_importlib.exe), by reading patched docstrings interactively via 
'import _frozen_importlib' and 'import _frozen_importlib_external'.

In addition, I run 'python -m test' (on my 64-bit Windows 10) before and after 
applying the patch, and got quite the same output.
the outputs of both runs are attached.

--
components: Library (Lib)
files: issue.diff
keywords: patch
messages: 265076
nosy: Oren Milman
priority: normal
severity: normal
status: open
title: mistakes in docstrings in the import machinery
versions: Python 3.6
Added file: http://bugs.python.org/file42770/issue.diff

___
Python tracker 

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



[issue26924] android: test_concurrent_futures fails

2016-05-07 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for testing. Here is a new patch.

--
stage:  -> patch review
Added file: http://bugs.python.org/file42769/sem_unlink_v2.diff

___
Python tracker 

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



[issue26935] android: test_os fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

On android dup2() returns with an error when both fds are the same:

root@generic_x86:/data/local/tmp # python
Python 3.6.0a0 (default:811ccdee6f87+, May  7 2016, 12:44:06) 
[GCC 4.9 20140827 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.dup2(1, 1)
Traceback (most recent call last):
  File "", line 1, in 
OSError: [Errno 22] Invalid argument


The attached patch fixes this in test_urandom_fd_reopened.

--
keywords: +patch
Added file: http://bugs.python.org/file42768/test_urandom_fd_reopened.patch

___
Python tracker 

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



[issue26906] format(object.__reduce__) fails intermittently

2016-05-07 Thread Guido van Rossum

Guido van Rossum added the comment:

Because the data structure that defines a type is just data, and at some
point PyType_Ready() must be called. The question is how to do this, given
that nobody can (or needs to) produce a definitive list of all types.

--

___
Python tracker 

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



[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2016-05-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
stage: needs patch -> patch review
type: behavior -> enhancement
versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4

___
Python tracker 

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



[issue4260] Document that ctypes.xFUNCTYPE are decorators.

2016-05-07 Thread ppperry

Changes by ppperry :


--
title: ctypes.xFUNCTYPE are decorators. -> Document that ctypes.xFUNCTYPE are 
decorators.

___
Python tracker 

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



[issue11643] Use |version| instead of X.Y in the doc

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Agree with Éric.

--
nosy: +serhiy.storchaka
resolution:  -> rejected
stage: needs patch -> 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



[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-05-07 Thread Jaroslav Urban

Jaroslav Urban added the comment:

just a remark, my system is

$uname -r
4.4.5-200.fc22.x86_64

and these python-related rpm archives are installed:

$rpm -qa | grep python
python-IPy-0.81-12.fc22.noarch
python-urllib3-1.13.1-3.fc22.noarch
libselinux-python-2.3-10.fc22.x86_64
python-kitchen-1.2.1-2.fc22.noarch
python-backports-1.0-5.fc22.x86_64
python3-gobject-3.16.2-1.fc22.x86_64
python3-slip-dbus-0.6.4-1.fc22.noarch
python-meh-0.40-1.fc22.noarch
python3-dbus-1.2.0-7.fc22.x86_64
python3-PyXB-1.2.4-2.fc22.noarch
python-augeas-0.5.0-2.fc22.noarch
python-libcomps-0.1.6-14.fc22.x86_64
python-libs-2.7.10-8.fc22.x86_64
python-pwquality-1.2.4-3.fc22.x86_64
libsemanage-python-2.3-6.fc22.x86_64
python-di-0.3-4.fc21.noarch
python3-requests-2.9.1-1.fc22.noarch
libxml2-python-2.9.3-1.fc22.x86_64
audit-libs-python-2.4.5-1.fc22.x86_64
python-dnf-langpacks-0.15.1-1.fc22.noarch
python-talloc-2.1.5-2.fc22.x86_64
python-pexpect-3.1-3.fc21.noarch
python-pip-6.0.8-1.fc22.noarch
python3-libs-3.4.2-6.fc22.x86_64
python3-cups-1.9.72-1.fc22.x86_64
python3-pycurl-7.19.5.1-3.fc22.x86_64
python-dnf-1.1.6-2.fc22.noarch
python3-humanize-0.5.1-1.fc22.noarch
python3-pip-6.0.8-1.fc22.noarch
python3-cairo-1.10.0-11.fc22.x86_64
python-blivet-1.0.10-1.fc22.noarch
python3-lxml-3.3.6-1.fc22.x86_64
python-pyudev-0.16.1-3.fc22.noarch
python-iniparse-0.4-15.fc22.noarch
python3-enchant-1.6.6-1.fc22.noarch
python3-systemd-231-4.fc22.x86_64
python3-urllib3-1.13.1-3.fc22.noarch
python-2.7.10-8.fc22.x86_64
python-coverage-4.0.3-1.fc22.x86_64
python-slip-0.6.4-1.fc22.noarch
python3-firewall-0.3.14.2-4.fc22.noarch
python3-sssdconfig-1.13.3-5.fc22.noarch
python-hawkey-0.6.2-2.fc22.x86_64
python2-pyparsing-2.1.0-2.fc22.noarch
python-xpyb-1.3.1-4.fc22.x86_64
python-setuptools-17.1.1-3.fc22.noarch
python3-setuptools-17.1.1-3.fc22.noarch
python-pycurl-7.19.5.1-3.fc22.x86_64
python-six-1.9.0-1.fc22.noarch
python-decorator-3.4.0-5.fc21.noarch
python-dmidecode-3.10.13-12.fc22.x86_64
python2-systemd-231-4.fc22.x86_64
python-requests-2.9.1-1.fc22.noarch
python-backports-ssl_match_hostname-3.5.0.1-1.fc22.noarch
policycoreutils-python-2.3-18.fc22.x86_64
python-slip-dbus-0.6.4-1.fc22.noarch
python-librepo-1.7.16-1.fc22.x86_64
langtable-python-0.0.34-1.fc22.noarch
python-firewall-0.3.14.2-4.fc22.noarch
python-chardet-2.2.1-2.fc22.noarch
python3-six-1.9.0-1.fc22.noarch
python3-chardet-2.2.1-2.fc22.noarch
python-meh-gui-0.40-1.fc22.noarch
libuser-python-0.62-1.fc22.x86_64
libselinux-python3-2.3-10.fc22.x86_64
libreport-python3-2.6.4-1.fc22.x86_64
python-urlgrabber-3.10.1-6.fc22.noarch
python-dnf-plugins-extras-common-0.0.11-1.fc22.noarch
python3-inotify-0.9.6-1.fc22.noarch
python3-slip-0.6.4-1.fc22.noarch
newt-python-0.52.18-1.fc22.x86_64
python-ntplib-0.3.2-3.fc21.noarch
dbus-python-1.2.0-7.fc22.x86_64
python3-decorator-3.4.0-5.fc21.noarch
rpm-python-4.12.0.1-14.fc22.x86_64
libreport-python-2.6.4-1.fc22.x86_64
python3-javapackages-4.3.2-6.fc22.noarch
python-sssdconfig-1.13.3-5.fc22.noarch
python3-3.4.2-6.fc22.x86_64
python-dnf-plugins-core-0.1.16-1.fc22.noarch
python-dnf-plugins-extras-migrate-0.0.11-1.fc22.noarch
python3-cssselect-0.9.1-5.fc22.noarch

--

___
Python tracker 

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



[issue26708] Constify C string pointers in the posix module

2016-05-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> 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



[issue26708] Constify C string pointers in the posix module

2016-05-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7edf74098c76 by Serhiy Storchaka in branch 'default':
Issue #26708: Use the "const" qualifier for immutable strings.
https://hg.python.org/cpython/rev/7edf74098c76

--
nosy: +python-dev

___
Python tracker 

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



[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-05-07 Thread Jaroslav Urban

New submission from Jaroslav Urban:

#wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
#xz -d Python-3.5.1.tar.xz
#tar xvf Python-3.5.1.tar
#cd Python-3.5.1
#./configure --prefix=/usr
#make
#make altinstall

---

so far so good

but afterwards

$python3.5
>>>import base64

results in

Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/base64.py", line 10, in 
import struct
  File "/usr/lib/python3.5/struct.py", line 13, in 
from _struct import *
ImportError: No module named '_struct'

--

>>>import sys
>>>sys.path
['', '/usr/lib/python35.zip', '/usr/lib/python3.5', 
'/usr/lib/python3.5/plat-linux', '/usr/lib/lib-dynload', 
'/usr/lib/python3.5/site-packages']

--

this path is wrong '/usr/lib/lib-dynload'
correctly it should point to the '/usr/lib64/python3.5/lib-dynload' as per the 
destination folders generated and used via configure / make / make altinstall

thank you
yaro-yaro

--
components: Installation
files: _sysconfigdata.py
messages: 265069
nosy: yaro-yaro
priority: normal
severity: normal
status: open
title: python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file42767/_sysconfigdata.py

___
Python tracker 

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



[issue26708] Constify C string pointers in the posix module

2016-05-07 Thread Eryk Sun

Eryk Sun added the comment:

It looks good to me. There are no errors or warnings.

--

___
Python tracker 

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



[issue26708] Constify C string pointers in the posix module

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Eryk. Here is updated patch. Is it correct?

--
Added file: http://bugs.python.org/file42766/posixmodule_constify2.patch

___
Python tracker 

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



[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-05-07 Thread Larry Hastings

Larry Hastings added the comment:

Christian: any interest in proposing this for 2.7?  We could ask Benjamin.  It 
could still make 2.7.11--rc1 should be tagged in about a month.

--

___
Python tracker 

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



[issue26352] getpass incorrectly displays password prompt on stderr on fallback

2016-05-07 Thread R. David Murray

R. David Murray added the comment:

stdout is much more likely to be redirected than stderr, so falling back to 
stderr makes more sense than falling back to stdout.  In the normal case, the 
prompt is shown regardless of whether stdout is redirected, and we're trying 
our best to replicate that in the fallback.

--
nosy: +r.david.murray
resolution:  -> rejected
stage: patch review -> resolved
status: pending -> closed

___
Python tracker 

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



[issue19253] PyArg_ParseTuple: wrong use of seterror() clips helpful type error annotation

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Error message was fixed in issue26198.

>>> format(None, 1)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: format() argument 2 must be str, not int

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue17765] weakref.ref ignores a 'callback' keyword argument

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Done. This issue is similar to recently closed issue26822.

Please give me know if you have other ready to review patches.

--
resolution:  -> fixed
stage: commit 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



[issue17765] weakref.ref ignores a 'callback' keyword argument

2016-05-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ee17a83feabc by Serhiy Storchaka in branch '3.5':
Issue #17765: weakref.ref() no longer silently ignores keyword arguments.
https://hg.python.org/cpython/rev/ee17a83feabc

New changeset 60de9c6188cc by Serhiy Storchaka in branch '2.7':
Issue #17765: weakref.ref() no longer silently ignores keyword arguments.
https://hg.python.org/cpython/rev/60de9c6188cc

New changeset ef55fa8c4b82 by Serhiy Storchaka in branch 'default':
Issue #17765: weakref.ref() no longer silently ignores keyword arguments.
https://hg.python.org/cpython/rev/ef55fa8c4b82

--
nosy: +python-dev

___
Python tracker 

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



[issue18726] json functions have too many positional parameters

2016-05-07 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: rhettinger -> 

___
Python tracker 

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



[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests

2016-05-07 Thread ppperry

Changes by ppperry :


--
title: unittest fails with "Start directory is not importable" -> unittest 
fails with "Start directory is not importable" when trying to run sourceless 
tests

___
Python tracker 

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



[issue25521] optparse module does not emit DeprecationWarning

2016-05-07 Thread John Hagen

John Hagen added the comment:

With 3.6.0a1 scheduled just around the corner, is there consensus about how to 
begin this?  I just signed the contributor agreement, so I should be able to 
try to help if we have a plan on how to divide the work.

--

___
Python tracker 

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



[issue26708] Constify C string pointers in the posix module

2016-05-07 Thread Eryk Sun

Eryk Sun added the comment:

I get the following warnings:

..\Modules\posixmodule.c(7422): warning C4090: 'function': different 'const' 
qualifiers [...]
..\Modules\posixmodule.c(7423): warning C4090: 'function': different 'const' 
qualifiers [...]

target_is_directory |= _check_dirW(src->wide, dst->wide);
result = Py_CreateSymbolicLinkW(dst->wide, src->wide,
target_is_directory);

..\Modules\posixmodule.c(7429): warning C4090: 'function': different 'const' 
qualifiers [...]

result = Py_CreateSymbolicLinkA(dst->narrow, src->narrow,
target_is_directory);

You can change _check_dirW to use LPCWSTR parameters, or const wchar_t * to be 
consistent with _check_dirA. In this context I prefer the Windows typedefs:

_check_dirW(LPCWSTR src, LPCWSTR dest)
_check_dirA(LPCSTR src, LPCSTR dest)

Change Py_CreateSymbolicLink[W|A] to use LPC[W]STR, which is how it's declared 
in Winbase.h:

static DWORD (CALLBACK *Py_CreateSymbolicLinkW)(LPCWSTR, LPCWSTR, DWORD) = 
NULL;
static DWORD (CALLBACK *Py_CreateSymbolicLinkA)(LPCSTR, LPCSTR, DWORD) = 
NULL;

--
nosy: +eryksun

___
Python tracker 

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



[issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows

2016-05-07 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +sbt

___
Python tracker 

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



[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-05-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Is there any guidance or recommendation on how to use the SHAKE variants?

--

___
Python tracker 

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



[issue26906] format(object.__reduce__) fails intermittently

2016-05-07 Thread Antti Haapala

Antti Haapala added the comment:

I am not an expert on PyType internals, so I am wondering why is the 
PyType_Ready'ing done implicitly at all?

--

___
Python tracker 

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



[issue26352] getpass incorrectly displays password prompt on stderr on fallback

2016-05-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue26934] android: test_faulthandler fails

2016-05-07 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

This is due to something mysterious in Android's bionic & kernel. For the 
following C program:

#include 
#include 
#include 

int main()
{
sigaction(SIGSEGV, NULL, NULL);
raise(SIGSEGV);
printf("Good evening!\n");
return 0;
}

Compiled with: 
/opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
 test_sigsegv.c --sysroot /opt/android-ndk/platforms/android-21/arch-arm -fPIE 
-Wl,-pie
(Replace /opt/android-ndk to the path of NDK)

On ASUS ZE500KL:
shell@ASUS_Z00E_2:/data/local/tmp $ ./a.out
Good evening!

On Linux: (Compiled with gcc test_sigsegv.c)
$ ./a.out 
[2]23434 segmentation fault (core dumped)  ./a.out

Seems the sigaction() call in Python occurs in Modules/signalmodule.c.

--
nosy: +Chi Hsuan Yen

___
Python tracker 

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



[issue17765] weakref.ref ignores a 'callback' keyword argument

2016-05-07 Thread Georg Brandl

Georg Brandl added the comment:

Serhiy, feel free to go ahead and commit, I don't have my keys with me ATM.

--

___
Python tracker 

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



[issue26352] getpass incorrectly displays password prompt on stderr on fallback

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

Why do you think using stderr is bad behaviour, or that a user would want the 
prompt and warning on different streams? As far as I can tell, the 
documentation already says that stderr is used by default, and there are other 
unpatched references to sys.stderr left.

See also Issue 1927, where Serhiy wants to change input() to always prompt to 
stderr rather than stdout.

--
nosy: +martin.panter
stage:  -> patch review

___
Python tracker 

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



[issue26736] Use HTTPS protocol in links

2016-05-07 Thread Georg Brandl

Georg Brandl added the comment:

Newer Sphinx versions already redefine docutils' RFC and PEP URLs to use https.

--

___
Python tracker 

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



[issue26897] Clarify Popen stdin, stdout, stderr

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

Yes, in all cases I understand it is just the file descriptor that matters. 
Perhaps any documentation update could also take Issue 24358 into account, 
which points out that compressed and buffered file object wrappers also cause 
inconsistencies in the data at the high-level file object and the OS-level file 
descriptor.

--
nosy: +martin.panter
stage:  -> needs patch
versions: +Python 2.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



[issue25747] test_idle failure in leaks searching mode

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

import_fresh_module() emits the deprecation warning twice.

>>> from test.support import import_fresh_module
>>> import_fresh_module('idlelib.idlever')
/home/serhiy/py/cpython-debug/Lib/test/support/__init__.py:166: 
DeprecationWarning: 
The separate Idle version was eliminated years ago;
idlelib.idlever is no longer used by Idle
and will be removed in 3.6 or later.  Use
from sys import version
IDLE_VERSION = version[:version.index(' ')]

  __import__(name)
/home/serhiy/py/cpython-debug/Lib/importlib/__init__.py:126: 
DeprecationWarning: 
The separate Idle version was eliminated years ago;
idlelib.idlever is no longer used by Idle
and will be removed in 3.6 or later.  Use
from sys import version
IDLE_VERSION = version[:version.index(' ')]

  return _bootstrap._gcd_import(name[level:], package, level)


--

___
Python tracker 

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



[issue19444] mmap.mmap() allocates a file descriptor that isn't CLOEXEC

2016-05-07 Thread Martin Panter

Martin Panter added the comment:

Closing because Victor has proposed a patch in Issue 26769.

--
nosy: +martin.panter
resolution:  -> duplicate
status: open -> closed
superseder:  -> Python 2.7: make private file descriptors non inheritable

___
Python tracker 

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



[issue26708] Constify C string pointers in the posix module

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could anyone please try to compile with the patch on Windows and report if 
there are complile errors?

--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue26736] Use HTTPS protocol in links

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The :rfc: and :pep: roles are defined in Sphinx. I don't know if they can be 
configured to use HTTPS.

--

___
Python tracker 

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



[issue26736] Use HTTPS protocol in links

2016-05-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 211a9f32dfb9 by Serhiy Storchaka in branch '3.5':
Issue #26736: Used HTTPS for external links in the documentation if possible.
https://hg.python.org/cpython/rev/211a9f32dfb9

New changeset 3ceb54a49387 by Serhiy Storchaka in branch 'default':
Issue #26736: Used HTTPS for external links in the documentation if possible.
https://hg.python.org/cpython/rev/3ceb54a49387

New changeset e3af25d70976 by Serhiy Storchaka in branch '2.7':
Issue #26736: Used HTTPS for external links in the documentation if possible.
https://hg.python.org/cpython/rev/e3af25d70976

--
nosy: +python-dev

___
Python tracker 

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



[issue26934] android: test_faulthandler fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The gdb backtrace of running interactively 'faulthandler._sigsegv()'. After the 
SIGSEGV and the last gdb 'continue', python is still alive with a '>>>' prompt 
and ready for the next user input:


(gdb) b faulthandler_sigsegv
Breakpoint 1 at 0xb752159f: file 
/home/xavier/src/packages/android/cpython/Modules/faulthandler.c, line 964.
(gdb) c
Continuing.

Breakpoint 1, faulthandler_sigsegv (self=self@entry=, 
args=args@entry=()) at 
/home/xavier/src/packages/android/cpython/Modules/faulthandler.c:964
964 {
(gdb) next
965 int release_gil = 0;
(gdb) 
966 if (!PyArg_ParseTuple(args, "|i:_sigsegv", _gil))
(gdb) 
969 if (release_gil) {
(gdb) 
974 faulthandler_raise_sigsegv();
(gdb) step
faulthandler_raise_sigsegv ()
at /home/xavier/src/packages/android/cpython/Modules/faulthandler.c:941
941 {
(gdb) next
942 faulthandler_suppress_crash_report();
(gdb) 
958 raise(SIGSEGV);
(gdb) 

Program received signal SIGSEGV, Segmentation fault.
0xb76ec126 in ?? ()
(gdb) c
Continuing.

--

___
Python tracker 

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



[issue26736] Use HTTPS protocol in links

2016-05-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee: docs@python -> serhiy.storchaka

___
Python tracker 

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



[issue26885] Add parsing support for more types in xmlrpc

2016-05-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated documentation.

Terry, could you please look at the documentation. Is it good English or needed 
a correction?

--
nosy: +terry.reedy
Added file: http://bugs.python.org/file42765/xmlrpc_extensions2.patch

___
Python tracker 

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



[issue26934] android: test_faulthandler fails

2016-05-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Reproducing the code that is executed on the first failure (test_disable) gives:

On linux:
$ python
Python 3.6.0a0 (default:47fa003aa9f1, Feb 24 2016, 13:09:02) 
[GCC 5.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import faulthandler
>>> faulthandler.enable()
>>> faulthandler.disable()
True
>>> faulthandler._sigsegv()
Segmentation fault (core dumped)


On the android emulator:
root@generic_x86:/data/local/tmp # python
Python 3.6.0a0 (default:811ccdee6f87+, May  7 2016, 09:02:21) 
[GCC 4.9 20140827 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import faulthandler
>>> faulthandler.enable()
>>> faulthandler.disable()
True
>>> faulthandler._sigsegv()
>>>

--

___
Python tracker 

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



[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 52924d962027 by Serhiy Storchaka in branch '3.5':
Issue #26889: Fixed hyperlinks formatting.
https://hg.python.org/cpython/rev/52924d962027

New changeset ea9d69a4d0fe by Serhiy Storchaka in branch 'default':
Issue #26889: Fixed hyperlinks formatting.
https://hg.python.org/cpython/rev/ea9d69a4d0fe

New changeset 29a927c524cb by Serhiy Storchaka in branch '2.7':
Issue #26889: Fixed hyperlinks formatting.
https://hg.python.org/cpython/rev/29a927c524cb

--

___
Python tracker 

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