[issue23783] Leak in PyObject_ClearWeakRefs

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74d766d819a6 by Serhiy Storchaka in branch '3.4': Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of https://hg.python.org/cpython/rev/74d766d819a6 New changeset 6a4b83c56b86 by Serhiy Storchaka in branch 'default': Issue #23783:

[issue23785] Leak in TextIOWrapper.tell()

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 442ebebad516 by Serhiy Storchaka in branch '3.4': Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances. https://hg.python.org/cpython/rev/442ebebad516 New changeset 2fcd99929dba by Serhiy Storchaka in branch 'default': Issue

[issue23781] Add private _PyErr_ReplaceException() in 2.7

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c76a1a42799c by Serhiy Storchaka in branch '2.7': Issue #23781: Add private helper function _PyErr_ReplaceException() that https://hg.python.org/cpython/rev/c76a1a42799c -- nosy: +python-dev ___ Python tr

[issue23783] Leak in PyObject_ClearWeakRefs

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23785] Leak in TextIOWrapper.tell()

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23781] Add private _PyErr_ReplaceException() in 2.7

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23799] Join started threads in tests

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti, haypo, michael.foord, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14904] test_unicode_repr_oflw (in test_bigmem) crashes

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

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

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22390] test.regrtest should complain if a test doesn't remove temporary files

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for fixing backported patch and tests Victor. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue23500] Argument Clinic: multiple macro definition

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please commit your patch (may be with changes) Larry? -- ___ Python tracker ___ ___ Pyth

[issue23752] Cleanup io.FileIO

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Hum, _Py_fstat() is not used correctly in _io.FilIO: it uses errno instead of GetLastError() to raise the OSError. It's too hard to use the new _Py_fstat() function directly, I modified it to raise directly the exception. So the caller doesn't have to use #ifd

[issue23752] Cleanup io.FileIO

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 128f92ae8bae by Victor Stinner in branch 'default': Issue #23752: _Py_fstat() is now responsible to raise the Python exception https://hg.python.org/cpython/rev/128f92ae8bae -- ___ Python tracker

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Hum, conversion from Python float to _PyTime_t is not rounded as expected on x86 Ubuntu Shared 3.x. Example: http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/11426/steps/test/logs/stdio

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e00b581a65ec by Victor Stinner in branch 'default': Issue #22117: Try to fix rounding in conversion from Python double to _PyTime_t https://hg.python.org/cpython/rev/e00b581a65ec -- ___ Python tracker

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

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: 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? Sorry, I have no idea. I didn't write this code myself. It comes from PyErr_P

[issue22390] test.regrtest should complain if a test doesn't remove temporary files

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > Thank you for fixing backported patch and tests Victor. No problem, thanks for your enhancement of regrtest ;-) I proposed the idea and you implemented it, great team work! -- __

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2015-03-30 Thread Michael Foord
Michael Foord added the comment: The change to unittest is fine. I'd prefer the tests tweaking as Ezio suggested. -- ___ Python tracker ___ __

[issue23799] Join started threads in tests

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: > In this case all started threads left dangling and make MemotyError even more > probably Oh, I didn't know that. Good catch. test_support_start_threads.patch looks good to me and it looks like a nice enhancement. But would it be possible to emit a warning

[issue22585] os.urandom() should use getentropy() of OpenBSD 5.6

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d3013a383eb by Victor Stinner in branch '3.4': Issue #22585: os.urandom() now releases the GIL when the getentropy() is used https://hg.python.org/cpython/rev/9d3013a383eb New changeset 7f1015e4277a by Victor Stinner in branch 'default': (Merge 3.4

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28b465d8c519 by Victor Stinner in branch 'default': Issue #22181: os.urandom() now releases the GIL when the getrandom() https://hg.python.org/cpython/rev/28b465d8c519 -- ___ Python tracker

