[issue23793] Support __add__, __mul__, and __imul__ for deques.

2015-03-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also incorporate __mul__ and __imul__. >>> d = deque('abc') >>> d * 3 deque(['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']) >>> d *= 2 >>> d deque(['a', 'b', 'c', 'a', 'b', 'c']) -- keywords: +needs review -patch title: Support

[issue23729] Import ElementTree documentation for namespaces and XPath

2015-03-29 Thread Martin Panter
Martin Panter added the comment: Reopening because I think there are some review comments that need addressing, at least the fromstring() one. I’m happy to make a patch if necessary. -- status: closed -> open ___ Python tracker

[issue23755] tempfile.NamedTemporaryFile should be able to toggle "delete"

2015-03-29 Thread Martin Panter
Martin Panter added the comment: I think I have often passed delete=False because of the documented deficiency with Windows (see Issue 14243). Depending on the outcome of that issue, allowing for deletion after close() might be useful too. BTW, monkey-patching __del__() probably won’t work if

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be rename _PyTime_AsTimeval_impl() to _PyTime_AsTimeval_noraise() and check a result to raise an exception in _PyTime_AsTimeval()? -- nosy: +serhiy.storchaka ___ Python tracker

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The second (exception == NULL) check in _Py_PrintFatalError() looks suspicious. When it is possible? And if it is possible, can it cause leaks? -- ___ Python tracker ___

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-29 Thread STINNER Victor
STINNER Victor added the comment: > > Serhiy Storchaka added the comment: > > May be rename _PyTime_AsTimeval_impl() to _PyTime_AsTimeval_noraise() and > check a result to raise an exception in _PyTime_AsTimeval()? > Ah yes correct, can you modify directly the code please? -- _

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb96fd376baa by Serhiy Storchaka in branch 'default': Issue #23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on https://hg.python.org/cpython/rev/cb96fd376baa -- nosy: +python-dev ___ Py

[issue23171] csv.writer.writerow() does not accept generator (must be coerced to list)

2015-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf5b62036445 by Serhiy Storchaka in branch 'default': Issue #23171: csv.Writer.writerow() now supports arbitrary iterables. https://hg.python.org/cpython/rev/cf5b62036445 -- nosy: +python-dev ___ Python t

[issue14904] test_unicode_repr_oflw (in test_bigmem) crashes

2015-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5bea08f80e62 by Serhiy Storchaka in branch '2.7': Issue #14904: Made test_unicode_repr_oflw to use less memory. https://hg.python.org/cpython/rev/5bea08f80e62 -- ___ Python tracker

<    1   2