[issue14477] Rietveld test issue

2014-06-25 Thread Martin v . Löwis

Changes by Martin v. Löwis :


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

___
Python tracker 

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



[issue18592] Idle: test SearchDialogBase.py

2014-06-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am getting the ttk Themechanges warning. The test needs to use an search 
engine altered as with test_searchengine. I will work on that next.

--
stage: patch review -> needs patch

___
Python tracker 

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



[issue18592] Idle: test SearchDialogBase.py

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 752439a6bdd9 by Terry Jan Reedy in branch '2.7':
Issue #18592: For idlelib.SearchDialogBase, edit and add docstrings,
http://hg.python.org/cpython/rev/752439a6bdd9

New changeset ed60a73e1c82 by Terry Jan Reedy in branch '3.4':
Issue #18592: For idlelib.SearchDialogBase, edit and add docstrings,
http://hg.python.org/cpython/rev/ed60a73e1c82

--

___
Python tracker 

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



[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-25 Thread Blake Hartstein

Blake Hartstein added the comment:

That would make sense. Please see if the updated patch file works.

--
Added file: http://bugs.python.org/file35783/issue20928_fixed2.patch

___
Python tracker 

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



[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-06-25 Thread Gregory P. Smith

Gregory P. Smith added the comment:

The upstream Debian issue contains a fix for the bug in eglibc. Python should 
not attempt to work around this. Distros need to fix their libc if they shipped 
a broken one.

--
components: +Extension Modules
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> crash

___
Python tracker 

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



[issue14561] python-2.7.2-r3 suffers test failure at test_mhlib

2014-06-25 Thread Ned Deily

Ned Deily added the comment:

This could be a duplicate of the problem reported in Issue7759.  The patch 
provided there was not applied since the mhlib module is deprecated and its use 
is not recommended.  Feel free to re-open this issue if necessary.

--
nosy: +ned.deily
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

Can someone comment on this regex problem please, they're just not my cup of 
tea.

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

___
Python tracker 

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



[issue14477] Rietveld test issue

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

Even I've successfully used Rietveld, so can we close this to brighten our 
tracker statistics? :)

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue14561] python-2.7.2-r3 suffers test failure at test_mhlib

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

Is it safe to assume that this is a problem that has long been resolved?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-25 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Never know whether to comment on issue itself, but just in case:

There are issues with the patch when n < 0 is passed, as n is not sanity 
checked, which would break the Semaphore invariant (value must be >= 0). n == 0 
is also a weird value, but harmless if passed; release(0) would acquire and 
release the lock but otherwise act as a noop.

--

___
Python tracker 

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



[issue13213] generator.throw() behavior

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

@Petri can you propose a patch for this?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21872] LZMA library sometimes fails to decompress a file

2014-06-25 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Just to be clear, when you say "1 - 5 times per 1000 downloaded files", have 
you confirmed that redownloading the same file a second time produces the same 
error? Just making sure we've ruled out corruption during transfer over the 
network; small errors might make it past one decompressor with minimal effect 
in the midst of a huge data file, while a more stringent error checking 
decompressor would reject them.

--
nosy: +josh.rosenberg

___
Python tracker 

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



[issue13074] Improve documentation of locale encoding functions

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

Hopefully the patch speaks for itself.

--
keywords: +patch
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file35782/Issue13074.diff

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2014-06-25 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Extracting tracebacks does too much work -> traceback: add a new thin 
class storing a traceback without storing local variables

___
Python tracker 

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



[issue12954] Multiprocessing logging under Windows

2014-06-25 Thread paul j3

paul j3 added the comment:

It will take a while to reconstruct the circumstances behind this issue.  I 
think I was working through some online class examples, working in the Eclipse 
pydev environment.  Currently I'm mostly working in linux, and not doing much 
with multiprocessing.  Looks like most, if not all, the examples are already 
protected with the 'if __name__' clause.

--

___
Python tracker 

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