[issue23115] Backport #22585 -- getentropy for urandom to Python 2.7

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05b96af72805 by Victor Stinner in branch '2.7': Issue #23115: os.urandom() now releases the GIL when the getentropy() is used https://hg.python.org/cpython/rev/05b96af72805 -- ___ Python tracker

[issue23752] Cleanup io.FileIO

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: The changeset 128f92ae8bae also changed _Py_fstat() to release the GIL when calling fstat(), I forgot to mention it in the changeset. test_socket now hangs on AMD64 Snow Leop 3.x, I don't know yet if it's related: http://buildbot.python.org/all/builders/AMD64%

[issue23752] Cleanup io.FileIO

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Oh, there was another hang before, so it's probably not related: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/2852/steps/test/logs/stdio [393/393] test_ssl Timeout (1:00:00)! Thread 0x000102d81000 (most recent call first): File

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_time now pass on "x86 Ubuntu Shared 3.x". It looks like the volatile keyword was enough to fix rounding issues, cool :-) -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ad3d8d82b18 by Victor Stinner in branch 'default': Issue #23605: Fix typo in an os.walk() comment https://hg.python.org/cpython/rev/1ad3d8d82b18 -- ___ Python tracker

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that adds Decimal support for datetime.fromtimestamp() and datetime.utcfromtimestamp(). As side effect Decimal timestamps now are supported in few other places, e.g. in os.utime(). -- nosy: +haypo stage: needs patch -> patch review Ad

[issue23796] BufferedReader.peek() crashes if closed

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: I confirm the bug on Python 3.5.0a3+. Is someone interested to fix buffered_peek() to add a check on the closed state? -- nosy: +haypo Added file: http://bugs.python.org/file38735/bug.py ___ Python tracker

[issue23602] Implement __format__ for Fraction

2015-03-30 Thread Stefan Krah
Stefan Krah added the comment: Regarding Decimal: 1) The context precision isn't used for formatting. If you have another reason for proposing the optional context argument for dec_format(), please open another issue. 2) There's another problem: The mythical DefaultContext (which

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: I reviewed datetime_fromtimestamp_decimal.patch. > As side effect Decimal timestamps now are supported in few other places, e.g. > in os.utime(). It would be more consistent to support decimal.Decimal nowhere or "everywhere". IMO the new _PyTime_FromSecondsOb

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-30 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23500] Argument Clinic: multiple macro definition

2015-03-30 Thread Larry Hastings
Larry Hastings added the comment: I want to redo it--it's smelly. I hope to get it done this week. -- ___ Python tracker ___ ___ Pyth

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-30 Thread Stefan Krah
Stefan Krah added the comment: I just looked at this very briefly: Is the patch context insensitive? IOW, do things still work if you change the thread-local context: from decimal import * c = getcontext() c.prec = 1 c.Emax = 1 c.Emin = -1 -- nosy: +skrah _

[issue23811] Python py_compile error message inconsistent and missing newline

