[issue23695] idiom for clustering a data series into n-length groups

2015-05-13 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue7267] format method: c presentation type broken in 2.7

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a modification of Victor's patch, that just emits Py3k warning.

Both ways, with OverflowError and Py3k DeprecationWarning, are good to me. What 
would you say about this Benjamin?

--
Added file: http://bugs.python.org/file39355/int_format_c_warn.patch

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



[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9c606c573ec0 by Berker Peksag in branch 'default':
Issue #1322: platform.dist() and platform.linux_distribution() functions are 
now deprecated.
https://hg.python.org/cpython/rev/9c606c573ec0

--
nosy: +python-dev

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



[issue22064] Misleading message from 2to3 when skipping optional fixers

2015-05-13 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, Vinod.

--
nosy: +berker.peksag
resolution:  - fixed
stage: needs patch - resolved
status: open - closed
versions: +Python 2.7, Python 3.4, Python 3.5

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



[issue22064] Misleading message from 2to3 when skipping optional fixers

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f6e297e698ff by Berker Peksag in branch '2.7':
Issue #22064: Improve the misleading message from 2to3 when skipping optional 
fixers.
https://hg.python.org/cpython/rev/f6e297e698ff

--

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



[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-13 Thread Stuart Bishop

Stuart Bishop added the comment:

Can we get this reopened? As David MacIver points out, this seems entirely a 
wart in tuple's constructor (compared to all the other builtin types), whereas 
10977 is worrying about how 3rd party code using the C API can corrupt 
subclasses of builtin types (a much larger scope, and much less likely to be 
resolved in a good way).

Does it make sense to require python code wishing to case a tuple or tuple 
subclass do so using tuple(list(o)), or should tuple(o) work as expected? The 
primary use is of course converting a mutable sequence to an immutable 
representation to use as a dict key.

--
nosy: +stub

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



[issue23290] Faster set copying

2015-05-13 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


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

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



[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Fixed fromkeys() in Py2.7.  Stills needs to be forward ported to 3.4/3.5.

--
assignee: rhettinger - 

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



[issue24065] Outdated *_RESTRICTED flags in structmember.h

2015-05-13 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage:  - needs patch

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



[issue24064] Make the property doctstring writeable

2015-05-13 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: rhettinger - serhiy.storchaka
Added file: http://bugs.python.org/file39356/property_clear.diff

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



[issue22064] Misleading message from 2to3 when skipping optional fixers

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 571c82d8f4c9 by Berker Peksag in branch '3.4':
Issue #22064: Improve the misleading message from 2to3 when skipping optional 
fixers.
https://hg.python.org/cpython/rev/571c82d8f4c9

New changeset 11fefeb7e941 by Berker Peksag in branch 'default':
Issue #22064: Improve the misleading message from 2to3 when skipping optional 
fixers.
https://hg.python.org/cpython/rev/11fefeb7e941

--
nosy: +python-dev

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



[issue23290] Faster set copying

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 79c884cc9625 by Raymond Hettinger in branch 'default':
Issue #23290:  Optimize set_merge() for cases where the target is empty.
https://hg.python.org/cpython/rev/79c884cc9625

--
nosy: +python-dev

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



[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This is good to go.

--

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



[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This would have gone quicker if the size bug-fix hadn't been commingled with 
the optimization.

--

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



[issue24064] Make the property doctstring writeable

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bde652ae05fd by Berker Peksag in branch 'default':
Issue #24064: Add __doc__ to the example in collections.rst.
https://hg.python.org/cpython/rev/bde652ae05fd

--

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



[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue23695] idiom for clustering a data series into n-length groups

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f7d82e40e472 by Raymond Hettinger in branch 'default':
Issue #23695:  Explain the  zip() example for clustering a data series into 
n-length groups.
https://hg.python.org/cpython/rev/f7d82e40e472

--
nosy: +python-dev

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



[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8440dda28ffe by Raymond Hettinger in branch '3.4':
Issue #19934:  Document *None* as an acceptable input to 
Counter.most_common([n])
https://hg.python.org/cpython/rev/8440dda28ffe

--
nosy: +python-dev

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



[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cd0706499812 by Raymond Hettinger in branch '2.7':
Issue #23971:  Fix underestimated presizing in dict.fromkeys()
https://hg.python.org/cpython/rev/cd0706499812

--
nosy: +python-dev

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



[issue23637] Warnings error with non-ascii chars.

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

One of the worst things in Python 2 is that all can work on author's machine in 
ASCII-only environment, but then unhelpfully fail on user machine with 
non-ASCII data. Especially when needed a combination of few conditions for the 
fail. This issue is about one of such cases. And even worse, it makes the 
program fail with unfriendly error message during an attempt to output possible 
helpful warning. It is very desirable to me to solve it.

What would you say about this Benjamin?

--

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



[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Thanks for pointing out the omission.

--
resolution:  - fixed
status: open - closed

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



[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset df708898f27b by Raymond Hettinger in branch '2.7':
Issue #19934:  Document *None* as an acceptable input to 
Counter.most_common([n])
https://hg.python.org/cpython/rev/df708898f27b

--

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



[issue24173] curses HOWTO/implementation disagreement

2015-05-13 Thread White_Rabbit

New submission from White_Rabbit:

Similarly to issue 6771¹, the curses HOWTO² talks about the curses.wrapper 
module and its curses.wrapper.wrapper function, but with python 2.7.5-ubuntu3 I 
already have the curses.wrapper function.

¹ https://bugs.python.org/issue6771
² https://docs.python.org/2/howto/curses.html

--
assignee: docs@python
components: Documentation
messages: 243058
nosy: White_Rabbit, docs@python
priority: normal
severity: normal
status: open
title: curses HOWTO/implementation disagreement
versions: Python 2.7

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



[issue24174] Python crash on exit

2015-05-13 Thread Cédric Bellegarde

New submission from Cédric Bellegarde:

Hello, i'm lollypop dev:
https://github.com/gnumdk/lollypop

Sometimes, when lollypop quits, i get a segfault...

Here bracktrace:
Program received signal SIGSEGV, Segmentation fault.
0x76b3b528 in _int_free (av=0x76e65620 main_arena, p=optimized 
out, 
have_lock=0) at malloc.c:3996
3996malloc.c: Aucun fichier ou dossier de ce type.
(gdb) backtrace
#0  0x76b3b528 in _int_free (av=0x76e65620 main_arena, 
p=optimized out, have_lock=0) at malloc.c:3996
#1  0x005eae0f in code_dealloc (co=0x768be150)
at ../Objects/codeobject.c:364
#2  0x005f57f7 in func_dealloc (op=0x74dc4488)
at ../Objects/funcobject.c:555
#3  0x005f531f in sm_dealloc (sm=0x74dbd8d0)
at ../Objects/funcobject.c:908
#4  0x00459acf in free_keys_object (keys=0xb462e0)
at ../Objects/dictobject.c:369
#5  PyDict_Clear (op=optimized out) at ../Objects/dictobject.c:1282
#6  0x0045c102 in PyDict_Clear (op=optimized out)
at ../Objects/dictobject.c:1260
#7  0x0047b8d8 in type_clear (type=0xb46f28) at 
../Objects/typeobject.c:3228
#8  0x0052bb3a in delete_garbage (old=optimized out, 
collectable=optimized out) at ../Modules/gcmodule.c:866
#9  collect (generation=generation@entry=2, n_collected=n_collected@entry=0x0, 
n_uncollectable=n_uncollectable@entry=0x0, nofail=nofail@entry=1)
at ../Modules/gcmodule.c:1032
#10 0x0052c651 in _PyGC_CollectNoFail () at ../Modules/gcmodule.c:1638
#11 0x004fbf1d in PyImport_Cleanup () at ../Python/import.c:540
#12 0x0050ecb9 in Py_Finalize () at ../Python/pythonrun.c:616
#13 0x0051125c in Py_Finalize () at ../Python/pythonrun.c:2795
#14 Py_Exit (sts=sts@entry=0) at ../Python/pythonrun.c:2793
#15 0x0041e409 in handle_system_exit () at ../Python/pythonrun.c:1812
#16 0x005115b4 in handle_system_exit () at ../Python/pythonrun.c:1881
#17 PyErr_PrintEx (set_sys_last_vars=optimized out) at 
../Python/pythonrun.c:1822
#18 0x005123cf in PyErr_Print () at ../Python/pythonrun.c:1718
#19 PyRun_SimpleFileExFlags (fp=0x76e65620 main_arena, 
filename=0x error: Cannot access memory at address 0x, 
closeit=1, flags=0x88d504d0) at ../Python/pythonrun.c:1611
#20 0x00422cbc in run_file (p_cf=optimized out, filename=optimized 
out, 
fp=optimized out) at ../Modules/main.c:319
#21 Py_Main (argc=-157933448, argv=0x76a24180) at ../Modules/main.c:751
#22 0x0041f06c in main (argc=2, argv=optimized out)
at ../Modules/python.c:69

--
components: Interpreter Core
messages: 243074
nosy: gnumdk
priority: normal
severity: normal
status: open
title: Python crash on exit
type: crash
versions: Python 3.4

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



[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4b5461dcd190 by Serhiy Storchaka in branch 'default':
Issue #23488: Random generator objects now consume 2x less memory on 64-bit.
https://hg.python.org/cpython/rev/4b5461dcd190

--
nosy: +python-dev

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



[issue24175] Test failure in test_utime on FreeBSD

2015-05-13 Thread koobs

New submission from koobs:

The following test failure is observable in koobs-freebsd9 and koobs-freebsd10 
buildbots, on the 3.4 and 3.x branches.

==
FAIL: test_utime (test.test_os.StatAttributeTests)
--
Traceback (most recent call last):
  File 
/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_os.py, line 
418, in test_utime
self._test_utime(self.fname, getattr, utime, 10)
  File 
/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_os.py, line 
405, in _test_utime
self.assertEqual(attr(st0, st_mtime), attr(st1, st_mtime))
AssertionError: 1431519042.77718 != 1431519042.777179

The regression was introduced recently, with the last successful build on 
koobs-freebsd10 being:

3.4: revision 69951573cb0ecd264d14648b6854c2dce3974186  
3.x: revision c031fa8e6884808667e4e5b800c4f2184d46279c

--
components: Tests
keywords: 3.4regression
messages: 243083
nosy: koobs
priority: normal
severity: normal
status: open
title: Test failure in test_utime on FreeBSD
versions: Python 3.4, Python 3.5

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



[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

An example of uncollectable loop if tp_clear is not implemented:

class A:
@property
def f(self): pass

A.f.__doc__ = (A.f,)

--
nosy: +serhiy.storchaka

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



[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

An example of uncollectable loop if tp_clear is not implemented:

class A:
@property
def f(self): pass

A.f.__doc__ = (A.f,)

--

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



[issue24172] Errors in resource.getpagesize module documentation

2015-05-13 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
stage:  - needs patch
versions:  -Python 3.2, Python 3.3, Python 3.6

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



[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
assignee: serhiy.storchaka - rhettinger
stage: patch review - commit review

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



[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

-if (dictresize(mp, Py_SIZE(seq))) {
+if (dictresize(mp, Py_SIZE(seq) / 2 * 3)) {


If Py_SIZE(seq) is 1, dictresize argument is 0.

Why not wryte the expression as Py_SIZE(seq) * 3 / 2? It never overflows, 
because Py_SIZE(seq) is the size of allocated array of pointers.

--

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



[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-13 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
resolution: duplicate - 
stage: resolved - needs patch
status: closed - open
type:  - behavior

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



[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue24032] urlparse.urljoin does not add query part

2015-05-13 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Mark Dickinson

Mark Dickinson added the comment:

From the patch:

-if (dictresize(mp, Py_SIZE(seq))) {
+if (dictresize(mp, Py_SIZE(seq) / 2 * 3)) {

Isn't there a risk of signed overflow here?  The dictresize function has an 
`assert(minused = 0)`, which is going to fail for values of `Py_SIZE(seq)` 
that are close to `PY_SSIZE_T_MAX` in the common case where signed overflow 
just wraps modulo the appropriate power of 2 (though it's undefined behaviour, 
so in theory it *could* do anything).

--
nosy: +mark.dickinson

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



[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-05-13 Thread Martin Panter

Martin Panter added the comment:

Thanks for looking at this David. I am posting utf8-null.v5.patch, which tweaks 
some of the wording.

--
Added file: http://bugs.python.org/file39357/utf8-null.v5.patch

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



[issue24172] Errors in resource.getpagesize module documentation

2015-05-13 Thread R. David Murray

R. David Murray added the comment:

Indeed, we should probably be referring people to their system's man pages for 
the authoritative definition of most of these fields.

According to the man pages project getpagesize is no longer a POSIX API, and 
that should probably be noted as well (ie: it isn't present on all systems, and 
furthermore it is isn't accurate on all systems where it is 
present...apparently older GCCs got it wrong).

--
nosy: +r.david.murray

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



[issue24175] Test failure in test_utime on FreeBSD

2015-05-13 Thread koobs

koobs added the comment:

After running the latest builds, it appears 3.x is now green, leaving 3.4 
failing

--

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



[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Mark Dickinson

Mark Dickinson added the comment:

 It never overflows, because Py_SIZE(seq) is the size of allocated array of 
 pointers.

Ah, good point.

--

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



[issue5633] fix for timeit when the statement is a string and the setup is not (and tests)

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Definitely there is a bug. The code of timeit is written to support string stmt 
and callable setup. Expected that locals available when the function is 
created, would be available when the function is executed. But this doesn't 
work. May be it worked in the earlier Python, I don't know. Due to the lack of 
tests this was unnoticed.

Here is simpler patch that fixes the support of callable setup with string stmt.

But I like Tim's approach (compile testing function using the single template), 
it makes the implementation simpler. I'll try to adapt it for current sources.

--
nosy: +serhiy.storchaka
stage:  - patch review
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 
3.3

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



[issue5633] fix for timeit when the statement is a string and the setup is not (and tests)

2015-05-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file39358/timeit_callable_setup.patch

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



[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2015-05-13 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

See issue1322

--
resolution:  - wont fix
status: open - closed

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2015-05-13 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

See issue1322 for why we're closing this.

--

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



[issue16991] Add OrderedDict written in C

2015-05-13 Thread Yury Selivanov

Yury Selivanov added the comment:

Eric, is there any chance this can land in 3.5?  OrderedDict is a heavily used 
thing, everyone will benefit from a fast implementation.  It's OK if we have an 
imperfect (but fully compatible with existing OrderedDict) implementation in 
3.5.  We can optimize it in 3.6.

--

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



[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Petr Viktorin

Petr Viktorin added the comment:

Issues #17762 and #9514 had patches to improve these functions. Time to close 
them?

--

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



[issue11145] '%o' % user-defined instance

2015-05-13 Thread Ethan Furman

Ethan Furman added the comment:

Armin indicated in his last comment that the patch still has multiple issues.

Are there tests to catch the issues he previously found?  That seems the best 
method to verify that the current (and future) patches don't break 2.7.

--

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



[issue24176] Incorrect parsing of unpacked expressions in call

2015-05-13 Thread Thomas Caswell

New submission from Thomas Caswell:

On the current tip (changeset: 96023:4b5461dcd190) the following results in a 
syntax error

def test(a='a', b='b'):
print(a, b)

opta = dict()
optb = dict(a=1, b=2)
test(**(opta or {}))  # - works on all python
test(**optb or {})# - fails on current hg tip


This is suspected to be a result of 
https://hg.python.org/cpython/rev/a65f685ba8c0 

This was reported as an issue against sphinx 
(https://github.com/sphinx-doc/sphinx/pull/1889) and I was redirected here.

As suggested by Robert Lehmann suggests the issue is 
https://hg.python.org/cpython/rev/a65f685ba8c0#l1.33 which should be `** test`. 
 Making this change prevents the syntax error (patch attached).

--
components: Interpreter Core
files: unpack_grammar.patch
keywords: patch
messages: 243087
nosy: tcaswell
priority: normal
severity: normal
status: open
title: Incorrect parsing of unpacked expressions in call
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file39359/unpack_grammar.patch

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2015-05-13 Thread Petr Viktorin

Petr Viktorin added the comment:

The functions have been deprecated in #1322, is it time to close this?

--

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



[issue5633] fix for timeit when the statement is a string and the setup is not (and tests)

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is more complicated patch, that not only fixes handling of callable setup, 
but also simplifies the implementation of timeit constructor.

--
Added file: 
http://bugs.python.org/file39360/timeit_callable_setup_refactor.patch

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2015-05-13 Thread Marc-Andre Lemburg

Changes by Marc-Andre Lemburg m...@egenix.com:


--
resolution:  - wont fix
status: open - closed

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



[issue24176] Incorrect parsing of unpacked expressions in call

2015-05-13 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
nosy: +benjamin.peterson, yselivanov

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



[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 13.05.2015 16:18, Petr Viktorin wrote:
 
 Issues #17762 and #9514 had patches to improve these functions. Time to close 
 them?

Yes. I just did. Thanks for the reminder.

--

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



[issue23699] Add a macro to ease writing rich comparisons

2015-05-13 Thread Petr Viktorin

Petr Viktorin added the comment:

From the discussion on the list:

- It needs to be a macro, not function, to support various types (unsigned long 
long, float; possibly C++ stuff with overriden operators)

- Another suggestion to change the order of arguments; I still think being the 
same as richcmp and PyObject_RichCompareBool is best.

I believe all the issues raised here and on the list are handled. Could anyone 
re-review the patch?
If the usage changes are too much, it's possible to only change 
Include/object.h and Doc/c-api/typeobj.rst, and leave the rest. Should I trim 
the patch that way?

Anything else I can do to help this get merged?

--

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



[issue24179] asyncio: support 'async for' for StreamReader

2015-05-13 Thread Yury Selivanov

Yury Selivanov added the comment:

Guido, thanks for review. Closing the issue.

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

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



[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov

Yury Selivanov added the comment:

Guido, thanks for review. Closing the issue.

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

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



[issue22555] Tracking issue for adjustments to binary/text boundary handling

2015-05-13 Thread Drekin

Changes by Drekin dre...@gmail.com:


--
nosy: +Drekin

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



[issue24186] OpenSSL causes buffer overrun exception

2015-05-13 Thread Steve Dower

New submission from Steve Dower:

There is an issue where an optimised OpenSSL function causes a buffer overrun 
in 64-bit Windows builds and terminates the process (this is why the buildbots 
aren't getting very far right now).

I suspect it may be a compiler issue, but for now I'm disabling the optimised 
function. This issue is a reminder to myself to re-enable the function when we 
have a fix. I'll follow up with the compiler team and possibly the OpenSSL team 
separately.

--
assignee: steve.dower
components: Windows
messages: 243151
nosy: steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: OpenSSL causes buffer overrun exception
type: crash
versions: Python 3.5

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



[issue24186] OpenSSL causes buffer overrun exception

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 25d78aa1ec21 by Steve Dower in branch 'default':
Issue #24186: Disable optimised OpenSSL functions on 64-bit Windows to avoid 
crashing.
https://hg.python.org/cpython/rev/25d78aa1ec21

--
nosy: +python-dev

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



[issue23699] Add a macro to ease writing rich comparisons

2015-05-13 Thread Petr Viktorin

Petr Viktorin added the comment:

Is it really not better to give the operation a name, rather than repeating the 
same ten lines every time? (Well, not the same -- all the modules code it a bit 
differently, but with the same meaning.)

I might be true that the types in Python itself are done, but this is 
intended as part of the C API. There are still modules unported to Python 3, 
for which *now* is the beginning.

--

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



[issue10977] Concrete object C API considered harmful to subclasses of builtin typesje

2015-05-13 Thread ppperry

Changes by ppperry maprea...@olum.org:


--
title: Concrete obect C API considered harmful to subclasses of builtin typesje 
- Concrete object C API considered harmful to subclasses of builtin typesje

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



[issue10977] Concrete obect C API considered harmful to subclasses of builtin typesje

2015-05-13 Thread ppperry

Changes by ppperry maprea...@olum.org:


--
title: Concrete object C API considered harmful to subclasses of builtin types 
- Concrete obect C API considered harmful to subclasses of builtin typesje

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



[issue24180] PEP 492: Documentation

2015-05-13 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
nosy: asvetlov, gvanrossum, haypo, ncoghlan, yselivanov
priority: deferred blocker
severity: normal
stage: needs patch
status: open
title: PEP 492: Documentation
type: enhancement
versions: Python 3.5

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Yury Selivanov

Yury Selivanov added the comment:

Closing the issue.  I'll open a new one for missing documentation.  Thanks!

--
components: +Interpreter Core
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
dependencies: +PEP 492: Documentation

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



[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2015-05-13 Thread ppperry

Changes by ppperry maprea...@olum.org:


--
title: Concrete object C API considered harmful to subclasses of builtin 
typesje - Concrete object C API considered harmful to subclasses of builtin 
types

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0d80d46adfdb by Yury Selivanov in branch 'default':
Issue 24017: More tests for 'async for' and 'async with'.
https://hg.python.org/cpython/rev/0d80d46adfdb

--

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Guido van Rossum

Guido van Rossum added the comment:

BTW, a shout out to Nick for doing most of the review for this monster patch. 
Thanks!

--

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



[issue23699] Add a macro to ease writing rich comparisons

2015-05-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'm -1 on this whole concept and I don't believe that it will make porting 
easier.  It takes longer to learn the macro, see what it does, write tests for 
it, etc than it takes to model ten lines of boilerplate code.

The macros make it harder for me and others to understand and maintain the 
code.  In this regard, Python has been getting worse (harder for new 
maintainers to look at code and know what it is doing).   Saving ten lines of 
clear code isn't a good motivation for going down this path.   C macros are 
infamous for a reason.

--

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



[issue16991] Add OrderedDict written in C

2015-05-13 Thread Eric Snow

Eric Snow added the comment:

@Yury, I'm mostly just waiting for Raymond to give it at least a quick 
sanity-check.  I know there is at least 1 ref leak, but that can be sorted out.

--

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



[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

In console: pcbuild/win32/python_d.exe -m test -j6
...
[393/395/1] test_fileio
Traceback (most recent call last):
  File F:\Python\dev\35\lib\runpy.py, line 170, in _run_module_as_main
__main__, mod_spec)
  File F:\Python\dev\35\lib\runpy.py, line 85, in _run_code
exec(code, run_globals)
  File F:\Python\dev\35\lib\test\__main__.py, line 3, in module
regrtest.main_in_temp_cwd()
  File F:\Python\dev\35\lib\test\regrtest.py, line 1564, in main_in_temp_cwd
main()
  File F:\Python\dev\35\lib\test\regrtest.py, line 738, in main
raise Exception(Child error on {}: {}.format(test, result[1]))
Exception: Child error on test_fileio: Exit code 2147483651

In crash box: Debug assertion failed
/dd/vctools/crt_bld/self_x86/crt/src/chsize.c
line 56  _osfile(desfile)  FOPEN

By leaving box alone, all but about 4 tests finished.  When clicked on button, 
fileio message appeared. On previous run, click as soon as box appeared, and 
console window frooze much sooner, with just half of tests run.

There were also 'Python_d.exe has stopped working' messages, but same true with 
3.4 tests, which finished.

--
components: Tests, Windows
messages: 243122
nosy: steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: test_fileio crash, 3.5, Win 7
type: behavior
versions: Python 3.5

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



[issue16991] Add OrderedDict written in C

2015-05-13 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
priority: normal - release blocker

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



[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread R. David Murray

R. David Murray added the comment:

ABCMeta does not support arbitrary keyword arguments, that is correct.  If you 
want keyword arguments to be handled, you need to write your own metaclass that 
does so.

(I'm pretty sure I'm reading the PEP correctly...if not I'm sure one of the 
other core devs will re-open this ;)

--
nosy: +r.david.murray
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Zachary Ware

Zachary Ware added the comment:

Which version of MSVC are you using?

--

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



[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

Win 7, fresh build, only on 2.7
  File F:\Python\dev\27\lib\test\test_tcl.py, line 225, in 
test_evalfile_null_in_result
self.assertEqual(tcl.eval('set a'), 'a\xc0\x80b')
Fails

--
messages: 243125
nosy: serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: test_tcl assertion failure, 2.7, Win 7
type: behavior
versions: Python 2.7

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



[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Zachary Ware

Zachary Ware added the comment:

That may be the problem; it may be time for you to upgrade to VS 2015,
which is now in RC.  As recently as this morning, I've had a clean test run
with 2015 Community Edition on Windows 8.1.

--

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



[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What is error message?

--

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



[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread Timothy Cardenas

New submission from Timothy Cardenas:

Summary:
Any class that derives from the ABCMeta class doesn't support keyword variable 
arguments as defined here :https://www.python.org/dev/peps/pep-3115/. 


Expected:
If i define a simple class that derives from ABCMeta that has a kwarg the class 
should be created (see below

from collections import UserDict
class MyDict(UserDict, bar='baz'):
pass
dictionary = MyDict()  # Expect this to create a new instance of MyDict.


Actual:

from collections import UserDict
class MyDict(UserDict, bar='baz'):
pass
dictionary = MyDict()  # This call fails because UserDict inherits from ABCMeta

Traceback (most recent call last):
  File abc_meta.py, line 4, in module
class MyDict(UserDict, bar='baz'):

--
components: Library (Lib)
files: abc_meta.py
messages: 243130
nosy: trcarden
priority: normal
severity: normal
status: open
title: ABCMeta classes do not support the **kwargs standard class interface
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file39364/abc_meta.py

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



[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-13 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file39365/fix_list_to_tuple.diff

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



[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-13 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
keywords: +easy -patch
priority: normal - high
versions: +Python 3.5

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



[issue16991] Add OrderedDict written in C

2015-05-13 Thread Yury Selivanov

Yury Selivanov added the comment:

@Eric, can you set priority to release blocker?

--

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



[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The same '2010' used for 3.4.

--

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



[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Steve Dower

Steve Dower added the comment:

It's entirely possible that I missed a _PyVerify_fd call around the ftruncate 
implementation, since that function is now a no-op for VS 2015 builds. The only 
reason I didn't remove them all when adding the new handling for was because 
there was no trustworthy version of VC14 around then (it was still Preview).

VS 2015 RC is trustworthy, so it is time to upgrade, but I'm still not quite 
ready to aggressively break everyone who hasn't. Maybe we should?

--

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



[issue23995] msvcrt could not be imported

2015-05-13 Thread Kain

Kain added the comment:

Had the same problem but was able to fix this by rewriting the win_getpass 
method in getpass.py:

def win_getpass(prompt='Password: ', stream=None):
Prompt for password with echo off, using Windows getch().
if sys.stdin is not sys.__stdin__:
return fallback_getpass(prompt, stream)
import msvcrt
for c in prompt:
msvcrt.putch(c.encode('utf-8'))
pw = 
while 1:
c = msvcrt.getch()
if c == '\r'.encode('utf-8') or c == '\n'.encode('utf-8'):
break
if c == '\003'.encode('utf-8'):
raise KeyboardInterrupt
if c == '\b'.encode('utf-8'):
pw = pw[:-1]
else:
pw = pw + c.decode('utf-8')
msvcrt.putch('\r'.encode('utf-8'))
msvcrt.putch('\n'.encode('utf-8'))
return pw

--
nosy: +Kain

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



[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov

New submission from Yury Selivanov:

The attached patch makes Locks, Conditions, Semaphores, and BoundedSemaphores 
support new 'async with' syntax.

Because the patch contains a file that will only be checked in to the CPython 
repo (test_pep492.py), I decided to create the issue on bugs.python.org instead 
of asyncio GH repo.

Please review.

--
assignee: yselivanov
components: asyncio
files: alock.patch
keywords: patch
messages: 243102
nosy: asvetlov, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
stage: patch review
status: open
title: asyncio: support 'async with' for locks
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file39361/alock.patch

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



[issue23995] msvcrt could not be imported

2015-05-13 Thread R. David Murray

R. David Murray added the comment:

I'm setting this to release blocker because it sounds like a simple fix and I 
don't think we should release with these basic windows functions missing.  If 
you (Steve) don't think it is important for the beta you could set it to 
deferred blocker.

--
priority: normal - release blocker

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



[issue24177] Add https?_proxy support to http.client

2015-05-13 Thread Demian Brecht

New submission from Demian Brecht:

http_proxy and https_proxy are common environment variables used cross 
platform. Currently, urllib.request has support for it, but http.client does 
not. It probably should.

If support is added to http.client, the handling of proxy environment variables 
in urllib.request should be factored out and made to be reliant on the changes 
in http.client (which shouldn't require any new code, only removal).

Given the common usage of the environment variables (as observed by other 
utilities such as wget and curl), it seems odd to require a user to know about 
and use the higher level urllib.request API rather than have support for it 
baked into the lower level http.client API.

--
components: Library (Lib)
messages: 243101
nosy: demian.brecht, orsenthil, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: Add https?_proxy support to http.client
type: enhancement
versions: Python 3.6

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



[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 68d653f9a2c9 by Andrew Kuchling in branch '2.7':
#19934: fix mangled wording
https://hg.python.org/cpython/rev/68d653f9a2c9

--

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



[issue1683368] object.__init__ shouldn't allow args/kwds

2015-05-13 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - resolved
type:  - behavior

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



[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-05-13 Thread R. David Murray

R. David Murray added the comment:

Oh, I just realized I committed this without checking how it rendered...

--

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



[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-05-13 Thread R. David Murray

R. David Murray added the comment:

OK, I didn't see anything obvious at least :)

Thanks, Martin.

--
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue22027] RFC 6531 (SMTPUTF8) support in smtplib

2015-05-13 Thread R. David Murray

R. David Murray added the comment:

Coming back to this, I noticed a number of things wrong with the logic that I'm 
not sure how I missed before.  I had to rewrite pretty much all of the logic.  
The good news is the patch is now smaller :)

The new tests are failing, because they are wrong: the msg argument to 
sendmail/mail *must* be a byte string if smtputf8 is in effect, since an email 
message may contain multiple encodings as well as other binary data.  (Well, 
the msg argument could be an ascii string, but what would be the point?)

I'm uploading this without fixing the tests because I'm out of time for now and 
may not get back to it before the weekend.  Perhaps someone else will have time 
to work on the tests before then.

--
nosy: +maciej.szulik
Added file: http://bugs.python.org/file39368/smtplib_smtputf8v4.patch

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



[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-05-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 99d2f83290c0 by R David Murray in branch '3.4':
#23088: Clarify null termination of bytes and strings in C API.
https://hg.python.org/cpython/rev/99d2f83290c0

New changeset 863f7c57081b by R David Murray in branch 'default':
Merge: #23088: Clarify null termination of bytes and strings in C API.
https://hg.python.org/cpython/rev/863f7c57081b

--
nosy: +python-dev

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



[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread Timothy Cardenas

Timothy Cardenas added the comment:

Hmm Ok. You are right i can do the following:

from collections import UserDict
from abc import ABCMeta


class MetaMyDict(ABCMeta):

@classmethod
def __prepare__(cls, name, bases, **kwargs):
return {}

def __new__(mcls, name, bases, namespace, **kwds):
return super().__new__(mcls, name, bases, namespace)

def __init__(cls, name, bases, namespace, **kargs):
return super().__init__(name, bases, namespace)

class MyDict(UserDict, metaclass=MetaMyDict, bar='baz'):
pass

dictionary = MyDict()

But I guess i would have expected a core lib library to be consistent with the 
data model 
https://docs.python.org/3.4/reference/datamodel.html#preparing-the-class-namespace.
 As it stands an end user can't get a subclass of ABCMeta to work with the same 
**kwargs interface without creating a custom metaclass that strips it out 
before passing to ABCMeta. 

Wouldn't it be much easier and technically correct for the core ABCMeta library 
to adopt the same interface contract for class creation introduced in python3?

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

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



[issue22931] cookies with square brackets in value

2015-05-13 Thread R. David Murray

R. David Murray added the comment:

This needs a review from the people who created and applied the security patch. 
 Demian, did you add them to nosy already?

Since this is a regression I'm going to mark it as a release blocker so 
Benjamin can decide whether or not it is important enough to go in to 2.7.10 
even though the RC is already out.

--
nosy: +benjamin.peterson, georg.brandl, larry
priority: normal - release blocker
versions: +Python 3.3

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



[issue24157] test_urandom_fd_reopened failure on Mac OS X

2015-05-13 Thread Skip Montanaro

Skip Montanaro added the comment:

Sorry for the delay. With LANG=C I get this extra bit of output:

'this test triggers the Crash Reporter, that is intentional\x80TbG=\x0f\x19t'

With LANG=en_US.UTF-8 (the encoding of my Terminal instance), I get this:

'this test triggers the Crash Reporter, that is 
intentional\xf6\xcd\x7f\xf1O\x91\t\xac'

--

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



[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread Yury Selivanov

Yury Selivanov added the comment:

 Wouldn't it be much easier and technically correct for the core ABCMeta 
 library to adopt the same interface contract for class creation introduced in 
 python3?

No, it would not be technically correct.  For the same reason, object.__init__ 
does not accept any parameters.

--
nosy: +yselivanov
resolution: remind - not a bug
status: open - closed

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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-05-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The PyShell patch does two things that I want to consider separately, and 
carefully, along with other possible solutions to the perceived problems.

1. Go to end-of-file when entering a letter or number in a read-only text area. 
In msg110889 Tal says Note that not only letter/number keys should be passed 
on. I see the point, but expanding the set seems to me a complication and a 
move in the wrong direction.  Doing nothing, or maybe beeping, is a normal 
response to entry in a read-only area. Regardless of what I wrote before, I am 
not completely comfortable with adding magical behavior.

The fixed key-binding for goto-file-end is cntl-end (command-end). I propose 
adding tab as a synonym. Currently, it sometimes opens a completion box even 
in read-only areas, where it is useless and annoying. This should be changed 
anyway, and having it cause the cursor to jump to me seems to fit with its 
indent behavior.

2. Make up and down do double duty to both traverse statements in the 
history and lines within the current statement.  However, the complicated rules 
to juggle two roles, in msg68299, make my head hurt. I would rather use Shift-, 
cntl-, or alt- up/down instead.

The fundamental issue, touched on by Cherniavsky Beni in msg67706, is that 
Python is not a command-line language. It is a statement language. It does not 
fit well in a command-line terminal where history consists of lines rather than 
statements. PyShell is a statement terminal designed to fit Python, not a line 
terminal.

I appreciate this *much* better than 7 years ago.  When I wrote msg66119, I 
probably was not aware of being able to retrieve statements with Alt-P.

--
stage: patch review - needs patch
versions: +Python 3.5 -Python 3.3

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



[issue23995] msvcrt could not be imported

2015-05-13 Thread Steve Dower

Steve Dower added the comment:

I'll just remove the ifdefs. We don't support any Windows versions that don't 
have these functions.

--
assignee:  - steve.dower

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



[issue24184] PEP 492: Add AsyncIterator and AsyncIterable to collections.abc

2015-05-13 Thread Yury Selivanov

New submission from Yury Selivanov:

The attached patch adds AsyncIterator  AsyncIterable to collections.abc module.

--
assignee: yselivanov
components: Library (Lib)
files: async_abc.patch
keywords: patch
messages: 243148
nosy: asvetlov, gvanrossum, haypo, ncoghlan, yselivanov
priority: normal
severity: normal
stage: patch review
status: open
title: PEP 492: Add AsyncIterator and AsyncIterable to collections.abc
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file39369/async_abc.patch

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



  1   2   >