[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Michael Felt

Michael Felt added the comment:

At first I thought it might be a 0x0001 rather than 0x0003 (as I have no idea 
what the additional info is AND that the lines starting with [0] are the Symbol 
0 (zero) you indicate the message.

Also thought it might have been the double listing of some symbols where both 
the 'm' and the 'a4' lines start with 0x (but see those for other .o 
files as well)

And I verified that the .o file (outside the archive) also has '[705]' entries.

Need more guidance. I get neither heads nor tails...

So, dump -t libpython2.7.a snips:

libpython2.7.a[getbuildinfo.o]:

***Symbol Table Information***
[Index] mValue   Scn   Aux  SclassTypeName
[Index] a0Fname
[Index] a1  Tagndx  Lnno  Size  LnoptrEndndx
[Index] a2  TagndxFsiz  LnoptrEndndx
[Index] a3  Tagndx  Lnno  Size  Dimensions
[Index] a4   CSlen PARMhsh SNhash SMtype SMclass Stab SNstab
[Index] a5  SECTlen#RELent#LINnums

[0] m   0x-2 30x67 0x0003 .file
[1] a0
../src/python-2.7.11/Modules/getbuildinfo.c
[2] a0Tue Mar  1 
18:47:41 2016 
[3] a0IBM XL C for 
AIX, Version 11.1.0.20
[4] m   0x 1 10x03 0x .text
[5] a5  0x0180 0x000b 0x
[6] m   0x0180 2 10x03 0x .data
[7] a5  0x00c4 0x000e 0x
[8] m   0x0244 3 10x03 0x .bss
[9] a5  0x0034 0x 0x
[10]m   0x 1 10x6b 0x **No Symbol**
[11]a4  0x0180   00 57000
[12]m   0x 1 10x02 0x0020 ._Py_hgversion
[13]a4  0x000a   00  2000
[14]m   0x0020 1 10x02 0x0020 
._Py_hgidentifier
[15]a4  0x000a   00  2000
[16]m   0x0040 1 10x02 0x0020 
._Py_svnversion
[17]a4  0x000a   00  2000
[18]m   0x0060 1 10x02 0x0020 
.Py_GetBuildInfo
[19]a4  0x000a   00  2000
[20]m   0x0180 2 10x6b 0x TOC
[21]a4  0x   00 17   1500
[22]m   0x0184 2 10x6b 0x **No Symbol**
[23]a4  0x0004   00 17300
[24]m   0x01c8 2 10x6b 0x **No Symbol**
[25]a4  0x0079   00 33100
[26]m   0x0244 3 10x6b 0x _$STATIC_BSS
[27]a4  0x0034   00 35500
[28]m   0x0194 2 10x6b 0x _$STATIC_BSS
[29]a4  0x0004   00 17300
[30]m   0x0198 2 10x02 0x _Py_hgversion
[31]a4  0x000c   00 17   1000
[32]m   0x0180 2 10x6b 0x _Py_hgversion
[33]a4  0x0004   00 17300
[34]m   0x01a4 2 10x02 0x 
_Py_hgidentifier
[35]a4  0x000c   00 17   1000
[36]m   0x0188 2 10x6b 0x 
_Py_hgidentifier
[37]a4  0x0004   00 17300
[38]m   0x01b0 2 10x02 0x _Py_svnversion
[39]a4  0x000c   00 17   1000
[40]m   0x018c 2 10x6b 0x _Py_svnversion
[41]a4  0x0004   00 17300
[42]m   0x01bc 2 10x02 0x 
Py_GetBuildInfo
[43]a4  0x000c   00 17   1000
[44]m   0x0190 2 10x6b 0x 
Py_GetBuildInfo
[45]a4  0x0004   00 17300
[46]m   0x 0 10x02 0x .PyOS_snprintf
[47]a4  0x   00  0000

libpython2.7.a[acceler.o]:

***Symbol Table Information***
[Index] mValue   Scn   Aux  SclassTypeName
[Index] a0Fname
[Index] a1  Tagndx  Lnno  Size  LnoptrEndndx
[Index] a2  TagndxFsiz  LnoptrEndndx
[Index] a3  Tagndx  Lnno  Size  Dimensions
[Index] a4   CSlen PARMhsh SNhash SMtype SMclass Stab SNstab
[Index] a5 

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Vojtěch Pachol

New submission from Vojtěch Pachol:

`copy2` checks if `os` nodule has `chmod` and then it uses it without thinking. 

On filesystems that doesn't support `chmod` it ends with

OSError: [Errno 95] Operation not supported: 

which is not acceptable since documentation says "copy2() never returns 
failure".

--
components: Library (Lib)
messages: 261100
nosy: Vojtěch Pachol
priority: normal
severity: normal
status: open
title: shutil.copy2 raises OSError if filesystem doesn't support chmod
versions: Python 2.7, 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



[issue26469] Bug in ConfigParser when setting new values in extended interpolation

2016-03-02 Thread Michael Jacob

New submission from Michael Jacob:

There seems to be a bug in configparser when setting new values in extended 
interpolation:

python --version
Python 3.5.1

from configparser import ConfigParser, ExtendedInterpolation
c=ConfigParser(interpolation=ExtendedInterpolation)
c.add_section('test')
c.set('test', 'key', 'value')
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/configparser.py", line 1190, in set
super().set(section, option, value)
  File "/usr/lib/python3.5/configparser.py", line 891, in set
value)
TypeError: before_set() missing 1 required positional argument: 'value'

It works ithout extended interpolation, though.

--
components: Library (Lib)
messages: 261101
nosy: Michael Jacob
priority: normal
severity: normal
status: open
title: Bug in ConfigParser when setting new values in extended interpolation
type: crash
versions: Python 3.5

___
Python tracker 

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



[issue26469] Bug in ConfigParser when setting new values in extended interpolation

2016-03-02 Thread Michael Jacob

Michael Jacob added the comment:

My bad.

ConfigParser expects an interpolation object, not a class.

Instead of c=ConfigParser(interpolation=ExtendedInterpolation)

you need to create it with:

c=ConfigParser(interpolation=ExtendedInterpolation())

Sorry about that.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Michael Felt

Michael Felt added the comment:

Patched to fp22: vacpp.11.1.0.22.aix53TL7-71.sept2015.ptf.tar.Z

after reinstalling system! to be sure no garbage left around.

Only updates are openSSL/SSH packages; no RPM's installed.

Same error message(s).

Tried compiling ceval.o with -O0 (capt. O, zero) - same messages

Tried linking with .o files only (no archive) - effectively, same message.
root@x064:[/data/prj/aixtools/python-2.7.11]xlc  -o python  Modules/python.o 
Python/*.o
ld: 0711-596 SEVERE ERROR: Object Python/ceval.o
An RLD for section 2 (.data) refers to symbol 0,
but the storage class of the symbol is not C_EXT or C_HIDEXT.
ld: 0711-596 SEVERE ERROR: Object Python/ceval.o
An RLD for section 2 (.data) refers to symbol 0,
but the storage class of the symbol is not C_EXT or C_HIDEXT.

Maybe xlc does not know how to code the differences

snip:
diff -u ./python-2.7.10/Python/ceval.c ./python-2.7.11/Python/ceval.c | head -50
michael@x071:[/data/prj/aixtools/src]ython-2.7.11/Python/ceval.c | head -50<
--- ./python-2.7.10/Python/ceval.c  2015-05-23 16:09:24 +
+++ ./python-2.7.11/Python/ceval.c  2015-12-05 19:47:19 +
@@ -615,7 +615,7 @@
to guarantee that _Py_CheckRecursiveCall() is regularly called.
Without USE_STACKCHECK, there is no need for this. */
 int
-_Py_CheckRecursiveCall(char *where)
+_Py_CheckRecursiveCall(const char *where)
 {
 PyThreadState *tstate = PyThreadState_GET();
 
@@ -688,6 +688,100 @@
 PyObject *
 PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
 {
+#ifdef DYNAMIC_EXECUTION_PROFILE
+  #undef USE_COMPUTED_GOTOS
+#endif
+#ifdef HAVE_COMPUTED_GOTOS
+#ifndef USE_COMPUTED_GOTOS
+#define USE_COMPUTED_GOTOS 1
+#endif
+#else
+#if defined(USE_COMPUTED_GOTOS) && USE_COMPUTED_GOTOS
+#error "Computed gotos are not supported on this compiler."
+#endif
+#undef USE_COMPUTED_GOTOS
+#define USE_COMPUTED_GOTOS 0
+#endif
+#if USE_COMPUTED_GOTOS
+/* Import the static jump table */
+#include "opcode_targets.h"
+
+  /* This macro is used when several opcodes defer to the same implementation
+   (e.g. SETUP_LOOP, SETUP_FINALLY) */
+#define TARGET_WITH_IMPL(op, impl) \
+TARGET_##op: \
+opcode = op; \
+oparg = NEXTARG(); \
+case op: \
+goto impl; \
+
+#define TARGET_WITH_IMPL_NOARG(op, impl) \
+TARGET_##op: \
+opcode = op; \
+case op: \
+goto impl; \
+
+#define TARGET_NOARG(op) \
+TARGET_##op: \

In "character" a big change from 2.7.8 to 2.7.10
michael@x071:[/data/prj/aixtools/python]diff -u ./old/Python-2.7.8/Python/ceval>
--- ./old/Python-2.7.8/Python/ceval.c   2014-06-30 02:05:46 +
+++ ./old/Python-2.7.10/Python/ceval.c  2015-05-23 16:09:24 +
@@ -66,9 +66,11 @@
even in 64-bit mode, we need to use "a" and "d" for the lower and upper
32-bit pieces of the result. */
 
-#define READ_TIMESTAMP(val) \
-__asm__ __volatile__("rdtsc" : \
- "=a" (((int*)&(val))[0]), "=d" (((int*)&(val))[1]));
+#define READ_TIMESTAMP(val) do {\
+unsigned int h, l;  \
+__asm__ __volatile__("rdtsc" : "=a" (l), "=d" (h)); \
+(val) = ((uint64)l) | (((uint64)h) << 32);  \
+} while(0)
 
 
 #else
@@ -355,12 +357,6 @@
 if (interpreter_lock) {
 int err = errno;
 PyThread_acquire_lock(interpreter_lock, 1);
-/* _Py_Finalizing is protected by the GIL */
-if (_Py_Finalizing && tstate != _Py_Finalizing) {
-PyThread_release_lock(interpreter_lock);
-PyThread_exit_thread();
-assert(0);  /* unreachable */
-}
 errno = err;
 }
 #endif
@@ -1025,12 +1021,6 @@
 
 PyThread_acquire_lock(interpreter_lock, 1);
 
-/* Check if we should make a quick exit. */
-if (_Py_Finalizing && _Py_Finalizing != tstate) {
-PyThread_release_lock(interpreter_lock);
-PyThread_exit_thread();
-}
-
 if (PyThreadState_Swap(tstate) != NULL)
 Py_FatalError("ceval: orphan tstate");
 
@@ -1957,9 +1947,13 @@
 if (err == 0) continue;
 break;
 }
+t = PyObject_Repr(w);
+if (t == NULL)
+break;
 PyErr_Format(PyExc_SystemError,
  "no locals found when storing %s",
- PyObject_REPR(w));
+ PyString_AS_STRING(t));
+Py_DECREF(t);
 break;
 
 case DELETE_NAME:
@@ -1971,9 +1965,13 @@
  w);
 break;
 }
+t = PyObject_Repr(w);
+if (t == NULL)
+break;
 PyErr_Format(PyExc_SystemError,
  "no locals when deleting %s",
- PyObjec

[issue22176] update internal libffi copy to 3.1, introducing AArch64 and POWER ELF ABIv2

2016-03-02 Thread Berker Peksag

Changes by Berker Peksag :


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



[issue25660] tabs don't work correctly in python repl

2016-03-02 Thread Berker Peksag

Changes by Berker Peksag :


--
status: open -> closed

___
Python tracker 

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



[issue13492] ./configure --with-system-ffi=LIBFFI-PATH

2016-03-02 Thread Berker Peksag

Changes by Berker Peksag :


--
resolution:  -> out of date
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



[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Does Python 2.7.10 build fine ? If so, then perhaps xlc doesn't
like the computed gotos in ceval.c.

You could try compiling with:

./configure ... --without-computed-gotos ...

to check.

--
nosy: +lemburg

___
Python tracker 

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



[issue17873] _ctypes/libffi missing bits for aarch64 support

2016-03-02 Thread Berker Peksag

Berker Peksag added the comment:

This has been fixed as part of updating libffi in issue 22176: 
https://github.com/python/cpython/blob/master/Modules/_ctypes/libffi/fficonfig.py.in#L20

Thanks for the report and for the patch, Andreas!

--
nosy: +berker.peksag
resolution:  -> out of date
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



[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Eric V. Smith

Eric V. Smith added the comment:

I agree that copy2 should not fail because chmod fails. Could you please 
provide the entire traceback message when it fails (on both 2.7 and 3.4 or 
3.5)? And what OS are you running on, and what filesystem?

It looks like the error happens because errno=95 (EOPNOTSUPP, probably) isn't 
in the list of errors that _copyxattr catches, while (ENOTSUP=134 on Linux) is.

I think the documentation is also incorrect. Of course copy2 can fail: what 
about out of disk space? I think the documentation is trying to say that copy2 
never fails because it can't preserve metadata. And the wording in the docs 
"copy2() never returns failure" is also odd, it should say "copy2() never 
raises an exception because it cannot preserve file metadata".

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python, eric.smith

___
Python tracker 

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



[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-03-02 Thread Tamás Bence Gedai

Tamás Bence Gedai added the comment:

Is there anything else that I can do for this issue?

--

___
Python tracker 

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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-02 Thread Christian Heimes

New submission from Christian Heimes:

OpenSSL 1.1.0 is changing a lot of internals. Most structs are opaque, RC4 and 
SSLv2 are gone. I've a rough patch in my private repos. I'll submit the patch 
as soon as the code is compatible with OpenSSL 1.0.2, too.

https://github.com/python/cpython/compare/master...tiran:feature/openssl110

--
assignee: christian.heimes
messages: 261108
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: Make OpenSSL module compatible with OpenSSL 1.1.0
type: security
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



[issue26465] Upgrade OpenSSL shipped with python installers

2016-03-02 Thread Alex Gaynor

Changes by Alex Gaynor :


--
nosy: +christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou

___
Python tracker 

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



[issue26471] load_verify_locations(cadata) should load AUX ASN.1 to supported trusted certs

2016-03-02 Thread Christian Heimes

New submission from Christian Heimes:

https://docs.python.org/2/library/ssl.html#ssl.SSLContext.load_verify_locations 
can load certs from a file, a directory or from memory. OpenSSL's loaders for 
cafile and capath load auxiliary data of trusted certs. The custom loader for 
cadata ignores AUX data because it uses PEM_read_bio_X509() instead of 
PEM_read_bio_X509_AUX().

With the recent fix of OpenSSL 1.0.2 
https://github.com/openssl/openssl/commit/a3baa171053547488475709c7197592c66e427cf
 trusted certificates now work again. I propose to change cadata to load trust 
settings, too.

--
assignee: christian.heimes
components: Extension Modules
messages: 261109
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: load_verify_locations(cadata) should load AUX ASN.1 to supported trusted 
certs
type: security
versions: Python 2.7, 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



[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Vojtěch Pachol

Vojtěch Pachol added the comment:

Actually it is a remote fs mounted via samba. OS is Linux.

Tracebacks with Python versions I have:

$ python2.7
Python 2.7.11 (default, Jan 11 2016, 21:04:40) 
[GCC 5.3.1 20160101] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copy2("src", "dst")
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 100, in copystat
os.chmod(dst, mode)
OSError: [Errno 95] Operation not supported: 'dst'
>>> 
$ python3.4
Python 3.4.4 (default, Jan  5 2016, 15:35:18) 
[GCC 5.3.1 20160101] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copy2("src", "dst")
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.4/shutil.py", line 246, in copy2
copystat(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.4/shutil.py", line 191, in copystat
lookup("chmod")(dst, mode, follow_symlinks=follow)
OSError: [Errno 95] Operation not supported: 'dst'
>>> 
$ python3.5
Python 3.5.1+ (default, Jan 13 2016, 15:09:18) 
[GCC 5.3.1 20160101] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copy2("src", "dst")
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/shutil.py", line 252, in copy2
copystat(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.5/shutil.py", line 197, in copystat
lookup("chmod")(dst, mode, follow_symlinks=follow)
OSError: [Errno 95] Operation not supported: 'dst'
>>>

--

___
Python tracker 

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



[issue26465] Upgrade OpenSSL shipped with python installers

2016-03-02 Thread Christian Heimes

Christian Heimes added the comment:

New security releases of Python are scheduled for the near future, most likelye 
mid to end of March.

--

___
Python tracker 

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



[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread Barun Parruck

Barun Parruck added the comment:

So...firstly hi, and sorry for disappearing like that!

You want tests for the dis.findlabels library? What sort of tests are you 
looking for? Similiarly sized bytecode streams like the ones we worked with, or 
did you have something else in mind?

B

--

___
Python tracker 

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



[issue26472] Infinite loop

2016-03-02 Thread Tibichte

New submission from Tibichte:

The code below runs indefinitely:

with open(False) as f:
for line in f:
print(line)

--
components: IO
messages: 261113
nosy: DarkMagus
priority: normal
severity: normal
status: open
title: Infinite loop
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue26472] Infinite loop

2016-03-02 Thread Christian Heimes

Christian Heimes added the comment:

In open(False) Fale is interpreted as int 0. The function call opens file 
descriptor 0 (stdin) and waits for incoming data.

Try this code, enter some text and press enter to see what is going on:

with open(False) as f:
for line in f:
print('stdin: ', line)

--
nosy: +christian.heimes
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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-02 Thread Zachary Ware

Changes by Zachary Ware :


--
nosy: +zach.ware

___
Python tracker 

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



[issue25647] Return of asyncio.coroutine from asyncio.coroutine doesn't work with enabled asyncio debug

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fd21f162e377 by Yury Selivanov in branch '3.5':
asyncio: Fix @coroutine to recognize CoroWrapper (issue #25647)
https://hg.python.org/cpython/rev/fd21f162e377

New changeset e3aee2f16937 by Yury Selivanov in branch 'default':
Merge 3.5 (issue #25647)
https://hg.python.org/cpython/rev/e3aee2f16937

--
nosy: +python-dev

___
Python tracker 

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



[issue25647] Return of asyncio.coroutine from asyncio.coroutine doesn't work with enabled asyncio debug

2016-03-02 Thread Yury Selivanov

Yury Selivanov added the comment:

Vladimir, thanks for the patch!

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue26221] awaiting asyncio.Future swallows StopIteration

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ef5265bc07bb by Yury Selivanov in branch '3.5':
asyncio: Prevent StopIteration from being thrown into a Future
https://hg.python.org/cpython/rev/ef5265bc07bb

New changeset 5e2f7e51af51 by Yury Selivanov in branch 'default':
Merge 3.5 (issue #26221)
https://hg.python.org/cpython/rev/5e2f7e51af51

--
nosy: +python-dev

___
Python tracker 

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



[issue26221] awaiting asyncio.Future swallows StopIteration

2016-03-02 Thread Yury Selivanov

Yury Selivanov added the comment:

Merged.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue26347] BoundArguments.apply_defaults doesn't handle empty arguments

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 94879997ea5f by Yury Selivanov in branch '3.5':
inspect: Fix BoundArguments.apply_defaults to handle empty arguments
https://hg.python.org/cpython/rev/94879997ea5f

New changeset 779a0d51f7e2 by Yury Selivanov in branch 'default':
Merge 3.5 (issue #26347)
https://hg.python.org/cpython/rev/779a0d51f7e2

--
nosy: +python-dev

___
Python tracker 

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



[issue26347] BoundArguments.apply_defaults doesn't handle empty arguments

2016-03-02 Thread Yury Selivanov

Yury Selivanov added the comment:

Merged. Thank you Frederick for your contribution!

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



[issue26338] remove duplicate bind addresses in create_server

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bbc8cb86f05e by Yury Selivanov in branch '3.5':
asyncio: Remove duplicate bind addresses in create_server.
https://hg.python.org/cpython/rev/bbc8cb86f05e

New changeset bdf2807aa8c4 by Yury Selivanov in branch 'default':
Merge 3.5 (issue #26338)
https://hg.python.org/cpython/rev/bdf2807aa8c4

--
nosy: +python-dev

___
Python tracker 

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



[issue26338] remove duplicate bind addresses in create_server

2016-03-02 Thread Yury Selivanov

Yury Selivanov added the comment:

Committed. Thanks, Sebastien!

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior
versions: +Python 3.6

___
Python tracker 

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



[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-02 Thread Michael Herold

Michael Herold added the comment:

I have prepared a working patch to sketch how this could be implemented. A 
small example (example.py) shows how this feature can be used to implement a 
fallback to environment variables.

This patch allows Currying of positional arguments (i.e. you can give position 
2 via fallback and provide position 1 via the command line). However, I think 
this might be too confusing and implicit.

Please let me know whether I should prepare a proper patch.

--
keywords: +patch
Added file: http://bugs.python.org/file42061/argparse-wip-1.patch

___
Python tracker 

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



[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-02 Thread Michael Herold

Changes by Michael Herold :


Added file: http://bugs.python.org/file42062/example.py

___
Python tracker 

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



[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Michael Felt

Michael Felt added the comment:

wonderful suggestion - it gets the build past that hurdle.

My bad that I had not looked more carefully at configure --help output.

But that brings back another 'issue' I had also seen when verifying 2.7.10. I 
shall look in the bug-list for a related issue (I seem to recall at least one) 
- and request that this one be closed.

Thanks!

--

___
Python tracker 

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



[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e16084e07761 by Yury Selivanov in branch '3.5':
coroutines: Error when awaiting on coroutine that's being awaited
https://hg.python.org/cpython/rev/e16084e07761

New changeset 2218ce5c592f by Yury Selivanov in branch 'default':
Merge 3.5 (issue #25888)
https://hg.python.org/cpython/rev/2218ce5c592f

--
nosy: +python-dev

___
Python tracker 

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



[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Yury Selivanov

Yury Selivanov added the comment:

Committed. Thanks for the review, Martin!

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



[issue25825] AIX shared library extension modules installation broken

2016-03-02 Thread Michael Felt

Michael Felt added the comment:

FYI: when build and src are the same directory, there is no error message. 
However, when src and build are in seperate directories (e.g.,

build = '.',
src = '../src/python-2.7.11'

the following message occurs MANY times:

unable to execute '../src/python-2.7.11/Modules/ld_so_aix': No such file or 
directory

during configure the file
./Modules/ld_so_aix is 'created' in the build area.

root@x064:[/data/prj/aixtools/python-2.7.11]ls -l Modules/ld*aix*
-rwxr-xr-x   1 root system 6205 Mar 02 16:24 Modules/ld_so_aix

Just guessing, but a line such as:
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) 
-bI:\$(srcdir)/Modules/python.exp"

using $(srcdir) is not correct.

Further, a find in $(srcdir) for ld_so_aix returns:
root@x064:[/data/prj/aixtools/python-2.7.11]ls -dl ../src/py*
drwxr-xr-x  17 199  1954   4096 May 23 2015  ../src/python-2.7.10
drwxr-xr-x  17 199  1954   4096 Dec 05 19:47 ../src/python-2.7.11

So, $(srcdir) seems to be wrong, by definition.

For now, I am copying $(srcdir) to $(builddir) to work-around this.

--
nosy: +Michael.Felt

___
Python tracker 

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



[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ba71aecec943 by Berker Peksag in branch 'default':
Issue #26335: Make mmap.write() return the number of bytes written like
https://hg.python.org/cpython/rev/ba71aecec943

--
nosy: +python-dev

___
Python tracker 

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



[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, Jakub!

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



[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7444bdd400cd by Berker Peksag in branch '3.4':
Issue #26246: Set initial value of the hidden attr when creating copy button.
https://hg.python.org/cpython/rev/7444bdd400cd

New changeset 256339c28d42 by Berker Peksag in branch '3.5':
Issue #26246: Set initial value of the hidden attr when creating copy button.
https://hg.python.org/cpython/rev/256339c28d42

New changeset 3e897eef0fac by Berker Peksag in branch 'default':
Issue #26246: Set initial value of the hidden attr when creating copy button.
https://hg.python.org/cpython/rev/3e897eef0fac

--

___
Python tracker 

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



[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 305ae007899b by Berker Peksag in branch '2.7':
Issue #26246: Set initial value of the hidden attr when creating copy button.
https://hg.python.org/cpython/rev/305ae007899b

--

___
Python tracker 

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



[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Berker Peksag

Berker Peksag added the comment:

Good catch, thanks!

--
nosy: +berker.peksag

___
Python tracker 

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



[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread Alessandro Cucci

Alessandro Cucci added the comment:

Meanwhile I made corrections after @belopolsky latest review

--
Added file: http://bugs.python.org/file42063/issue19475_v17.patch

___
Python tracker 

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



[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread SilentGhost

Changes by SilentGhost :


--
nosy:  -SilentGhost

___
Python tracker 

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



[issue26473] Python 3.5 not run

2016-03-02 Thread Slava

New submission from Slava:

Python 3.5 not run on Windows Server 2003 (PE mode). Python 3.5 installer not 
work too.

--
components: Windows
files: Clipboard01.jpg
messages: 261134
nosy: newillusion, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python 3.5 not run
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file42064/Clipboard01.jpg

___
Python tracker 

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



[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Alessandro, thank you very much for your work and perseverance.  I will do my 
best to commit this next weekend.

--
stage: patch review -> commit review

___
Python tracker 

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



[issue26473] Python 3.5 not run

2016-03-02 Thread SilentGhost

SilentGhost added the comment:

As the installer says and as mentioned in documentation a minimum supported 
versions is Windows Vista.

--
nosy: +SilentGhost
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



[issue26473] Python 3.5 not run

2016-03-02 Thread Steve Dower

Steve Dower added the comment:

It's unfortunately not so clear from the "minimum Vista" statement that WS2K3 
is excluded, but if you follow the official statement ("supported by 
Microsoft") then you'll see that WS2K3 is no longer covered.

Vista and Windows Server 2008 are the minimum supported versions for 3.5.

--

___
Python tracker 

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



[issue25612] nested try..excepts don't work correctly for generators

2016-03-02 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
nosy: +asvetlov

___
Python tracker 

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



[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue26460] datetime.strptime without a year fails on Feb 29

2016-03-02 Thread Andrej Antonov

Changes by Andrej Antonov :


--
nosy: +polymorphm

___
Python tracker 

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



[issue26474] Memory leak at malloc_closure.c

2016-03-02 Thread John Snow

New submission from John Snow:

malloc_closere.c holds a static list of items: free_list.
The items are being allocated in the more_core method using VirtualAlloc / 
mmap. However they never get released.

Here is the allocation code:

#ifdef MS_WIN32
item = (ITEM *)VirtualAlloc(NULL,
   count * sizeof(ITEM),
   MEM_COMMIT,
   PAGE_EXECUTE_READWRITE);
if (item == NULL)
return;
#else
item = (ITEM *)mmap(NULL,
count * sizeof(ITEM),
PROT_READ | PROT_WRITE | PROT_EXEC,
MAP_PRIVATE | MAP_ANONYMOUS,
-1,
0);
if (item == (void *)MAP_FAILED)
return;
#endif

--
components: ctypes
messages: 261138
nosy: John_Snow
priority: normal
severity: normal
status: open
title: Memory leak at malloc_closure.c
type: resource usage
versions: Python 2.7

___
Python tracker 

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



[issue26474] ctypes: Memory leak at malloc_closure.c

2016-03-02 Thread STINNER Victor

STINNER Victor added the comment:

> malloc_closere.c

We are talking about Modules/_ctypes/malloc_closure.c.

> The items are being allocated in the more_core method using VirtualAlloc / 
> mmap. However they never get released.

The allocation is only done once. I'm not sure that it can be called a leak. 
Calling the function 1,000 times will not allocate more memory.

--
nosy: +haypo
title: Memory leak at malloc_closure.c -> ctypes: Memory leak at 
malloc_closure.c
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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-02 Thread Michael Felt

Michael Felt added the comment:

Since you are looking, maybe look at whether it is also libreSSL compatible?

--
nosy: +Michael.Felt

___
Python tracker 

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



[issue23041] csv needs more quoting rules

2016-03-02 Thread Skip Montanaro

Skip Montanaro added the comment:

Thanks for the update berker.peksag. I'm still not convinced that the csv 
module should be modified just so one user (sorry samwyse) can match the input 
format of someone's Java program. It seems a bit like trying to make the csv 
module type-sensitive. What happens when someone finds a csv file containing 
timestamps in a format other than the datetime.datetime object will produce by 
default? Why is None special as an object where bool(obj) is False?

I think the better course here is to either:

* subclass csv.DictWriter, use dictionaries as your element type, and have its 
writerow method do the application-specific work.

* define a writerow() function which does something similar (essentially 
wrapping csv.writerow()).

If someone else thinks this is something which belongs in Python's csv module, 
feel free to reopen and assign it to yourself.

--
resolution:  -> rejected

___
Python tracker 

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



[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread Eric Fahlgren

Eric Fahlgren added the comment:

Barun, take a look at the latest version of the testfindlabels.py, see what you 
think.  If it works for you, maybe move the test function into 
Lib/test/test_dis.py as part of the standard dis module tests.  Still need to 
look at the code that's being tested and find out what cases could cause 
problems and then augment the test to make sure it covers those.

--
Added file: http://bugs.python.org/file42065/dis_with_code_scanner.diff

___
Python tracker 

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



[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Jakub Stasiak

Jakub Stasiak added the comment:

Glad I could help, thanks for merging!

--

___
Python tracker 

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



[issue25144] 3.5 Win install fails with "TARGETDIR"

2016-03-02 Thread Claude Chouinard

Claude Chouinard added the comment:

To solve the problem with the variable TARGETDIR not being initialized, I 
called the installation program from the command shell and added the target dir 
option.

c:\Users\\Downloads>python-3.5.1-amd64.exe TargetDir=c:\Python35

I also us the custom installation option (using the Install Now might not 
work). You should see that the target dir is properly setup to what you have 
specified.

Now it installed without a problem.

--
nosy: +Claude

___
Python tracker 

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



[issue15795] Zipfile.extractall does not preserve file permissions

2016-03-02 Thread Mark Mikofski

Mark Mikofski added the comment:

same problem in 2.7.5 on Oracle Linux 7.2

--
nosy: +bwanamarko

___
Python tracker 

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



[issue23041] csv needs more quoting rules

2016-03-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The csv module is already type-sensitive (with QUOTE_NONNUMERIC). I agree, that 
we shouldn't modify the csv module just for one user and one program.

If a standard CVS library in Java (or other popular laguages) differentiates 
between empty string and null value when read from CSV, it would be a serious 
argument to support this in Python. Quick search don't find this.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue23041] csv needs more quoting rules

2016-03-02 Thread Berker Peksag

Berker Peksag added the comment:

I was thinking adding a more flexible API like:

...
spamwriter = csv.writer(csvfile, quoting_callable=lambda field: field is 
not None)
...

But that would require too much change in the csv module (or at least its 
implementation wouldn't be trivial).

I agree that subclassing DictWriter is a much better way to achieve this.

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