2015-03-30 Thread Akshet Pandey
New submission from Akshet Pandey: On the following test file (test.py): ```python class Solution: def repeatedNumber(self, A): test = 1 return [] ``` Running python -m py_compile test.py return the following error message: Sorry: IndentationError: unexpected indent (test.py, line 6

[issue22341] Python 3 crc32 documentation clarifications

2015-03-30 Thread Martin Panter
Martin Panter added the comment: Patch v3: * Reverted to original crc32(b"hello") example call with the implicit initial CRC * Added “Changed in version 3.0” notices, restoring a brief version of the suggestion to use the bit mask, along with an explanation. Python 2 compatibility information

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-30 Thread Ben Hoyt
Ben Hoyt added the comment: Thanks for the explanation (and the comment fix). > What's your point about complexity? Would you like to drop os.scandir > changes in os.walk(), or do you have a simpler version to propose? No, not at all! I was just noting it and trying to brainstorm any ways to s

[issue23799] Join started threads in tests

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Something like this? -- Added file: http://bugs.python.org/file38738/test_support_start_threads_2.patch ___ Python tracker ___ ___

[issue22341] Python 3 crc32 documentation clarifications

2015-03-30 Thread Martin Panter
Martin Panter added the comment: V4 fixes a merge conflict with recent gzip changes. -- Added file: http://bugs.python.org/file38739/crc-sign.v4.patch ___ Python tracker ___

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Ben: do you think that we are done with this issue? can I close it? -- ___ Python tracker ___ ___ Py

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your great work Ben! I close the issue. The PEP 471 has already the Final status. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-30 Thread Ben Hoyt
Ben Hoyt added the comment: Yep, I'm good -- go ahead and close! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue2211] Cookie.Morsel interface needs update

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Did you noticed my comments on Rietveld about setdefault() and the :meth: role? -- assignee: serhiy.storchaka -> r.david.murray ___ Python tracker

[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-03-30 Thread Brett Cannon
Brett Cannon added the comment: Probably need to introduce a new keyword argument just for deprecated imports or some helper function in importlib to get the stack depth right (else there is a risk of breaking the stack depth in any minor release whenever importlib's depth shifts). Something l

[issue23807] Improved test coverage for calendar.py command line

2015-03-30 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that the Decimal *was* supported in 2.7. So this issue can be considered not as adding new feature, but as fixing a regression. But changes are too large for just bugfix. > It would be more consistent to support decimal.Decimal nowhere or > "

[issue23807] Improved test coverage for calendar.py command line

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, self.assertFailure('-L', 'en') tests this case. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Similar feature is needed for warnings in the re module. Methods of regular expression pattern can be called directly or from module-level wrappers. In these case the stack level differs by 1. And sometimes warnings are emitted in recursive parser, when stac

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2015-03-30 Thread Paul Moore
Changes by Paul Moore : -- nosy: +paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-03-30 Thread Gustavo J. A. M. Carneiro
New submission from Gustavo J. A. M. Carneiro: I have a pattern where I read from a queue with a timeout, generally like this: while True: reader = asyncio.async(wait_for(queue.get(), 0.1)) try: item = (yield from reader) except asyncio.TimeoutError: reader.cancel() continue T

[issue23792] help crash leaves terminal in raw mode

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a5f30babc72 by R David Murray in branch '3.4': #23792: also catch interrupt around pipe.write. https://hg.python.org/cpython/rev/7a5f30babc72 New changeset 536c4f4acae1 by R David Murray in branch 'default': Merge: #23792: also catch interrupt arou

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-03-30 Thread Gustavo J. A. M. Carneiro
Changes by Gustavo J. A. M. Carneiro : Added file: http://bugs.python.org/file38741/Issue23812.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-30 Thread Stefan Krah
Stefan Krah added the comment: I think we should try to avoid depending on global state in the stdlib, at least in new code. Also, if something is not really a decimal computation, Decimal itself tries to ignore the context (like Decimal.__repr__). At least I would expect this datetime function

[issue23792] help crash leaves terminal in raw mode

2015-03-30 Thread R. David Murray
R. David Murray added the comment: Yeah, someone could theoretically manage to hit ctl-c between the time the process is started and the call to pipe.write, or between it and the call to wait, but I don't think those very-low-probability events are worth worrying about. -- __

[issue2211] Cookie.Morsel interface needs update

2015-03-30 Thread R. David Murray
R. David Murray added the comment: No, sorry, I currently don't always notice reviews unless they are mentioned on the tracker. I will take a look. -- ___ Python tracker ___ ___

[issue23729] Import ElementTree documentation for namespaces and XPath

2015-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file38742/namespace_doc_fixes.diff ___ Python tracker ___ ___ Python-bugs-li

[issue2211] Cookie.Morsel interface needs update

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset a70ca6f35327 by R David Murray in branch 'default': #2211: Fix typo, address missed review comment. https://hg.python.org/cpython/rev/a70ca6f35327 -- ___ Python tracker

[issue2211] Cookie.Morsel interface needs update

2015-03-30 Thread R. David Murray
R. David Murray added the comment: Serhiy: I had already dealt with all the comments in my revisions in one way or another, except for the one about setdefault. I've added documentation for that now, too. Sorry for not posting everything for review first...if you see anything you object to i

[issue23811] Python py_compile error message inconsistent and missing newline

2015-03-30 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23811] Python py_compile error message inconsistent and missing newline

2015-03-30 Thread R. David Murray
R. David Murray added the comment: I can confirm that the bugs is demonstrated by copying the text below into a normal unix text file. -- keywords: +easy nosy: +r.david.murray stage: -> needs patch type: enhancement -> behavior versions: +Python 3.5 ___

[issue23640] Enum.from_bytes() is broken

2015-03-30 Thread Ethan Furman
Ethan Furman added the comment: 'from_bytes' is a classmethod. As such, it should return the same type as the class it is called on. If that wasn't the intent it would be a staticmethod instead. It is the responsibility of the subclass to override base class behavior, not the other way arou

[issue23326] Remove redundant __ne__ implementations

2015-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: I'm a little surprised you didn't get pushback from asyncio (i.e. Victor). We try to keep the source identical across releases while asyncio is in provisional mode (i.e. until 3.5 is released). -- nosy: +gvanrossum, haypo ___

[issue22329] Windows installer can't recover partially installed state

2015-03-30 Thread J. Walter Clark
J. Walter Clark added the comment: I had the same issue using Python 3.4.2 x64 on Windows 7 x64 and resolved it by setting PYTHONHOME and PYTHONPATH environmental variables. -- nosy: +jwalterclark ___ Python tracker

[issue23640] Enum.from_bytes() is broken

2015-03-30 Thread Bruno Cauet
Bruno Cauet added the comment: I'm not sure how you can have both, those two seem opposite to me: - if 'from_bytes' returns the same type as the class it is called on then the instantiation of the result object should go through its constructor (patch proposed) - if the subclass should override b

[issue2211] Cookie.Morsel interface needs update

2015-03-30 Thread Demian Brecht
Demian Brecht added the comment: Thanks for following up on this David. The changes you've made all look good to me. -- ___ Python tracker ___ ___

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: Looks like a valid bug report, I like the test you provided, and the fix seems on the right track. Comments on the fix: - I'd really like to see a rietveld diff for both patches. - Are there other places where a cancellation can have a similar effect? Maybe

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-03-30 Thread Gustavo J. A. M. Carneiro
Gustavo J. A. M. Carneiro added the comment: I created a codereview issue: https://codereview.appspot.com/222930043 -- ___ Python tracker ___

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-03-30 Thread Gustavo J. A. M. Carneiro
Gustavo J. A. M. Carneiro added the comment: > - Are there other places where a cancellation can have a similar effect? > Maybe the same logic in put()? Hm.. I didn't look, but yes, it does look like it might be affected by the same issue. I'll try to create a test for that to confirm. > how

[issue23326] Remove redundant __ne__ implementations

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should I restore __ne__ in asyncio? The version without __ne__ will work with Python 3.4.3 because issue21408 patch was committed in 3.4 too. Explicit __ne__ implementation is just redundant. -- ___ Python tracker

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: Make sense. I'll be waiting for your updated patch. Thanks for both the bug report and the fix! -- ___ Python tracker ___ ___

[issue23326] Remove redundant __ne__ implementations

2015-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I'd like to see it restored in asyncio. It seems to be just one file that's currently out of sync with the tulip "upstream" repo. On Mon, Mar 30, 2015 at 10:38 AM, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Should I restore __n

[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-03-30 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue6650] sre_parse contains a confusing generic error message

2015-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Current (after issue22364) error message is: >>> re.match('(?.*)', 'foo') Traceback (most recent call last): ... sre_constants.error: unknown extension ? ___ ___

[issue23813] RSS and Atom feeds of buildbot results are broken

2015-03-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There are links to Atom and RSS feeds on https://www.python.org/dev/buildbot/: http://buildbot.python.org/all/rss http://buildbot.python.org/all/atom Both referred pages are broken. web.Server Traceback (most recent call last): exceptions.UnicodeDecodeErro

[issue23814] argparse: Parser level defaults do not always override argument level defaults

2015-03-30 Thread Karl O. Pinc
New submission from Karl O. Pinc: In the argparse library parser library, contrary to the documentation, parser-level defaults do not always override argument-level defaults. https://docs.python.org/3.5/library/argparse.html#argparse.ArgumentParser.set_defaults says "Note that parser-level defa

[issue23326] Remove redundant __ne__ implementations

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e881444f078f by Serhiy Storchaka in branch 'default': Partially revert 3603bae63c13 (issue23326) for asyncio. https://hg.python.org/cpython/rev/e881444f078f -- ___ Python tracker

[issue23485] PEP 475: handle EINTR in the select and selectors module

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ff1090307c7 by Victor Stinner in branch 'default': Issue #23485: select.select() is now retried automatically with the recomputed https://hg.python.org/cpython/rev/0ff1090307c7 -- nosy: +python-dev ___ P

[issue23326] Remove redundant __ne__ implementations

2015-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! On Mon, Mar 30, 2015 at 12:26 PM, Roundup Robot wrote: > > Roundup Robot added the comment: > > New changeset e881444f078f by Serhiy Storchaka in branch 'default': > Partially revert 3603bae63c13 (issue23326) for asyncio. > https://hg.python.org/cpyt

[issue23815] Segmentation fault when create _tkinter objects

2015-03-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In 2.7 and 3.3: >>> import _tkinter >>> _tkinter.Tcl_Obj() Traceback (most recent call last): File "", line 1, in TypeError: cannot create '_tkinter.Tcl_Obj' instances >>> _tkinter.TkttType() Traceback (most recent call last): File "", line 1, in TypeE

[issue23485] PEP 475: handle EINTR in the select and selectors module

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17b6d0d7da00 by Victor Stinner in branch 'default': Issue #23485: Fix test_signal, select.select() now retries the syscall if the https://hg.python.org/cpython/rev/17b6d0d7da00 -- ___ Python tracker

[issue23485] PEP 475: handle EINTR in the select and selectors module

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0591cf5c9ebd by Victor Stinner in branch 'default': Issue #23485: Add _PyTime_FromMillisecondsObject() function https://hg.python.org/cpython/rev/0591cf5c9ebd New changeset 69b1683ee001 by Victor Stinner in branch 'default': Issue #23485: select.pol

[issue23771] Timeouts on "x86 Ubuntu Shared 3.x" buildbot

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: Last 5 builds of "x86 Ubuntu Shared 3.x" and "AMD64 Debian root 3.x" buildbots are green (success). The sporadic hang is gone! I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: test_selectors.patch: Enhance test_selector to test the two kinds of signal handlers: one raises an exception, the other one doesn't. I wait until kqueue & devpoll retry on EINTR to push test_selectors.patch. -- Added file: http://bugs.python.org/file3

[issue23648] PEP 475 meta issue

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: inject_signals.patch: Quick-and-dirty patch to send signals (SIGALRM) every milliseconds when running unit tests. On Linux, results are very good. Only multiprocessing fails because of the issue #23618 (socket connect) which has a pending patch. I hope that we

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

2015-03-30 Thread Josh Rosenberg
Josh Rosenberg added the comment: The behavior for multiplying or adding doesn't seem quite so intuitive when you allow for a bounded deque. In particular, it doesn't seem obvious that multiplying when the deque is bounded, you'll get results like: >>> list(deque([1,2], 3) * 2) [2, 1, 2] Simi

[issue23729] Import ElementTree documentation for namespaces and XPath

2015-03-30 Thread Martin Panter
Martin Panter added the comment: The new patch looks good, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2015-03-30 Thread Jon Heiner
New submission from Jon Heiner: I believe there is an issue with the _struct.c handling of Pascal style strings. In the _struct.c:s_unpack_internal() function (reading 2.7.6 and 2.7.9 source from tgz ball), the size parameter 'n' is clamped to code->size-1. As far as I can tell, 'n' is set to

[issue23796] BufferedReader.peek() crashes if closed

2015-03-30 Thread John Hergenroeder
John Hergenroeder added the comment: If no-one else wants it, I'd love to tackle this as my first Python (and OSS in general) contribution. Attached is a one-line patch that just does a CHECK_CLOSED call in buffered_peek and is modeled on the pattern in the buffered_flush function just above.

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

2015-03-30 Thread Josh Rosenberg
Josh Rosenberg added the comment: I think my first addition example is wrong (should produce [2, 1, 2]), but you get the idea. -- ___ Python tracker ___

[issue23796] BufferedReader.peek() crashes if closed

2015-03-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, John. > I'm under the impression that the final patch will need to include a test > that confirms the patch worked, Correct. You could convert the reproducers in msg239445 to a test case. The patch looks good to me. I think you'll also ne

[issue23458] [2.7] random: make the file descriptor non-inheritable (on POSIX)

2015-03-30 Thread Ned Deily
Changes by Ned Deily : -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___ ___ Pytho

[issue17214] http.client.HTTPConnection.putrequest encode error

2015-03-30 Thread Martin Panter
Martin Panter added the comment: I think this patch needs a test. I left some comments on Reitveld as well. Perhaps there should also be a test to prove that redirects to URLs like /spaced%20path/ do not get mangled. Have a look at the HTTPRedirectHandler.redirect_request() method. Perhaps the

[issue23791] Identify Moved Lines with difflib

2015-03-30 Thread Brian
Brian added the comment: I have put together 5 basic tests to implement moved lines in difflib. All diffs should be compared against the 'diffmove_base.txt' file. Below is a short description of each test. 1) Basic reordering of lines 2) Reordering of lines with new lines added 3) Reordering o

