[issue26858] setting SO_REUSEPORT fails on android

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Running the "Search" button on the tracker with "Components" set as 
"Cross-Build" lists 42 issues (20 in the last year).

I guess using this existing category is fine if the titles' issues are prefixed 
with "android:".

--

___
Python tracker 

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



[issue26858] android: setting SO_REUSEPORT fails

2016-05-03 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
title: setting SO_REUSEPORT fails on android -> android: setting SO_REUSEPORT 
fails

___
Python tracker 

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



[issue26856] android does not have pwd.getpwall()

2016-05-03 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
components: +Cross-Build
nosy: +Alex.Willmer

___
Python tracker 

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



[issue26855] android: add platform.android_ver()

2016-05-03 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
title: add platform.android_ver() for android -> android: add 
platform.android_ver()

___
Python tracker 

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



[issue26852] android: add a COMPILEALL_FLAGS Makefile variable

2016-05-03 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
title: add a COMPILEALL_FLAGS Makefile variable -> android: add a 
COMPILEALL_FLAGS Makefile variable

___
Python tracker 

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



[issue26862] android: SYS_getdents64 does not need to be defined on android API 21

2016-05-03 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
title: SYS_getdents64 does not need to be defined on android API 21 -> android: 
SYS_getdents64 does not need to be defined on android API 21

___
Python tracker 

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



[issue26884] android: cross-compilation of extension module links to the wrong python library

2016-05-03 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
title: cross-compilation of extension module links to the wrong python library 
-> android: cross-compilation of extension module links to the wrong python 
library

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 03a4c21ca991 by Berker Peksag in branch 'default':
Issue #26914: Fix formatting of lists in PEP 420
https://hg.python.org/peps/rev/03a4c21ca991

--
nosy: +python-dev

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Berker Peksag

Berker Peksag added the comment:

Thanks, I pushed pep-0420.patch.

--
keywords: +easy
nosy: +berker.peksag
stage:  -> needs patch

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d420d6fe349f by Georg Brandl in branch 'default':
Fix lists-in-blockquotes in 3xxx PEPs. Ref: #26914
https://hg.python.org/peps/rev/d420d6fe349f

--

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d34c698f63a3 by Georg Brandl in branch 'default':
Fix lists-in-blockquotes in 0xxx PEPs. Ref: #26914
https://hg.python.org/peps/rev/d34c698f63a3

New changeset e7200e32b220 by Georg Brandl in branch 'default':
Fixup some more lists-in-blockquotes. Fixes #26914.
https://hg.python.org/peps/rev/e7200e32b220

--

___
Python tracker 

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



[issue26916] Word duplications in PEPs

2016-05-03 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Proposed patch fixes typos in PEPs that cause words duplications.

--
assignee: docs@python
components: Documentation
files: pep_duplicates.patch
keywords: patch
messages: 264695
nosy: docs@python, martin.panter, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Word duplications in PEPs
Added file: http://bugs.python.org/file42689/pep_duplicates.patch

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Georg Brandl

Changes by Georg Brandl :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: needs patch -> resolved

___
Python tracker 

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



[issue26916] Word duplications in PEPs

2016-05-03 Thread Georg Brandl

Georg Brandl added the comment:

LGTM.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue26917] Inconsistency in unicodedata.normalize()?

2016-05-03 Thread Armin Rigo

New submission from Armin Rigo:

There is an apparent inconsistency in unicodedata.normalize("NFC"), introduced 
with the switch from the Unicode DB 5.1.0 to 5.2.0 (in Python 2.7).  First, 
please note that my knowledge of unicode is limited, so I may be wrong and the 
following behavior might be perfectly correct.

>>> from unicodedata import normalize
>>> print(normalize("NFC", "---\uafb8\u11a7---").encode('utf-8'))
b'---\xea\xbe\xb8\xe1\x86\xa7---'# i.e., the same as the input

>>> print(normalize("NFC", "---\uafb8\u11a7---\U0002f8a1").encode('utf-8'))
b'---\xea\xbe\xb8---\xe3\xa4\xba'

Note how in the second example the initial two-character part is replaced with 
a single character (actually the first of them).  This does not occur in the 
first example.  In Python 2.6, both inputs would be normalized to the 
single-character output.

The new behavior introduced in Python 2.7 is to first do a quick-check on the 
string, and if this `is_normalized()` function returns 1, we know that the 
string should already be normalized and we return it unmodified.  However, the 
example "\uafb8\u11a7" shows a contradictory behavior: it causes both 
is_normalized() to return 1, but actual normalization to change it.  We can see 
in the second example above that if, for an unrelated reason, we force 
is_normalized() to return 0 (by adding some non-normalized character elsewhere 
in the string), then the "\uafb8\u11a7" is changed.

This is a bit unexpected, but I don't know if it is officially correct behavior 
or if the problem is a bug in `is_normalized()`.

--
components: Unicode
messages: 264697
nosy: arigo, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: Inconsistency in unicodedata.normalize()?
type: behavior
versions: Python 2.7, Python 3.6

___
Python tracker 

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



[issue26917] Inconsistency in unicodedata.normalize()?

2016-05-03 Thread Armin Rigo

Armin Rigo added the comment:

Note: the examples can also be written in this clearer way on Python 3:

>>> from unicodedata import normalize
>>> print(ascii(normalize("NFC", "---\uafb8\u11a7---")))
'---\uafb8\u11a7---'

>>> print(ascii(normalize("NFC", "---\uafb8\u11a7---\U0002f8a1")))
'---\uafb8---\u393a'

--

___
Python tracker 

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



[issue26852] android: add a COMPILEALL_FLAGS Makefile variable

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The python '-E' option was needed on 3.4 when this patch was first implemented 
and is not needed anymore at the current tip (changeset 2ef61a4747eb, Apr 27 
2016).

New patch.

--
Added file: http://bugs.python.org/file42690/compileall-flags_2.patch

___
Python tracker 

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



[issue26916] Word duplications in PEPs

2016-05-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d0b969132758 by Serhiy Storchaka in branch 'default':
Issue #26916: Fixed words duplications.
https://hg.python.org/peps/rev/d0b969132758

--
nosy: +python-dev

___
Python tracker 

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



[issue26904] Difflib quick_ratio() could use Counter()

2016-05-03 Thread Michael Cuthbert

Michael Cuthbert added the comment:

@wolma -- you're right, that the inplace __iand__ version of Counter is 
substantially faster -- it is still slower than the current code (since it is 
still basically a superset of it).  However, testing shows that it is close 
enough to the current code as to potentially be worth using it, in order to 
avoid the same issue that arose here (a small speed tweak in this code prevents 
it from taking advantage of larger improvements later).

If you think that is worth changing, I can make a new patch that incorporates 
it.  I don't have formal benchmarks on it, but quick tests show a 10% 
regression from the current speedups to using &= instead of the custom 
summation method.

--

___
Python tracker 

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



[issue26918] android: test_pipes fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_pipes fails on an android emulator running an x86 system image at API 
level 21.