[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-25 Thread STINNER Victor

STINNER Victor added the comment:

I fixed the first "Task was destroyed but it is pending!" messages when the fix 
was simple.

Attached dont_log_pending.patch fixes remaining messages when running 
test_asyncio. I'm not sure yet that this patch is the best approach to fix the 
issue.


Modified functions with example of related tests:


* BaseEventLoop.run_until_complete(): don't log because there the method 
already raises an exception if the future didn't complete ("Event loop stopped 
before Future completed.")

=> related test: test_run_until_complete_stopped() of test_events.py


* wait(): don't log because the caller doesn't have control on the internal 
sub-tasks, and the task executing wait() will already emit a message if it is 
destroyed whereas it didn't completed

=> related test: test_wait_errors() of test_tasks.py


* gather(): same rationale than wait()

=> related test: test_one_exception() of test_tasks.py


* test_utils.run_briefly(): the caller doesn't have access to the task and the 
function is a best effort approach, it doesn't have to guarantee that running a 
step of the event loop is until to execute all pending callbacks

=> related test: test_baseexception_during_cancel() of test_tasks.py

--
Added file: http://bugs.python.org/file35781/dont_log_pending.patch

___
Python tracker 

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



[issue12962] TitledHelpFormatter and IndentedHelpFormatter are not documented

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

As optparse has been deprecated since 3.2 in favour of argparse can this be 
closed?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4e4c6e2ed0c5 by Victor Stinner in branch '3.4':
Issue #21163: Fix one more "Task was destroyed but it is pending!" log in tests
http://hg.python.org/cpython/rev/4e4c6e2ed0c5

New changeset 24282c6f6019 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21163: Fix one more "Task was destroyed but it is pending!"
http://hg.python.org/cpython/rev/24282c6f6019

--

___
Python tracker 

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



[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

ping.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue12942] Shebang line fixer for 2to3

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

"nice to have" isn't much of a requirement in my book.  The Python launcher for 
Windows http://legacy.python.org/dev/peps/pep-0397/ is also relevant.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue12954] Multiprocessing logging under Windows

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

@paul j3 can you prepare a patch for this?

--
nosy: +BreamoreBoy
type:  -> behavior
versions: +Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e9150fdf068a by Victor Stinner in branch '3.4':
asyncio: sync with Tulip
http://hg.python.org/cpython/rev/e9150fdf068a

New changeset d92dc4462d26 by Victor Stinner in branch 'default':
(Merge 3.4) asyncio: sync with Tulip
http://hg.python.org/cpython/rev/d92dc4462d26

--

___
Python tracker 

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



[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1088023d971c by Victor Stinner in branch '3.4':
Issue #21163, asyncio: Fix some "Task was destroyed but it is pending!" logs in 
tests
http://hg.python.org/cpython/rev/1088023d971c

New changeset 7877aab90c61 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21163, asyncio: Fix some "Task was destroyed but it is
http://hg.python.org/cpython/rev/7877aab90c61

--
nosy: +python-dev

___
Python tracker 

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



[issue21811] Anticipate fixes to 3.x and 2.7 for OS X 10.10 Yosemite support

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a7ab09e00dbc by Ned Deily in branch '2.7':
Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
http://hg.python.org/cpython/rev/a7ab09e00dbc

New changeset 2672e30d9095 by Ned Deily in branch '2.7':
Issue #21811: Anticipated fixes to 2.7 configure for OS X 10.10 Yosemite.
http://hg.python.org/cpython/rev/2672e30d9095

New changeset 14198fda1c70 by Ned Deily in branch '3.4':
Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
http://hg.python.org/cpython/rev/14198fda1c70

New changeset 3583b2bedbe7 by Ned Deily in branch 'default':
Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
http://hg.python.org/cpython/rev/3583b2bedbe7

New changeset 69ae7e4939f2 by Ned Deily in branch '3.4':
Issue #21811: Anticipated fixes to 3.x configure for OS X 10.10 Yosemite.
http://hg.python.org/cpython/rev/69ae7e4939f2

New changeset 7346ba934097 by Ned Deily in branch 'default':
Issue #21811: Anticipated fixes to 3.x configure for OS X 10.10 Yosemite.
http://hg.python.org/cpython/rev/7346ba934097

--
nosy: +python-dev

___
Python tracker 

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



[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Lita Cho

Lita Cho added the comment:

I should clarify. The right thing being that calling undo does nothing, and 
turtle keeps on running. This is the default behaviour when setundobuffer is 
called with no size.

--

___
Python tracker 

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



[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Lita Cho

Lita Cho added the comment:

That makes a lot of sense. Does that mea we shouldn't change this behaviour as 
there might be code that relies on these exceptions? The fix in issue21868 will 
make it so that undo doesn't cause turtle to crash.

--

___
Python tracker 

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



[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> rhettinger
nosy: +rhettinger
priority: normal -> high

___
Python tracker 

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



[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

For the most part, we don't change exceptions once they are published in the 
standard library because it breaks any code that relies on those exceptions.  
That is why it is so important to get the API correct to begin with.

TypeError was the wrong choice, it should has been a ValueError (the type is 
correct but the value doesn't make sense).   There is some case for a 
TurtleError (modules like decimal and sqlite3 define their own clusters of 
exceptions); however, that makes the exception less interoperable with the rest 
of Python where things like IndexError, StopIteration, ValueError, and KeyError 
get caught and handled appropriately.

--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue12860] http client attempts to send a readable object twice

2014-06-25 Thread Ned Deily

Changes by Ned Deily :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Missing "return" in HTTPConnection.send()
versions: +Python 3.3, Python 3.4 -Python 3.2

___
Python tracker 

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



[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2014-06-25 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +sbt

___
Python tracker 

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



[issue12860] http client attempts to send a readable object twice

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

This looks identical to the problem fixed on #16658.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-25 Thread Torsten Landschoff

Torsten Landschoff added the comment:

Just a heads up that I am still interested in this issue. I started to write up 
my expectations to the sqlite module wrt. exception handling.

It's not finished yet but I attached what I got so far. I hope everybody agrees 
that those doctests should all pass.

--
Added file: http://bugs.python.org/file35780/sqlite_sanity_check.rst

___
Python tracker 

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



[issue21872] LZMA library sometimes fails to decompress a file

2014-06-25 Thread Ville Nummela

New submission from Ville Nummela:

Python lzma library sometimes fails to decompress a file, even though the file 
does not appear to be corrupt. 

Originally discovered with OS X 10.9 / Python 2.7.7 / bacports.lzma
Now also reproduced on OS X / Python 3.4 / lzma, please see
https://github.com/peterjc/backports.lzma/issues/6 for more details.

Two example files are provided, a good one and a bad one. Both are compressed 
using the older lzma algorithm (not xz). An attempt to decompress the 'bad' 
file raises "EOFError: Compressed file ended before the end-of-stream marker 
was reached."

The 'bad' file appears to be ok, because
- a direct call to XZ Utils processes the files without complaints
- the decompressed files' contents appear to be ok.

The example files contain tick data and have been downloaded from the Dukascopy 
bank's historical data feed service. The service is well known for it's high 
data quality and utilised by multiple analysis SW platforms. Thus I think it is 
unlikely that a file integrity issue on their end would have gone unnoticed.

The error occurs relatively rarely; only around 1 - 5 times per 1000 downloaded 
files.

--
components: Library (Lib)
files: Archive.zip
messages: 221566
nosy: nadeem.vawda, vnummela
priority: normal
severity: normal
status: open
title: LZMA library sometimes fails to decompress a file
type: behavior
versions: Python 2.7, Python 3.4
Added file: http://bugs.python.org/file35779/Archive.zip

___
Python tracker 

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



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-25 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
nosy: +Vladimir.Iofik, benjamin.peterson, tim.golden

___
Python tracker 

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



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-25 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
priority: normal -> release blocker

___
Python tracker 

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



[issue13369] timeout with exit code 0 while re-running failed tests

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be reproduced, has it been fixed already, what?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3

___
Python tracker 

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



[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-25 Thread R. David Murray

R. David Murray added the comment:

Yeah, include should now be a very simple wrapper around a call to _include, 
include shouldn't have the original include code (which is moved to _include) 
in it.

--

___
Python tracker 

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



[issue21729] Use `with` statement in dbm.dumb

2014-06-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Claudiu.

Committed with yet one "with".

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

___
Python tracker 

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



[issue12872] --with-tsc crashes on ppc64

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

This refers to a crash so can we have a code review please, I'm certainly not 
qualified to do one on ceval.c.

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue21729] Use `with` statement in dbm.dumb

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fdbcb11e0323 by Serhiy Storchaka in branch '3.4':
Issue #21729: Used the "with" statement in the dbm.dumb module to ensure
http://hg.python.org/cpython/rev/fdbcb11e0323

New changeset e41b4e8c0c1d by Serhiy Storchaka in branch 'default':
Issue #21729: Used the "with" statement in the dbm.dumb module to ensure
http://hg.python.org/cpython/rev/e41b4e8c0c1d

New changeset 893e79196fb3 by Serhiy Storchaka in branch '2.7':
Issue #21729: Used the "with" statement in the dbm.dumb module to ensure
http://hg.python.org/cpython/rev/893e79196fb3

--
nosy: +python-dev

___
Python tracker 

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



[issue12851] ctypes: getbuffer() never provides strides

2014-06-25 Thread Mark Lawrence

Mark Lawrence added the comment:

@Stefan do you want to follow this up?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3

___
Python tracker 

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



[issue21729] Use `with` statement in dbm.dumb

2014-06-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, month ago I wrote large patch which use 'with' in various places in stdlib 
for opening and closing files. But then I dropped it because afraid that it can 
be considered as code churn.

--
stage: patch review -> commit review
versions: +Python 2.7, Python 3.4

___
Python tracker 

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



[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

2014-06-25 Thread Yury Selivanov

Yury Selivanov added the comment:

> But I can't think of any use case when it would be undesirable to include the 
> extra parameters

One use case is that you are actually loosing information what arguments 
Signature.bind() was called with, when defaults are included. In some cases 
this information is important.

> hence the possibility of a separate method

Since it's relatively easy to add mix defaults in, I'd prefer to be 
conservative here, and wait for a stronger community interest before adding a 
new method to API.

But thanks for the bug report. If you find any other use cases for a separate 
method, please feel free to update this issue.

--

___
Python tracker 

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



[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Lita Cho

Lita Cho added the comment:

The patch in issue21868 will fix this issue if it gets approved.

--

___
Python tracker 

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



[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Lita Cho

Lita Cho added the comment:

Here is a patch for this bug. Basically, when a user gives 0 and below, it 
doesn't create a TBuffer. Then "undo" does the right thing.

--
keywords: +patch
Added file: http://bugs.python.org/file35778/undobuffer_fix.patch

___
Python tracker 

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



[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-25 Thread Stefan Behnel

Stefan Behnel added the comment:

Your code adds a lot of new code. Why is that necessary? Can't the new feature 
be integrated into the existing code?

--

___
Python tracker 

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



[issue21849] Fix multiprocessing for non-ascii data

2014-06-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually there is a bug in the multiprocessing module which makes it fail for 
non-ascii str and unicode values even in unicode-enabled build. Updated patch 
fixes it and adds missed tests.

--
title: Fix multiprocessing in unicodeless build -> Fix multiprocessing for 
non-ascii data
Added file: http://bugs.python.org/file35777/multiprocessing_2.patch

___
Python tracker 

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



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-25 Thread agolde

New submission from agolde:

Python 2.7.7 seems to contain a regression of issue #10162 as compared with 
2.7.6, re-introduced by the fix of issue #9291.

import mimetypes
mimetypes.init()
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\INRO\Emme\Emme 4\Emme-4.1.3\Python27\lib\mimetypes.py",
 line 348, in init
db.read_windows_registry()
  File "C:\Program Files\INRO\Emme\Emme 4\Emme-4.1.3\Python27\lib\mimetypes.py",
 line 256, in read_windows_registry
with _winreg.OpenKey(hkcr, subkeyname) as subkey:
WindowsError: [Error 5] Access is denied

Whereas with Python 2.7.6 on the same system, this doesn't generate any errors.

It looks like in Python 2.7.6, "with _winreg.OpenKey(hkcr, subkeyname) as 
subkey:" was within a try-except which was moved with the patch for issue#9291 
in Python 2.7.7

--
components: Library (Lib), Windows
messages: 221553
nosy: agolde
priority: normal
severity: normal
status: open
title: Python 2.7.7 regression in mimetypes read_windows_registry
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread R. David Murray

R. David Murray added the comment:

I can duplicate this.  ctl-c works fine in 3.5, however.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-06-25 Thread R. David Murray

R. David Murray added the comment:

I would lean toward bug fix.  I'm sure this was just overlooked when exception 
chaining was added, and as Claudiu says, the contract of code is to emulate the 
interactive interpreter, so not doing so in this instance looks like a bug to 
me.

It is certainly conceivable that it could disrupt working programs, but I would 
think most such would be interactive programs that would benefit from the fix 
without breaking.  Does anyone know of a counter example or can think of a use 
case for the code module that this change would be likely to break?

(Note: if there is a use case that somehow parses the output, introducing blank 
lines and extra traceback clauses could easily be a breaking change...but is 
there such a use case?)

--

___
Python tracker 

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



[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread Alex

Changes by Alex :


--
type:  -> behavior

___
Python tracker 

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



[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread Alex

Changes by Alex :


--
components:  -Interpreter Core

___
Python tracker 

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



[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread Alex

New submission from Alex:

This infinite loop:

def f():
  a=b=0
  while 1:
if a

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



[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2014-06-25 Thread Markus Unterwaditzer

Markus Unterwaditzer added the comment:

Can this issue or #9205 be reopened as this particular instance of the problem 
doesn't seem to be resolved? I still seem to need the workaround from 
http://stackoverflow.com/a/1408476

--
nosy: +untitaker

___
Python tracker 

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



[issue19821] pydoc.ispackage() could be more accurate

2014-06-25 Thread Claudiu Popa

Claudiu Popa added the comment:

I would go on the deprecation route with this and removing it in 3.6, just like 
the formatter module.

--

___
Python tracker 

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



[issue21848] Fix logging in unicodeless build

2014-06-25 Thread Vinay Sajip

Vinay Sajip added the comment:

> requires_unicode() and u() are added in #21833

Okay, but it seems like there is some contention there. I suppose this patch 
can wait until that is resolved and if the relevant changes are merged into the 
2.7 branch.

--

___
Python tracker 

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



[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-06-25 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +r.david.murray

___
Python tracker 

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



[issue20295] imghdr add openexr support

2014-06-25 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +r.david.murray

___
Python tracker 

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



[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2014-06-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:

That's not how -m should work. It should use the runpy facilities (see the 
runpy module). Otherwise it probably won't work properly with qualified module 
names ("-m pkg.subpkg.mod").

--

___
Python tracker 

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



[issue21869] Clean up quopri, correct method names encodestring and decodestring

2014-06-25 Thread R. David Murray

R. David Murray added the comment:

Well, it's not actually obvious that this should be done.  Or, at least, it is 
not obvious the old methods should be dropped.  I think we had this same 
discussion about a similar method in ElementTree.  I don't remember the outcome 
except that I'm pretty sure the 'string' method name still works :)

--

___
Python tracker 

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



[issue21848] Fix logging in unicodeless build

2014-06-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

requires_unicode() and u() are added in issue21833.

--

___
Python tracker 

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



[issue21866] zipfile.ZipFile.close() doesn't respect allowZip64

2014-06-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Do you want to provide a patch?

--
assignee:  -> serhiy.storchaka
nosy: +serhiy.storchaka
stage:  -> needs patch
versions:  -Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-25 Thread Stefan Krah

Changes by Stefan Krah :


--
assignee: docs@python -> skrah

___
Python tracker 

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



[issue20872] dbm/gdbm/ndbm close methods are not document

2014-06-25 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Thanks, David and Berker.

--
nosy: +jcea

___
Python tracker 

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



[issue20872] dbm/gdbm/ndbm close methods are not document

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset de44bc26a00a by Jesus Cea in branch '2.7':
Closes #20872: dbm/gdbm/ndbm close methods are not documented
http://hg.python.org/cpython/rev/de44bc26a00a

New changeset cf156cfb12e7 by Jesus Cea in branch '3.3':
Closes #20872: dbm/gdbm/ndbm close methods are not documented
http://hg.python.org/cpython/rev/cf156cfb12e7

New changeset 88fb216b99fb by Jesus Cea in branch '3.4':
MERGE: Closes #20872: dbm/gdbm/ndbm close methods are not documented
http://hg.python.org/cpython/rev/88fb216b99fb

New changeset 90dd9eec1230 by Jesus Cea in branch 'default':
MERGE: Closes #20872: dbm/gdbm/ndbm close methods are not documented
http://hg.python.org/cpython/rev/90dd9eec1230

--
nosy: +python-dev
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue21476] Inconsistent behaviour between BytesParser.parse and Parser.parse

2014-06-25 Thread Claudiu Popa

Changes by Claudiu Popa :


--
stage:  -> commit review
title: Inconsitent behaviour between BytesParser.parse and Parser.parse -> 
Inconsistent behaviour between BytesParser.parse and Parser.parse

___
Python tracker 

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



[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2014-06-25 Thread Claudiu Popa

Claudiu Popa added the comment:

It seems commit ready.

--
nosy: +Claudiu.Popa
stage: patch review -> commit review
versions: +Python 3.5

___
Python tracker 

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



[issue20753] disable test_robotparser test that uses an invalid URL

2014-06-25 Thread Senthil Kumaran

Senthil Kumaran added the comment:

The patch was good and captured what was required. I made some minor 
modifications and committed it in 3.4 and 3.5

Thanks for the patch, Vajrasky Kok.

--
assignee:  -> orsenthil
nosy: +orsenthil
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue20753] disable test_robotparser test that uses an invalid URL

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 16d8240ff841 by Senthil Kumaran in branch '3.4':
issue20753 - robotparser tests should not rely upon external resource when not 
required.
http://hg.python.org/cpython/rev/16d8240ff841

New changeset 74cd8abcc302 by Senthil Kumaran in branch 'default':
merge from 3.4
http://hg.python.org/cpython/rev/74cd8abcc302

--
nosy: +python-dev

___
Python tracker 

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



[issue21869] Clean up quopri, correct method names encodestring and decodestring

2014-06-25 Thread Senthil Kumaran

New submission from Senthil Kumaran:

issue15588 brought the topic that quopri has ancient methods like encodestring, 
decodestring, which a user might expect that will send a string, but instead 
has to send bytes.

This needs to be cleaned up. 

a) function name should be accurate and represent what is sent and received.
b) tests in that main method should be killed.
c) All references in the stdlib should be updated.

--
messages: 221537
nosy: orsenthil, r.david.murray
priority: normal
severity: normal
status: open
title: Clean up quopri, correct method names encodestring and decodestring
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue21825] Embedding-Python example code from documentation crashes

2014-06-25 Thread Pat Le Cat

Pat Le Cat added the comment:

I zipped the whole Lib directory into "pyLib34.zip" (into same dir as EXE) and 
copied all the .pyd files from the DLLs dir into the same dir as the EXE.

--

___
Python tracker 

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



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-25 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Thanks for the review, Mark. Addressed that and committed the changes in 
changeset 606a18938476 (3.4)
changeset b4130b2f7748 (3.5)

--
nosy: +orsenthil
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b4130b2f7748 by Senthil Kumaran in branch 'default':
merge from 3.4
http://hg.python.org/cpython/rev/b4130b2f7748

--
nosy: +python-dev

___
Python tracker 

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



[issue18669] curses.chgat() moves cursor, documentation says it shouldn't

2014-06-25 Thread IronGrid

IronGrid added the comment:

I get this error with 3.2.3, running Debian Stable.

It's annoying because this error prevents curses apps from being able to 
highlight the current line.

--
nosy: +IronGrid
versions: +Python 3.2

___
Python tracker 

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



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2014-06-25 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The issue was never really valid (except perhaps for the desire to document 
this more clearly), so closing.

Anybody who would like to see the documentation improved, please suggest a 
specific change.

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

___
Python tracker 

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



[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-25 Thread Larry Hastings

Larry Hastings added the comment:

> There is a way using *args and **kwds but that isn't any fun

That's why, earlier, I said a "sensible" signature.  Every function *could* get 
the signature "(*args, **kwargs)" but this imparts no useful semantic 
information.


> What I would like to see in the future is better support
> for optional arguments in PyArg_ParseTupleAndKeyword

It sounds to me like you're proposing adding "nullable int" support to 
PyArg_ParseTuple*.  I'm not going to; I see Argument Clinic as the way forward, 
and I'm adding it there instead.

In general I'd rather see work go into AC than into PyArg_ParseTuple*.  I think 
PyArg_ParseTuple* is already too complicated, and using AC gives the function a 
signature for free.  My hope is to increase the value proposition of AC so much 
that everyone agrees with me and we deprecate (but don't remove!) 
PyArg_ParseTuple*. :D


> changing repeat() in way that no one currently needs smacks of having
> the tail wag the dog

I concede that nobody (probably) needs a workable default value for the times 
argument.  But I suggest that giving functions sensible signatures is a worthy 
goal in its own right, and that the "times=None" semantics will get us there in 
a reasonable, backwards-compatible way.

--

___
Python tracker 

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



[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Lita Cho

Changes by Lita Cho :


--
nosy: +jesstess

___
Python tracker 

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



[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Lita Cho

New submission from Lita Cho:

Currently, you can set the undobuffer size to negative numbers. Aka, the 
Tbuffer can be set to negative.

s = turtle.Screen()
raw = turtle.RawTurtle(s)
raw.setundobuffer(-10)
raw.undobuffer.bufsize == -10 <-- returns True

This should not be possible. Tbuffer should not be allowed to have negative 
inputs. If the value is less than 0, it should just default to 0 or None. 
Otherwise, when you call undo, turtle just crashes.

--
messages: 221530
nosy: Lita.Cho
priority: normal
severity: normal
status: open
title: Tbuffer in turtle allows negative size

___
Python tracker 

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



[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Lita Cho

New submission from Lita Cho:

Turtle currently has a bug where it will return a TypeError when undobuffer is 
set to less than or equal to 0 (aka undo is not allowed).

turtle.setundobuffer(0)
turtle.undo()


If an exception must be thrown, it should be a Turtle exception and not a 
TypeError. However, I also feel like if the user calls undo, nothing should 
happen when undobuffer is set to 0.

--
messages: 221529
nosy: Lita.Cho
priority: normal
severity: normal
status: open
title: Turtle returns TypeError when undobuffer is set to 0 (aka no undo is 
allowed)

___
Python tracker 

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



[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Lita Cho

Changes by Lita Cho :


--
nosy: +jesstess

___
Python tracker 

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