[issue19100] Use backslashreplace in pprint

2015-03-30 Thread Martin Panter
Martin Panter added the comment: I agree with Serhiy that using a permissive error handler with pprint() is appropriate. What is the reasoning behind the DecodeWriter case, where the original stream has an interesting encoding, but “buffer” is None? Are there any real-world cases like that? Y

[issue5550] [urllib.request]: Comparison of HTTP headers should be insensitive to the case

2015-03-30 Thread Martin Panter
Martin Panter added the comment: According to that PEP isn’t going to be accepted, although no reason seems to have been given. So I wouldn’t hold back because of that. -- dependencies: +Add a case-insensitive case-preserving dict nosy: +v

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

2015-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The behavior for multiplying or adding doesn't seem quite so > intuitive when you allow for a bounded deque. What would you want it to do? By design, the key feature of maxlen is pop old inputs to make way newer appends -- that is its essence. It would

[issue12855] linebreak sequences should be better documented

2015-03-30 Thread Martin Panter
Martin Panter added the comment: Patch v4 adds back the reference to “universal newlines”. I did not alter the doc string, because I don’t think doc strings need to be as detailed as the main documentation. -- Added file: http://bugs.python.org/file38748/linebreakdoc.v4.py3.5.patch __

[issue23774] Test failures when unable to write to install location

2015-03-30 Thread Berker Peksag
Berker Peksag added the comment: > test_compileall See issue 21264 I think this can be closed as a duplicate of issue 17750. -- nosy: +berker.peksag ___ Python tracker ___

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-03-30 Thread Berker Peksag
Berker Peksag added the comment: UserDict_self_and_dict_keywords.patch looks good to me. Is there a reason not to use assertWarnsRegex? Also, there are already collections.UserDict() usages in the test file, so I'd remove the "from collections import UserDict" import. -- nosy: +berker

  1   2   >