root@generic_x86:/data/local/tmp # python -m test -v test_pipes
== CPython 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 10:42:45) [GCC 4.9 
20140827 (prerelease)]
==   Linux-3.4.67+-i686-with-libc little-endian
==   hash algorithm: fnv 32bit
==   /data/local/tmp/test_python_1927
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_randomiza
tion=1, isolated=0)
Run tests sequentially
0:00:00 [1/1] test_pipes
testBadAppendOptions (test.test_pipes.SimplePipeTests) ... ok
testBadOpenMode (test.test_pipes.SimplePipeTests) ... ok
testBadPrependOptions (test.test_pipes.SimplePipeTests) ... ok
testClone (test.test_pipes.SimplePipeTests) ... ok
testEmptyPipeline1 (test.test_pipes.SimplePipeTests) ... ok
testEmptyPipeline2 (test.test_pipes.SimplePipeTests) ... ok
testEmptyPipeline3 (test.test_pipes.SimplePipeTests) ... ok
testReadOpenSink (test.test_pipes.SimplePipeTests) ... ok
testRepr (test.test_pipes.SimplePipeTests) ... ok
testSetDebug (test.test_pipes.SimplePipeTests) ... ok
testSimplePipe1 (test.test_pipes.SimplePipeTests) ... /system/bin/sh: tr: not 
found
FAIL
testSimplePipe2 (test.test_pipes.SimplePipeTests) ... sh: tr: not found
FAIL
testSimplePipe3 (test.test_pipes.SimplePipeTests) ... /system/bin/sh: tr: not 
found
FAIL
testWriteOpenSource (test.test_pipes.SimplePipeTests) ... ok

==
FAIL: testSimplePipe1 (test.test_pipes.SimplePipeTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_pipes.py", line 27, 
in testSimplePipe1
self.assertEqual(f.read(), 'HELLO WORLD #1')
AssertionError: '' != 'HELLO WORLD #1'
+ HELLO WORLD #1

==
FAIL: testSimplePipe2 (test.test_pipes.SimplePipeTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_pipes.py", line 36, 
in testSimplePipe2
self.assertEqual(f.read(), 'HELLO WORLD #2')
AssertionError: '' != 'HELLO WORLD #2'
+ HELLO WORLD #2

==
FAIL: testSimplePipe3 (test.test_pipes.SimplePipeTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_pipes.py", line 45, 
in testSimplePipe3
self.assertEqual(f.read(), 'HELLO WORLD #2')
AssertionError: '' != 'HELLO WORLD #2'
+ HELLO WORLD #2

--
Ran 14 tests in 0.039s

FAILED (failures=3)
test test_pipes failed
1 test failed:
test_pipes
Total duration: 0:00:01

--
components: Cross-Build, Library (Lib)
messages: 264702
nosy: Alex.Willmer, xdegaye
priority: normal
severity: normal
status: open
title: android: test_pipes fails
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



[issue26919] android: test_cmd_line fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_cmd_line fails on an android emulator running an x86 system image at API 
level 21.


==
FAIL: test_non_ascii (test.test_cmd_line.CmdLineTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_cmd_line.py", line 
141, in test_non_ascii
assert_python_ok('-c', command)
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/script_helper.py", line 
135, in assert_python_ok
return _assert_python(True, *args, **env_vars)
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/script_helper.py", line 
121, in _assert_python
err))
AssertionError: Process return code is 1
command line: ['/data/local/tmp/python/bin/python', '-X', 'faulthandler', '-I', 
'-c', "assert(ord('\xe6') == 230)"]

stdout:
---

---

stderr:
---
Unable to decode the command from the command line:
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 12-13: 
surrogates not allowed
---

--
Ran 33 tests in 1.943s

FAILED (failures=1, skipped=1)
test test_cmd_line failed
1 test failed:
test_cmd_line
Total duration: 0:00:03

--
components: Cross-Build, Library (Lib)
messages: 264703
nosy: Alex.Willmer, xdegaye
priority: normal
severity: normal
status: open
title: android: test_cmd_line fails
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



[issue26917] Inconsistency in unicodedata.normalize()?

2016-05-03 Thread STINNER Victor

STINNER Victor added the comment:

Extract of unicodedata_UCD_normalize_impl():

if (strcmp(form, "NFC") == 0) {
if (is_normalized(self, input, 1, 0)) {
Py_INCREF(input);
return input;
}
return nfc_nfkc(self, input, 0);
}

is_normalized() is true for "\uafb8\u11a7" but false for "\U0002f8a1" (and also 
false for "\uafb8\u11a7\U0002f8a1").

unicodedata.normalize("NFC", "\uafb8\u11a7") returns the string unchanged 
because is_normalized() is true.

unicodedata.normalize("NFD", "\uafb8\u11a7") returns "\u1101\u116e\u11a7": 
U+afb8 is decomposed to {U+1101, U+116e}.

unicodedata.normalize("NFC", unicodedata.normalize("NFD", "\uafb8\u11a7")) 
returns "\uafb8", it's the result of the Hangul Decomposition. {U+1101, U+116e, 
U+11a7} is composed to {U+afb8}.

It may be an issue in the "quickcheck" property of the Python Unicode database. 
Format of this field:

/* The two quickcheck bits at this shift mean 0=Yes, 1=Maybe, 2=No,
   as described in http://unicode.org/reports/tr15/#Annex8. */
quickcheck_mask = 3 << ((nfc ? 4 : 0) + (k ? 2 : 0));

--

___
Python tracker 

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



[issue26920] android: test_sys fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_sys fails on an android emulator running an x86 system image at API level 
21.

...
test_implementation (test.test_sys.SysModuleTest) ... ok
test_intern (test.test_sys.SysModuleTest) ... ok
test_ioencoding (test.test_sys.SysModuleTest) ... ok
test_ioencoding_nonascii (test.test_sys.SysModuleTest) ... Traceback (most 
recent call last):
  File "", line 1, in 
UnicodeEncodeError: 'ascii' codec can't encode character '\xe6' in position 0: 
ordinal not in range(
128)
FAIL
test_is_finalizing (test.test_sys.SysModuleTest) ... ok
test_lost_displayhook (test.test_sys.SysModuleTest) ... ok
...
==
FAIL: test_c_locale_surrogateescape (test.test_sys.SysModuleTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_sys.py", line 709, 
in test_c_locale_surr
ogateescape
'stdin: surrogateescape\n'
AssertionError: 'stdin: strict\nstdout: strict\nstderr: backslashreplace\n' != 
'stdin: surrogateesca
pe\nstdout: surrogateescape\nstderr: backslashreplace\n'
- stdin: strict
- stdout: strict
+ stdin: surrogateescape
+ stdout: surrogateescape
  stderr: backslashreplace


==
FAIL: test_ioencoding_nonascii (test.test_sys.SysModuleTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_sys.py", line 638, 
in test_ioencoding_no
nascii
self.assertEqual(out, os.fsencode(test.support.FS_NONASCII))
AssertionError: b'' != b'\xc3\xa6'

--
Ran 43 tests in 0.913s

FAILED (failures=2, skipped=2)
test test_sys failed
1 test failed:
test_sys
Total duration: 0:00:01

--
components: Cross-Build, Extension Modules
messages: 264705
nosy: Alex.Willmer, lemburg, loewis, xdegaye
priority: normal
severity: normal
status: open
title: android: test_sys fails
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



[issue26917] Inconsistency in unicodedata.normalize()?

2016-05-03 Thread STINNER Victor

STINNER Victor added the comment:

I tested http://minaret.info/test/normalize.msp

(1)

꾸ᆧ (afb8 11a7) --NFC or NFKC--> 꾸ᆧ (afb8, 11a7) === same than python
꾸ᆧ (afb8 11a7) --NFD or NFKD--> 꾸ᆧ (1101 116e, 11a7) === same than python

(2)

꾸ᆧ (1101 116e 11a7) --NFC or NFKC--> 꾸 (afb8) === same than python
꾸ᆧ (1101 116e 11a7) --NFC or NFKC--> 꾸ᆧ (1101 116e, 11a7) === same than python

(3)

꾸ᆧ㤺 (afb8 11a7 2f8a1) --NFC or NFKC--> 꾸ᆧ㤺 (afb8, 11a7, 393a) == DIFFERENT than 
python, python eats the U+11a7 character
꾸ᆧ㤺 (afb8 11a7 2f8a1) --NFD or NFKD--> 꾸ᆧ㤺 (1101 116e, 11a7, 393a) === same 
than python

--

___
Python tracker 

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



[issue26917] unicodedata.normalize(): bug in Hangul Composition

2016-05-03 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Inconsistency in unicodedata.normalize()? -> unicodedata.normalize(): 
bug in Hangul Composition

___
Python tracker 

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



[issue26917] unicodedata.normalize(): bug in Hangul Composition

2016-05-03 Thread STINNER Victor

STINNER Victor added the comment:

Extract of nfc_nfkc():

  /* Hangul Composition. We don't need to check for 
 pairs, since we always have decomposed data. */
  code = PyUnicode_READ(kind, data, i);
  if (LBase <= code && code < (LBase+LCount) &&
  i + 1 < len &&
  VBase <= PyUnicode_READ(kind, data, i+1) &&
  PyUnicode_READ(kind, data, i+1) <= (VBase+VCount)) {
  int LIndex, VIndex;
  LIndex = code - LBase;
  VIndex = PyUnicode_READ(kind, data, i+1) - VBase;
  code = SBase + (LIndex*VCount+VIndex)*TCount;
  i+=2;
  if (i < len &&
  TBase <= PyUnicode_READ(kind, data, i) &&
  PyUnicode_READ(kind, data, i) <= (TBase+TCount)) {
  code += PyUnicode_READ(kind, data, i)-TBase;
  i++;
  }
  output[o++] = code;
  continue;
  }

With the input string (1101 116e, 11a7), we get:

* LIndex = 1
* VIndex = 13


code = SBase + (LIndex*VCount+VIndex)*TCount + (ch3 - TBase)
= 0xAC00 + (1 * 21 + 13) * 28 + 0
= 0xafb8

Constants:

* LBase = 0x1100, LCount = 19
* VBase = 0x1161, VCount = 21
* TBase = 0x11A7, TCount = 28
* SBase = 0xAC00

The problem is maybe than we used the 3rd character whereas (ch3 - TBase) is 
equal to 0.

--

___
Python tracker 

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



[issue26917] unicodedata.normalize(): bug in Hangul Composition

2016-05-03 Thread STINNER Victor

STINNER Victor added the comment:

Attached patch changes Hangul Composition. I'm not sure that it is correct.

--
keywords: +patch
Added file: http://bugs.python.org/file42691/hangul_composition.patch

___
Python tracker 

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



[issue26904] Difflib quick_ratio() could use Counter()

2016-05-03 Thread Michael Cuthbert

Michael Cuthbert added the comment:

Here are the results I obtained along with the test code I used to get the 
results.  The test code also has a "hybrid" code which I did not propose, but 
maybe I should have, which uses the old code for very short (but not 
degenerate) tests and then the new code for larger tests.  It does add code 
complexity however.

Results: 

SpeedResult(wordLen=0, tests=101, cached=True, oldNew='old', time='1.22 
µsec')
SpeedResult(wordLen=0, tests=101, cached=True, oldNew='new', time='525 
nsec')
SpeedResult(wordLen=0, tests=101, cached=True, oldNew='hybrid', time='522 
nsec')
SpeedResult(wordLen=0, tests=101, cached=False, oldNew='old', time='1.78 
µsec')
SpeedResult(wordLen=0, tests=101, cached=False, oldNew='new', time='605 
nsec')
SpeedResult(wordLen=0, tests=101, cached=False, oldNew='hybrid', time='617 
nsec')
SpeedResult(wordLen=1, tests=51, cached=True, oldNew='old', time='1.76 
µsec')
SpeedResult(wordLen=1, tests=51, cached=True, oldNew='new', time='11.4 
µsec')
SpeedResult(wordLen=1, tests=51, cached=True, oldNew='hybrid', time='2.64 
µsec')
SpeedResult(wordLen=1, tests=51, cached=False, oldNew='old', time='3.07 
µsec')
SpeedResult(wordLen=1, tests=51, cached=False, oldNew='new', time='19.6 
µsec')
SpeedResult(wordLen=1, tests=51, cached=False, oldNew='hybrid', time='3.9 
µsec')
SpeedResult(wordLen=5, tests=17, cached=True, oldNew='old', time='3.2 µsec')
SpeedResult(wordLen=5, tests=17, cached=True, oldNew='new', time='14.4 
µsec')
SpeedResult(wordLen=5, tests=17, cached=True, oldNew='hybrid', time='3.98 
µsec')
SpeedResult(wordLen=5, tests=17, cached=False, oldNew='old', time='5.16 
µsec')
SpeedResult(wordLen=5, tests=17, cached=False, oldNew='new', time='21.8 
µsec')
SpeedResult(wordLen=5, tests=17, cached=False, oldNew='hybrid', time='6.14 
µsec')
SpeedResult(wordLen=20, tests=47620, cached=True, oldNew='old', time='9.01 
µsec')
SpeedResult(wordLen=20, tests=47620, cached=True, oldNew='new', time='22.4 
µsec')
SpeedResult(wordLen=20, tests=47620, cached=True, oldNew='hybrid', time='9.79 
µsec')
SpeedResult(wordLen=20, tests=47620, cached=False, oldNew='old', time='14.2 
µsec')
SpeedResult(wordLen=20, tests=47620, cached=False, oldNew='new', time='32.2 
µsec')
SpeedResult(wordLen=20, tests=47620, cached=False, oldNew='hybrid', time='15.8 
µsec')
SpeedResult(wordLen=60, tests=16394, cached=True, oldNew='old', time='22.2 
µsec')
SpeedResult(wordLen=60, tests=16394, cached=True, oldNew='new', time='34.9 
µsec')
SpeedResult(wordLen=60, tests=16394, cached=True, oldNew='hybrid', time='35.9 
µsec')
SpeedResult(wordLen=60, tests=16394, cached=False, oldNew='old', time='39.4 
µsec')
SpeedResult(wordLen=60, tests=16394, cached=False, oldNew='new', time='51.9 
µsec')
SpeedResult(wordLen=60, tests=16394, cached=False, oldNew='hybrid', time='50.7 
µsec')
SpeedResult(wordLen=200, tests=4976, cached=True, oldNew='old', time='68.8 
µsec')
SpeedResult(wordLen=200, tests=4976, cached=True, oldNew='new', time='55.8 
µsec')
SpeedResult(wordLen=200, tests=4976, cached=True, oldNew='hybrid', time='54.9 
µsec')
SpeedResult(wordLen=200, tests=4976, cached=False, oldNew='old', time='116 
µsec')
SpeedResult(wordLen=200, tests=4976, cached=False, oldNew='new', time='75.4 
µsec')
SpeedResult(wordLen=200, tests=4976, cached=False, oldNew='hybrid', time='76.6 
µsec')
SpeedResult(wordLen=1000, tests=1000, cached=True, oldNew='old', time='320 
µsec')
SpeedResult(wordLen=1000, tests=1000, cached=True, oldNew='new', time='109 
µsec')
SpeedResult(wordLen=1000, tests=1000, cached=True, oldNew='hybrid', time='111 
µsec')
SpeedResult(wordLen=1000, tests=1000, cached=False, oldNew='old', time='529 
µsec')
SpeedResult(wordLen=1000, tests=1000, cached=False, oldNew='new', time='183 
µsec')
SpeedResult(wordLen=1000, tests=1000, cached=False, oldNew='hybrid', time='175 
µsec')
SpeedResult(wordLen=1, tests=100, cached=True, oldNew='old', time='3.15 
msec')
SpeedResult(wordLen=1, tests=100, cached=True, oldNew='new', time='651 
µsec')
SpeedResult(wordLen=1, tests=100, cached=True, oldNew='hybrid', time='673 
µsec')
SpeedResult(wordLen=1, tests=100, cached=False, oldNew='old', time='5.18 
msec')
SpeedResult(wordLen=1, tests=100, cached=False, oldNew='new', time='1.25 
msec')
SpeedResult(wordLen=1, tests=100, cached=False, oldNew='hybrid', time='1.24 
msec')
SpeedResult(wordLen=10, tests=10, cached=True, oldNew='old', time='33.8 
msec')
SpeedResult(wordLen=10, tests=10, cached=True, oldNew='new', time='8.35 
msec')
SpeedResult(wordLen=10, tests=10, cached=True, oldNew='hybrid', time='8.33 
msec')
SpeedResult(wordLen=10, tests=10, cached=False, oldNew='old', time='53.3 
msec')
SpeedResult(wordLen=10, tests=10, cached=False, oldNew='new', time='15.2 
msec')
SpeedResult(wordLen=10, tests=10, cached=False, oldNew='hybrid', time='15.3 
msec')
SpeedResult(wordLen=100, tests=1, cached=True, oldNe

[issue26921] Incorrect usage of a/an articles in PEPs

2016-05-03 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Proposed patch fixes the usage of a/an articles in PEPs.

--
assignee: docs@python
components: Documentation
files: pep_articles.patch
keywords: patch
messages: 264710
nosy: docs@python, georg.brandl, martin.panter, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Incorrect usage of a/an articles in PEPs
Added file: http://bugs.python.org/file42693/pep_articles.patch

___
Python tracker 

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



[issue26917] unicodedata.normalize(): bug in Hangul Composition

2016-05-03 Thread Armin Rigo

Armin Rigo added the comment:

See also 
https://bitbucket.org/pypy/pypy/issues/2289/incorrect-unicode-normalization .  
It seems that you reached the same conclusion than the OP in that issue: the 
problem would really be that normalizing "\uafb8\u11a7" should not drop the 
second character.  Both Python and PyPy do that, but Python adds the 
"is_normalized()" check, so in some cases it returns the correct unmodified 
result.

--

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Ned Batchelder

Ned Batchelder added the comment:

Unless I have permissions I've never used, I don't think I can just push fixes 
to the peps repo. Also, it looks like Georg is working away at it!

--

___
Python tracker 

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



[issue26921] Incorrect usage of a/an articles in PEPs

2016-05-03 Thread Georg Brandl

Georg Brandl added the comment:

Also LGTM.  It's easy to spot PEPs written by French people :)

--

___
Python tracker 

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



[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Georg Brandl

Georg Brandl added the comment:

Yep, they should all be gone. I tried to make sure by running the sources 
through docutils and finding nested  nodes.

--

___
Python tracker 

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



[issue26921] Incorrect usage of a/an articles in PEPs

2016-05-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d617c7ba4e14 by Serhiy Storchaka in branch 'default':
Issue #26921: Fixed a/an articles.
https://hg.python.org/peps/rev/d617c7ba4e14

--
nosy: +python-dev

___
Python tracker 

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



[issue26916] Word duplications in PEPs

2016-05-03 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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

___
Python tracker 

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



[issue26921] Incorrect usage of a/an articles in PEPs

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for reviews Georg.

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



[issue26922] build from fresh checkout fails

2016-05-03 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Building from a fresh checkout with "./configure" followed by "make -j4" fails 
here:

$ make -j4
[... snip ...]
./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not find platform independent libraries 
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'

Current thread 0x7fa1b6f48700 (most recent call first):
Aborted
generate-posix-vars failed
Makefile:598: recipe for target 'pybuilddir.txt' failed
make: *** [pybuilddir.txt] Error 1

--
components: Build
messages: 264717
nosy: pitrou
priority: normal
severity: normal
status: open
title: build from fresh checkout fails
type: compile error
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



[issue26922] build from fresh checkout fails

2016-05-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="15.04 (Vivid Vervet)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.04"
VERSION_ID="15.04"
HOME_URL="http://www.ubuntu.com/";
SUPPORT_URL="http://help.ubuntu.com/";
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";

--

___
Python tracker 

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



[issue26923] asyncio.gather drops cancellation

2016-05-03 Thread Johannes Ebke

New submission from Johannes Ebke:

In a very specific case, asyncio.gather causes a cancel() call on the Task 
waiting on the _GatheringFuture to return a false positive. An example program 
demonstrating this is attached.

The context: asyncio.gather creates a _GatheringFuture with a list of child 
Futures. Each child Future carries a done callback that updates the 
_GatheringFuture, and once the last child done callback is executed, the 
_GatheringFuture sets its result.

The specific situation: When the last child future changes state to done it 
schedules its done callbacks, but does not immediately execute them. If the 
Task waiting on the gather is then cancelled before the last child done 
callback has run, the cancel method in asyncio/tasks.py:578 determines that the 
_GatheringFuture inspects itself and sees that it is not done() yet, and 
proceeds to cancel all child futures - which has no effect, since all of them 
are already done(). It still returns True, so the Tasks thinks all is well, and 
proceeds with its execution.

The behaviour I would expect is that if cancel() is called on the 
_GatheringFuture, and all children return False on cancel(), then 
_GatheringFuture.cancel() should also return False, i.e.:

def cancel(self):
if self.done():
return False
at_least_one_child_cancelled = False
for child in self._children:
if child.cancel():
at_least_one_child_cancelled = True
return at_least_one_child_cancelled

If I replace _GatheringFuture.cancel with the above variant, the bug disappears 
for me.

More context: We hit this bug sporadically in an integration test of aioredis, 
where some timings conspired to make it appear with a chance of about 1 in 10. 
The minimal example calls the cancellation in a done_callback, so that it 
always hits the window. This was not the way the bug was discovered.

--
components: asyncio
files: cancellation_test.py
messages: 264719
nosy: JohannesEbke, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.gather drops cancellation
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file42694/cancellation_test.py

___
Python tracker 

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



[issue26039] More flexibility in zipfile write interface

2016-05-03 Thread Thomas Kluyver

Thomas Kluyver added the comment:

Any further review comments on this?

--

___
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-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_concurrent_futures fails on an android emulator running an x86 system 
image at API level 21.

There are multiple ERRORs, all resulting in the same traceback:

Traceback (most recent call last):
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_concurrent_futures.py", 
line 68, in setU
p
self.executor = self.executor_type(max_workers=self.worker_count)
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/concurrent/futures/process.py", line 
390, in __init__
EXTRA_QUEUED_CALLS)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/context.py", 
line 101, in Queue
return Queue(maxsize, ctx=self.get_context())
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/queues.py", 
line 42, in __init__
self._rlock = ctx.Lock()
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/context.py", 
line 66, in Lock
return Lock(ctx=self.get_context())
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/synchronize.py", 
line 163, in __in
it__
SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/multiprocessing/synchronize.py", 
line 60, in __ini
t__
unlink_now)
OSError: [Errno 38] Function not implemented

The ERRORs:
===

test_duplicate_futures 
(test.test_concurrent_futures.ProcessPoolAsCompletedTests) ... ERROR
test_no_timeout (test.test_concurrent_futures.ProcessPoolAsCompletedTests) ... 
ERROR
test_zero_timeout (test.test_concurrent_futures.ProcessPoolAsCompletedTests) 
... ERROR
test_killed_child (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 
ERROR
test_map (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR
test_map_chunksize (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 
ERROR
test_map_exception (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 
ERROR
test_map_timeout (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 
ERROR
test_max_workers_negative 
(test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR
test_no_stale_references (test.test_concurrent_futures.ProcessPoolExecutorTest) 
... ERROR
test_shutdown_race_issue12456 
(test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR
test_submit (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR
test_submit_keyword (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 
ERROR
test_traceback (test.test_concurrent_futures.ProcessPoolExecutorTest) ... ERROR
test_context_manager_shutdown 
(test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR
test_del_shutdown (test.test_concurrent_futures.ProcessPoolShutdownTest) ... 
ERROR
test_hang_issue12364 (test.test_concurrent_futures.ProcessPoolShutdownTest) ... 
ERROR
test_interpreter_shutdown 
(test.test_concurrent_futures.ProcessPoolShutdownTest) ... ERROR
test_processes_terminate (test.test_concurrent_futures.ProcessPoolShutdownTest) 
... ERROR
test_run_after_shutdown (test.test_concurrent_futures.ProcessPoolShutdownTest) 
... ERROR
test_all_completed (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR
test_first_completed (test.test_concurrent_futures.ProcessPoolWaitTests) ... 
ERROR
test_first_completed_some_already_completed 
(test.test_concurrent_futures.ProcessPoolWaitTests) ...  ERROR
test_first_exception (test.test_concurrent_futures.ProcessPoolWaitTests) ... 
ERROR
test_first_exception_one_already_failed 
(test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR
test_first_exception_some_already_complete 
(test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR
test_timeout (test.test_concurrent_futures.ProcessPoolWaitTests) ... ERROR

--
components: Cross-Build, Library (Lib)
messages: 264721
nosy: Alex.Willmer, bquinlan, xdegaye
priority: normal
severity: normal
status: open
title: android: test_concurrent_futures fails
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



[issue26923] asyncio.gather drops cancellation

2016-05-03 Thread STINNER Victor

STINNER Victor added the comment:

The doc:
https://docs.python.org/dev/library/asyncio-task.html#asyncio.gather
"Cancellation: if the outer Future is cancelled, all children (that have not 
completed yet) are also cancelled. If any child is cancelled, this is treated 
as if it raised CancelledError – the outer Future is not cancelled in this 
case. (This is to prevent the cancellation of one child to cause other children 
to be cancelled.)"

(Sorry, I didn't read your issue yet.)

--

___
Python tracker 

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



[issue26925] android: test_multiprocessing_main_handling fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

All the tests of test_multiprocessing_main_handling fail on an android emulator 
running an x86 system image at API level 21.
See the attached test_output.txt file.

--
components: Cross-Build, Library (Lib)
files: test_output.txt
messages: 264723
nosy: Alex.Willmer, jnoller, sbt, xdegaye
priority: normal
severity: normal
status: open
title: android: test_multiprocessing_main_handling fails
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42695/test_output.txt

___
Python tracker 

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



[issue26925] android: test_multiprocessing_main_handling fails

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

This seems to be related to issue #26924.

--

___
Python tracker 

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



[issue26926] android: test_io fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_io fails on an android emulator running an x86 system image at API level 
21.

==
ERROR: test_large_file_ops (test.test_io.CIOTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 537, 
in test_large_file_ops
self.large_file_ops(f)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 330, 
in large_file_ops
self.assertEqual(f.seek(self.LARGE), self.LARGE)
OverflowError: Python int too large to convert to C long

==
ERROR: test_large_file_ops (test.test_io.PyIOTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 537, 
in test_large_file_ops
self.large_file_ops(f)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_io.py", line 330, 
in large_file_ops
self.assertEqual(f.seek(self.LARGE), self.LARGE)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/_pyio.py", line 1632, in seek
return os.lseek(self._fd, pos, whence)
OverflowError: Python int too large to convert to C long

--
Ran 541 tests in 32.829s

FAILED (errors=2, skipped=8)
test test_io failed
test_io took 33 sec
1 test failed:
test_io
Total duration: 0:00:33

--
components: Cross-Build, Library (Lib)
messages: 264725
nosy: Alex.Willmer, benjamin.peterson, stutzbach, xdegaye
priority: normal
severity: normal
status: open
title: android: test_io fails
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



[issue26927] android: test_mmap fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_mmap fails on an android emulator running an x86 system image at API level 
21.

==
ERROR: test_large_filesize (test.test_mmap.LargeMmapTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 755, 
in test_large_filesize
with self._make_test_file(0x17FFF, b" ") as f:
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 738, 
in _make_test_file
f.seek(num_zeroes)
ValueError: cannot fit 'int' into an offset-sized integer

==
ERROR: test_large_offset (test.test_mmap.LargeMmapTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 750, 
in test_large_offset
with self._make_test_file(0x14FFF, b" ") as f:
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_mmap.py", line 738, 
in _make_test_file
f.seek(num_zeroes)
ValueError: cannot fit 'int' into an offset-sized integer

--
Ran 35 tests in 0.134s

FAILED (errors=2, skipped=6)
test test_mmap failed
1 test failed:
test_mmap
Total duration: 0:00:01

--
components: Cross-Build, Library (Lib)
messages: 264726
nosy: Alex.Willmer, twouters, xdegaye
priority: normal
severity: normal
status: open
title: android: test_mmap fails
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



[issue26923] asyncio.gather drops cancellation

2016-05-03 Thread Johannes Ebke

Johannes Ebke added the comment:

Thank you for providing the relevant documentation link.

I just noticed that it should probably be clarified that in case the outer 
Future is cancelled, and all children that are not already done ignore the 
cancellation (a.k.a. catch the CancelledError), the cancellation of the outer 
Future does not continue.

This is different to the behaviour of asyncio.wait_for, which always raises a 
CancelledError.

--

___
Python tracker 

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



[issue26928] android: test_site fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

One test of test_site fails on an android emulator running an x86 system image 
at API level 21.

See the attached test_output.txt file.

--
components: Cross-Build, Library (Lib)
files: test_output.txt
messages: 264728
nosy: Alex.Willmer, xdegaye
priority: normal
severity: normal
status: open
title: android: test_site fails
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42696/test_output.txt

___
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-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There is similar issue on 3.x:

>>> import array
>>> it = iter(array.array('i'))
>>> format(it)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: Type arrayiterator doesn't define __format__
>>> type(it).__format__

>>> format(it)
''

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_strptime fails on an android emulator running an x86 system image at API 
level 21.

See the attached test_output.txt file.

--
components: Cross-Build, Library (Lib)
files: test_output.txt
messages: 264729
nosy: Alex.Willmer, belopolsky, lemburg, xdegaye
priority: normal
severity: normal
status: open
title: android: test_strptime fails
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42697/test_output.txt

___
Python tracker 

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



[issue26930] Upgrade installers to OpenSSL 1.0.2h

2016-05-03 Thread Alex Gaynor

New submission from Alex Gaynor:

https://www.openssl.org/news/secadv/20160503.txt

--
keywords: security_issue
messages: 264731
nosy: alex, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Upgrade installers to OpenSSL 1.0.2h

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



[issue26931] android: test_distutils fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_distutils fails on an android emulator running an x86 system image at API 
level 21.

See the attached test_output.txt file.

Some of these failed tests could be skipped, supposing that native compilation 
of extension modules on android itself (as opposed to using cross-compilation) 
is not supported.

--
components: Cross-Build, Library (Lib)
files: test_output.txt
messages: 264732
nosy: Alex.Willmer, dstufft, eric.araujo, xdegaye
priority: normal
severity: normal
status: open
title: android: test_distutils fails
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42698/test_output.txt

___
Python tracker 

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



[issue26933] android: test_posixpath fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_posixpath fails on an android emulator running an x86 system image at API 
level 21.

On android we have:
root@generic_x86:/data/local/tmp # python
Python 3.6.0a0 (default:f4c6dab59cd8+, May  3 2016, 10:42:45) 
[GCC 4.9 20140827 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import posixpath, pwd, os
>>> posixpath.expanduser("~")
'/data'
>>> pwd.getpwuid(os.getuid()).pw_dir
'/'
>>>


Test results:

==
FAIL: test_expanduser (test.test_posixpath.PosixPathTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posixpath.py", line 
247, in test_expanduser
self.assertEqual(posixpath.expanduser("~"), home.rstrip("/"))
AssertionError: '/' != ''
- /
+ 


--
Ran 54 tests in 0.046s

FAILED (failures=1)
test test_posixpath failed
1 test failed:
test_posixpath
Total duration: 0:00:01

--
components: Cross-Build, Library (Lib)
messages: 264734
nosy: Alex.Willmer, larry, xdegaye
priority: normal
severity: normal
status: open
title: android: test_posixpath fails
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



[issue26932] android: test_posix fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_posix fails on an android emulator running an x86 system image at API 
level 21.

For the first ERROR, on android we have instead of a list of group IDs:
root@generic_x86:/data/local/tmp # id -G
uid=0(root) gid=0(root) 
groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)
 context=u:r:su:s0


==
ERROR: test_getgroups (test.test_posix.PosixTester)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posix.py", line 
815, in test_getgroups
set([int(x) for x in groups.split()]),
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posix.py", line 
815, in 
set([int(x) for x in groups.split()]),
ValueError: invalid literal for int() with base 10: 'uid=0(root)'

==
ERROR: test_rtld_constants (test.test_posix.PosixTester)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posix.py", line 
1128, in test_rtld_constants
posix.RTLD_LAZY
AttributeError: module 'posix' has no attribute 'RTLD_LAZY'

--
Ran 83 tests in 0.114s

FAILED (errors=2, skipped=11)
test test_posix failed
1 test failed:
test_posix
Total duration: 0:00:01

--
components: Cross-Build, Library (Lib)
messages: 264733
nosy: Alex.Willmer, larry, xdegaye
priority: normal
severity: normal
status: open
title: android: test_posix fails
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



[issue26934] android: test_faulthandler fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_faulthandler fails on an android emulator running an x86 system image at 
API level 21.

See the attached test_output.txt file.

--
components: Cross-Build, Library (Lib)
files: test_output.txt
messages: 264735
nosy: Alex.Willmer, haypo, xdegaye
priority: normal
severity: normal
status: open
title: android: test_faulthandler fails
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42699/test_output.txt

___
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-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

One test of test_os fails on an android emulator running an x86 system image at 
API level 21.

See the attached test_output.txt file.

--
components: Cross-Build, Library (Lib)
files: test_output.txt
messages: 264736
nosy: Alex.Willmer, loewis, xdegaye
priority: normal
severity: normal
status: open
title: android: test_os fails
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42700/test_output.txt

___
Python tracker 

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



[issue26937] android: test_tarfile fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_tarfile fails on an android emulator running an x86 system image at API 
level 21.


==  
[0/9481]
FAIL: test_extract_with_numeric_owner (test.test_tarfile.NumericOwnerTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 1175, 
in patched
return func(*args, **keywargs)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_tarfile.py", line 
2483, in test_extract_
with_numeric_owner
any_order=True)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 856, 
in assert_has_calls
) from cause
AssertionError: 
(call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/numeric-owner-testfile
', 99, 98), 
call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/dir/numeric-owner-testfile'
, 88, 87)) not all found in call list

==
FAIL: test_extractall_with_numeric_owner (test.test_tarfile.NumericOwnerTest)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 1175, 
in patched
return func(*args, **keywargs)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_tarfile.py", line 
2503, in test_extracta
ll_with_numeric_owner
any_order=True)
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/mock.py", line 856, 
in assert_has_calls
) from cause
AssertionError: 
(call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/numeric-owner-testfile
', 99, 98), call('/data/local/tmp/test_python_2938/@test_2938_tmp-tardir/dir', 
77, 76), call('/data/
local/tmp/test_python_2938/@test_2938_tmp-tardir/dir/numeric-owner-testfile', 
88, 87)) not all found
 in call list

--
Ran 426 tests in 5.549s

FAILED (failures=2, skipped=80)
test test_tarfile failed
1 test failed:
test_tarfile
Total duration: 0:00:06

--
components: Cross-Build, Library (Lib)
messages: 264738
nosy: Alex.Willmer, lars.gustaebel, xdegaye
priority: normal
severity: normal
status: open
title: android: test_tarfile fails
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



[issue26936] android: test_socket fails

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_socket fails on an android emulator running an x86 system image at API 
level 21.


==
ERROR: testGetServBy (test.test_socket.GeneralModuleTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_socket.py", line 
913, in testGetServBy
port2 = socket.getservbyname(service)
OSError: service/proto not found

==
ERROR: testGetaddrinfo (test.test_socket.GeneralModuleTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_socket.py", line 
1240, in testGetaddrinfo
socket.getaddrinfo(HOST, "http")
  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

--
Ran 530 tests in 26.702s

FAILED (errors=2, skipped=75)
test test_socket failed
1 test failed:
test_socket
Total duration: 0:00:27

--
components: Cross-Build, Library (Lib)
messages: 264737
nosy: Alex.Willmer, xdegaye
priority: normal
severity: normal
status: open
title: android: test_socket fails
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



[issue26933] android: test_posixpath fails

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is a duplicate of issue24950.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> FAIL: test_expanduser when $HOME=/

___
Python tracker 

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



[issue24950] FAIL: test_expanduser when $HOME=/

2016-05-03 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue26922] build from fresh checkout fails

2016-05-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Note this is a data point of how obscure and hard to debug the current early 
startup phase is :-)

--
nosy: +ncoghlan

___
Python tracker 

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



[issue26939] android: test_functools hangs on armv7

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_functools hangs on an android emulator running an armv7 system image (but 
not on x86) at API level 21. The test suite hangs at

test_lru_cache_threaded (test.test_functools.TestLRUC) ...

A cause of this problem may be related to the fact that the android arm 
emulator runs very, very slowly.

--
components: Cross-Build, Library (Lib)
messages: 264742
nosy: Alex.Willmer, ncoghlan, rhettinger, xdegaye
priority: normal
severity: normal
status: open
title: android: test_functools hangs on armv7
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



[issue26938] android: test_concurrent_futures hangs on armv7

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_concurrent_futures hangs on an android emulator running an armv7 system 
image (but not on x86) at API level 21. The test suite hangs at:

test_pending_calls_race (test.test_concurrent_futures.ThreadPoolWaitTests) ...

A cause of this problem may be related to the fact that the android arm 
emulator runs very, very slowly.

--
components: Cross-Build, Library (Lib)
messages: 264740
nosy: Alex.Willmer, bquinlan, xdegaye
priority: normal
severity: normal
status: open
title: android: test_concurrent_futures hangs on armv7
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



[issue26940] android: test_importlib hangs on armv7

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_importlib hangs on an android emulator running an armv7 system image (but 
not on x86) at API level 21. The test suite hangs at

test_deadlock (test.test_importlib.test_locks.Frozen_DeadlockAvoidanceTests) ...

A cause of this problem may be related to the fact that the android arm 
emulator runs very, very slowly.

--
components: Cross-Build, Library (Lib)
messages: 264743
nosy: Alex.Willmer, brett.cannon, xdegaye
priority: normal
severity: normal
status: open
title: android: test_importlib hangs on armv7
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



[issue26941] android: test_threading hangs on armv7

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_threading hangs on an android emulator running an armv7 system image (but 
not on x86) at API level 21. The test suite hangs at

test_is_alive_after_fork (test.test_threading.ThreadTests) ...

A cause of this problem may be related to the fact that the android arm 
emulator runs very, very slowly.

--
components: Cross-Build, Library (Lib)
messages: 264744
nosy: Alex.Willmer, xdegaye
priority: normal
severity: normal
status: open
title: android: test_threading hangs on armv7
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



[issue26942] android: test_ctypes crashes on armv7

2016-05-03 Thread Xavier de Gaye

New submission from Xavier de Gaye:

test_ctypes crashes on an android emulator running an armv7 system image (but 
not on x86) at API level 21.


143|root@generic:/data/local/tmp # python -m test -v test_ctypes
   
== CPython 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 17:24:17) [GCC 4.9 
20140827 (prerelease)]
==   Linux-3.4.67-01422-gd3ffcc7-dirty-armv7l-with-libc little-endian
==   hash algorithm: fnv 32bit
==   /data/local/tmp/test_python_2301
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_randomiza
tion=1, isolated=0)
Run tests sequentially
0:00:00 [1/1] test_ctypes
test_anon (ctypes.test.test_anon.AnonTest) ... ok
test_anon_nonmember (ctypes.test.test_anon.AnonTest) ... ok
test_anon_nonseq (ctypes.test.test_anon.AnonTest) ... ok
test_nested (ctypes.test.test_anon.AnonTest) ... ok
test (ctypes.test.test_array_in_pointer.Test) ... ok
test_2 (ctypes.test.test_array_in_pointer.Test) ... ok
test_bad_subclass (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_cache (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_classcache (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_from_address (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_from_addressW (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_numeric_arrays (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_simple (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_subclass (ctypes.test.test_arrays.ArrayTestCase) ... ok
test_byval (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase) ... ok
test_callbacks (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase) 
... Fatal Python error
: Segmentation fault

Current thread 0xb6f2eec8 (most recent call first):
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/ctypes/test/test_as_parameter.py", 
line 85 in test
_callbacks
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/case.py", line 600 
in run
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/case.py", line 648 
in __call__
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 
in run
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 
in __call__
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 
in run
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 
in __call__
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 
in run
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 
in __call__
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 
in run
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 
in __call__
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 122 
in run
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/suite.py", line 84 
in __call__
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/unittest/runner.py", line 176 
in run
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/__init__.py", 
line 1802 in _run_suite
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/__init__.py", 
line 1836 in run_unitte
st
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/runtest.py", 
line 166 in test_run
ner
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/runtest.py", 
line 167 in runtest_
inner
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/runtest.py", 
line 131 in runtest
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", 
line 332 in run_tests_s
equential
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", 
line 402 in run_tests
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", 
line 462 in _main
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", 
line 442 in main
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/libregrtest/main.py", 
line 504 in main
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/__main__.py", line 2 in 

  File "/sdcard/org.bitbucket.pyona/lib/python3.6/runpy.py", line 85 in 
_run_code
  File "/sdcard/org.bitbucket.pyona/lib/python3.6/runpy.py", line 184 in 
_run_module_as_main
Segmentation fault

--
components: Cross-Build, Library (Lib)
messages: 264745
nosy: Alex.Willmer, amaury.forgeotdarc, belopolsky, meador.inge, xdegaye
priority: normal
severity: normal
status: open
title: android: test_ctypes crashes on armv7
type: crash
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



[issue26537] ConfigParser has optionxform, but not sectionxform

2016-05-03 Thread Xiang Zhang

Changes by Xiang Zhang :


--
nosy: +xiang.zhang

___
Python tracker 

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



[issue26865] Meta-issue: support of the android platform

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

All the dependencies of this issue are tagged with Components:Cross-Build and a 
title starting with 'android'.

Tests that fail on an android emulator running an x86 system image at API level 
21:

  issue #26918: android: test_pipes fails
  issue #26919: android: test_cmd_line fails
  issue #26920: android: test_sys fails
  issue #26924: android: test_concurrent_futures fails
  issue #26925: android: test_multiprocessing_main_handling fails
  issue #26926: android: test_io fails
  issue #26927: android: test_mmap fails
  issue #26928: android: test_site fails
  issue #26929: android: test_strptime fails
  issue #26931: android: test_distutils fails
  issue #26932: android: test_posix fails
  issue #26933: android: test_posixpath fails
  issue #26934: android: test_faulthandler fails
  issue #26935: android: test_os fails
  issue #26936: android: test_socket fails
  issue #26937: android: test_tarfile fails

Tests that fail on an android emulator running an armv7 system image (but not 
fail on x86) at API level 21:

  issue #26938: android: test_concurrent_futures hangs on armv7
  issue #26939: android: test_functools hangs on armv7
  issue #26940: android: test_importlib hangs on armv7
  issue #26941: android: test_threading hangs on armv7
  issue #26942: android: test_ctypes crashes on armv7

--

___
Python tracker 

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



[issue26922] build from fresh checkout fails

2016-05-03 Thread Brett Cannon

Brett Cannon added the comment:

That exception usually stems from when importlib.h has an error in it.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue26933] android: test_posixpath fails

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

That was fast!
Thanks Serhiy.

--

___
Python tracker 

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



[issue26696] Document collections.abc.ByteString

2016-05-03 Thread Xiang Zhang

Changes by Xiang Zhang :


--
nosy: +xiang.zhang

___
Python tracker 

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



[issue26933] android: test_posixpath fails

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'll push a patch for issue24950 in short time.

Try to search precedences for other your issues. May be they have patches, 
additional information or experienced people.

--

___
Python tracker 

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



[issue26933] android: test_posixpath fails

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

You are right. I will do that.

--

___
Python tracker 

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



[issue24950] FAIL: test_expanduser when $HOME=/

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yet one corner case is empty HOME value.

--

___
Python tracker 

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



[issue24950] FAIL: test_expanduser when $HOME=/

2016-05-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 194b356c84f5 by Serhiy Storchaka in branch '3.5':
Issue #24950: Fixed expanduser tests when the users home directory in pwd is 
"/".
https://hg.python.org/cpython/rev/194b356c84f5

New changeset b9b99cb85a5f by Serhiy Storchaka in branch 'default':
Issue #24950: Fixed expanduser tests when the users home directory in pwd is 
"/".
https://hg.python.org/cpython/rev/b9b99cb85a5f

--
nosy: +python-dev

___
Python tracker 

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



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-03 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Łukasz, my proposal was to also update distutils (in all Python versions that 
get bugfixes) to match the Setuptools behavior and Python 2 behavior. I'd still 
like to do that to harmonize the implementations.

--

___
Python tracker 

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



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-03 Thread Łukasz Langa

Łukasz Langa added the comment:

Oh, my bad. Yeah, that sounds like a worthwhile change.

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

___
Python tracker 

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



[issue26876] Extend MSVCCompiler class to respect environment variables

2016-05-03 Thread Steve Dower

Steve Dower added the comment:

I was thinking more like this:

if DISTUTILS_USE_SDK:
assume PATH is configured
execute os.getenv("CC", "cl.exe") directly
else:
find VS in the registry
execute "cl.exe" etc.

The only change here from the current situation is preferring the CC variable 
in the former case when it is set. When we look up VS in the registry, we know 
what executable we are going to find and overriding them via the environment is 
only going to cause issues/vulnerabilities.

--

___
Python tracker 

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



[issue24950] FAIL: test_expanduser when $HOME=/

2016-05-03 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue26939] android: test_functools hangs on armv7

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The attached test_output.txt file is the corresponding gdb backtrace[1].

Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that 
hang on arm use sys.setswitchinterval() aggressively.


[1] The backtrace is interleaved with:
  * Python Exception  'utf8' codec can't 
decode byte 0xb8 in posit ion 0: invalid start byte:
that seem to come from libpython, the python that is embeded in gdb to 
pretty-print gdb output
  * ---Type  to continue, or q  to quit---
sorry, had to resort to copy/paste, gdb 'set logging' does not seem to work

--
Added file: http://bugs.python.org/file42701/test_output.txt

___
Python tracker 

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



[issue26938] android: test_concurrent_futures hangs on armv7

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that 
hang on arm use sys.setswitchinterval() aggressively.

--

___
Python tracker 

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



[issue26941] android: test_threading hangs on armv7

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that 
hang on arm use sys.setswitchinterval() aggressively.

--

___
Python tracker 

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



[issue26940] android: test_importlib hangs on armv7

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that 
hang on arm use sys.setswitchinterval() aggressively.

--

___
Python tracker 

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



[issue17909] Autodetecting JSON encoding

2016-05-03 Thread Geoffrey Sneddon

Changes by Geoffrey Sneddon :


--
nosy: +gsnedders

___
Python tracker 

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



[issue26039] More flexibility in zipfile write interface

2016-05-03 Thread Марк Коренберг

Changes by Марк Коренберг :


--
nosy:  -mmarkk

___
Python tracker 

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What is the output of following code?

import datetime
for i in range(1, 10):
print(datetime.date(1905, 1, i).strftime('%Y %U %w   %G %V %u'))

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

root@generic_x86:/data/local/tmp # python
Python 3.6.0a0 (default:f4c6dab59cd8+, May  3 2016, 21:59:47) 
[GCC 4.9 20140827 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> for i in range(1, 10):
...   print(datetime.date(1905, 1, i).strftime('%Y %U %w   %G %V %u'))
... 
1905 01 0   1904 53 7
1905 01 1   1905 01 1
1905 01 2   1905 01 2
1905 01 3   1905 01 3
1905 01 4   1905 01 4
1905 01 5   1905 01 5
1905 01 6   1905 01 6
1905 02 0   1905 01 7
1905 02 1   1905 02 1
>>>

--

___
Python tracker 

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks. And what is the output of following code?

for i in range(25, 32):
print(datetime.date(1904, 12, i).strftime('%Y %U %w   %G %V %u'))

--

___
Python tracker 

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

>>> for i in range(25, 32):
...   print(datetime.date(1904, 12, i).strftime('%Y %U %w   %G %V %u'))
... 
1904 52 0   1904 51 7
1904 52 1   1904 52 1
1904 52 2   1904 52 2
1904 52 3   1904 52 3
1904 52 4   1904 52 4
1904 52 5   1904 52 5
1904 52 6   1904 52 6
>>>

--

___
Python tracker 

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



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

2016-05-03 Thread Josh Rosenberg

Josh Rosenberg added the comment:

At some point someone really needs to decide if the C layer behavior of 
performing an identity test before full equality checking is something that 
should be emulated at the Python layer or not. The current state seems 
ridiculous, where C containers check identity first simply by using the easier 
RichCompareBool function, while Python containers have to have the 
identity-then-equality check rewritten explicitly, which feels like a DRY 
violation.

Makes it harder for non-CPython implementations too, since they end up either 
not matching CPython behavior, or writing extra code to match the CPython 
quirks.

I have nothing against this patch, but between PyObject_RichCompareBool and the 
various slightly strange behaviors in the argument parsing format codes (which 
leads to silly workarounds like _check_int_field in #20858), I feel like the 
Python code base is getting cluttered with hacks to emulate the hacky C layer.

--
nosy: +josh.r

___
Python tracker 

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thus there is a gap between 1904-12-31 and 1905-1-1. This is a bug in 
strftime() on Android.

--

___
Python tracker 

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



[issue26219] implement per-opcode cache in ceval

2016-05-03 Thread Josh Rosenberg

Changes by Josh Rosenberg :


--
nosy: +josh.r

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-05-03 Thread Josh Rosenberg

Changes by Josh Rosenberg :


--
nosy: +josh.r

___
Python tracker 

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



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

2016-05-03 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> rhettinger
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue23003] traceback.{print_exc, print_exception, format_exc, format_exception}: Potential AttributeError

2016-05-03 Thread Andy Edwards

Andy Edwards added the comment:

I'm seeing this issue in Python 2.7

Andys-MacBook-Pro:jcore-api-py andy$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
Andys-MacBook-Pro:jcore-api-py andy$ python setup.py test
running test
running egg_info
writing requirements to jcore_api.egg-info/requires.txt
writing jcore_api.egg-info/PKG-INFO
writing top-level names to jcore_api.egg-info/top_level.txt
writing dependency_links to jcore_api.egg-info/dependency_links.txt
reading manifest file 'jcore_api.egg-info/SOURCES.txt'
writing manifest file 'jcore_api.egg-info/SOURCES.txt'
running build_ext
.
--
Ran 21 tests in 3.423s

OK
Andys-MacBook-Pro:jcore-api-py andy$ python setup.py test
running test
running egg_info
writing requirements to jcore_api.egg-info/requires.txt
writing jcore_api.egg-info/PKG-INFO
writing top-level names to jcore_api.egg-info/top_level.txt
writing dependency_links to jcore_api.egg-info/dependency_links.txt
reading manifest file 'jcore_api.egg-info/SOURCES.txt'
writing manifest file 'jcore_api.egg-info/SOURCES.txt'
running build_ext
.
--
Ran 21 tests in 3.422s

OK
Exception in thread jcore.io receiver:
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", 
line 801, in __bootstrap_inner
self.run()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", 
line 754, in run
self.__target(*self.__args, **self.__kwargs)
  File "/Users/andy/jcore-api-py/jcore_api/_connection.py", line 104, in 
_run_recv_thread
traceback.print_exc()
AttributeError: 'NoneType' object has no attribute 'print_exc'

--
nosy: +jedwards1211

___
Python tracker 

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



[issue26812] ExtendedInterpolation drops user-defined 'vars' during _interpolate_some() recursion

2016-05-03 Thread Yih-En Andrew Ban

Yih-En Andrew Ban added the comment:

Sure, patch attached.

--
keywords: +patch
Added file: http://bugs.python.org/file42702/issue26812.patch

___
Python tracker 

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

GNU libc says:

 ‘%V’
  The ISO 8601:1988 week number as a decimal number (range ‘01’
  through ‘53’).  ISO weeks start with Monday and end with
  Sunday.  Week ‘01’ of a year is the first week which has the
  majority of its days in that year; this is equivalent to the
  week containing the year’s first Thursday, and it is also
  equivalent to the week containing January 4.  Week ‘01’ of a
  year can contain days from the previous year.  The week before
  week ‘01’ of a year is the last week (‘52’ or ‘53’) of the
  previous year even if it contains days from the new year.

  This format was first standardized by POSIX.2-1992 and by
  ISO C99.


So on 1905-1-1, %V should be 52 instead of 53 as printed by android; is this 
the only bug ?

A pretty good test to find such a mistake.

--

___
Python tracker 

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



[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There is other bug at the last week of a year:

import datetime
for i in range(25, 32):
print(datetime.date(1906, 12, i).strftime('%Y %U %w   %G %V %u'))

for i in range(1, 10):
print(datetime.date(1907, 1, i).strftime('%Y %U %w   %G %V %u'))

--

___
Python tracker 

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



[issue26926] android: test_io fails

2016-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This looks similar to issue11184.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



  1   2   >