[issue14364] Argparse incorrectly handles '--'

2013-04-19 Thread paul j3

paul j3 added the comment:

The patch that I  recently submitted for http://bugs.python.org/issue13922
appears to solve this issue.  It only removes the '--' that marked the end of 
options.  

With:

parser = argparse.ArgumentParser()
parser.add_argument('-f','--foo')
print(parser.parse_args(['-f--']))
print(parser.parse_args(['--foo=--']))
print(parser.parse_args(['-f', '--']))

I get:

Namespace(foo='--')
Namespace(foo='--')
usage: foodash.py [-h] [-f FOO]
foodash.py: error: argument -f/--foo: expected one argument

--

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



[issue17760] No i18n of IDLE's interface in french

2013-04-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 The target is different though (especially the target of Firefox).
 Kate might be used mainly by developers, but it's also used by
 non-developers and it's probably translated also because all the KDE
 programs are.  Mercurial would be a better example against my point.

Or Kdevelop, Eclipse, etc.

--

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



[issue14364] Argparse incorrectly handles '--'

2013-04-19 Thread Michele Orrù

Michele Orrù added the comment:

wow, I was just writing the unittests, thanks paul. 
Shall I continue? I don't see any test case on tip.

--

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



[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-19 Thread Mike Lundy

New submission from Mike Lundy:

The changed merged from http://bugs.python.org/issue16168 causes a regression 
in SysLogHandler behavior. The socktype of /dev/log is dependent on syslog 
configuration, and the fallback behavior (trying SOCK_DGRAM and then 
SOCK_STREAM if the former failed) was very useful.

A better fix for this would preserve the fallback behavior in cases where the 
caller has not specifically requested a socktype. I've attached a patch with 
one such approach.

--
components: Library (Lib)
files: 0001-Restore-SysLogHandler-fallback-for-AF_UNIX-sockets.patch
keywords: patch
messages: 187347
nosy: Mike.Lundy
priority: normal
severity: normal
status: open
title: backwards-incompatible change in SysLogHandler with unix domain sockets
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
Added file: 
http://bugs.python.org/file29937/0001-Restore-SysLogHandler-fallback-for-AF_UNIX-sockets.patch

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



[issue17796] No mimetype guessed for tar.xz url

2013-04-19 Thread LCID Fire

New submission from LCID Fire:

mimetypes.guess_type( 
http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.36/libxml++-2.36.0.tar.xz;), 
strict=False )

gives

(None, None)

--
components: Library (Lib)
messages: 187348
nosy: lcid-fire
priority: normal
severity: normal
status: open
title: No mimetype guessed for tar.xz url
type: behavior
versions: Python 2.7

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



[issue13922] argparse handling multiple -- in args improperly

2013-04-19 Thread Michele Orrù

Changes by Michele Orrù maker...@gmail.com:


--
nosy: +maker

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



[issue14364] Argparse incorrectly handles '--'

2013-04-19 Thread Michele Orrù

Michele Orrù added the comment:

Yes, http://bugs.python.org/file29845/dbldash.patch seems to fix this.
Attaching the unittests, and noisying on your issue.

--
keywords: +patch
Added file: http://bugs.python.org/file29938/issue14364.test.patch

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



[issue17468] Generator memory leak

2013-04-19 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +benjamin.peterson, ncoghlan

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



[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2013-04-19 Thread Stijn Hoop

Stijn Hoop added the comment:

So after a good nights sleep: does it not make sense to use the canonical 
hostname iff the name argument is not present / empty? Otherwise, fall back to 
the documented steps? That way extra API is avoided, and I can't think of a 
case where you would rather have my weird results vs the output of hostname 
-f.

--

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



[issue17778] Fix test discovery for test_multiprocessing.py

2013-04-19 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
nosy: +sbt

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



[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-19 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
assignee:  - vinay.sajip
nosy: +vinay.sajip

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-19 Thread Mateusz Loskot

New submission from Mateusz Loskot:

In pythonrun.c, there is function initstdio() with the following test:

static int
initstdio(void)
{
...
/* Set sys.stdin */
fd = fileno(stdin);
/* Under some conditions stdin, stdout and stderr may not be connected
 * and fileno() may point to an invalid file descriptor. For example
 * GUI apps don't have valid standard streams by default.
 */
if (fd  0) {
#ifdef MS_WINDOWS
std = Py_None;
Py_INCREF(std);
#else
goto error;
#endif
}
else {
...
}

This function is fails for non-console applications (i.e. MFC) built using 
Visual C++ 11.0 (Visual Studio 2012), becasue **strangely**, fileno(stdin) == 
0, so this test results in false and Python initialisation routines attempt to 
setup streams.

Apparently, fileno(stdin) return value has changed between Visual C++ 10.0 (VS 
2010)
and 11.0. The VC++ 10.0 reports fileno(stdin) == -2.

--
components: IO, Interpreter Core
messages: 187351
nosy: mloskot
priority: normal
severity: normal
status: open
title: Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program
versions: Python 3.2

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

And does it cause an issue later? How?

--
nosy: +amaury.forgeotdarc

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-19 Thread Mateusz Loskot

Mateusz Loskot added the comment:

Yes, it does. In file Modulfileio.c, in function fileio_init, there is this 
code:

if (fd = 0) {
if (check_fd(fd))
goto error;
self-fd = fd;
self-closefd = closefd;
}

The check_fd tests:

if (!_PyVerify_fd(fd) || (fstat(fd, buf)  0  errno == EBADF)) {

The _PyVerify_fd(fd) == 1, but errno is Bad file descriptor.

This eventually leads to Py_InitializeEx failure at:

if (initstdio()  0)
Py_FatalError(
Py_Initialize: can't initialize sys standard streams);

--

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



[issue17468] Generator memory leak

2013-04-19 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Generators exit using GeneratorExit, which you could possible catch.

--

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



[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2013-04-19 Thread R. David Murray

R. David Murray added the comment:

That is an interesting proposal, yes.  I suppose someone that needs the 
getaddrinfo semantics for something other than the local host can just call it 
directly.

Now, do we add the fact that we are doing this to the current alogarithmic 
documention? :)

--

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-19 Thread Mateusz Loskot

Mateusz Loskot added the comment:

 In file Modulfileio.c,

I messed the path and filename above I meant: In file Modules/_io/fileio.c,

--

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



[issue17796] No mimetype guessed for tar.xz url

2013-04-19 Thread R. David Murray

R. David Murray added the comment:

Adding xz was treated as an enhancement in issue 16316.  Our thinking about 
applying these types of changes as bug fixes has evolved a bit, so I think we 
can consider backporting it.

--
nosy: +r.david.murray

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Maybe check_fd(fd) could be used in initstdio as well.

Can you check whether it's the same for the other files?
What are the values for fileno(stdout) and fileno(stderr)?

--

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



[issue17468] Generator memory leak

2013-04-19 Thread Anssi Kääriäinen

Anssi Kääriäinen added the comment:

True, except GeneratorExit will run at garbage collection time and this will 
result in reference cycle problems. Checking if there is no except 
GeneratorExit clause might be too complicated.

I still think this is worth a brief note in the gc docs. The gc docs talk only 
about __del__ methods, and there isn't one defined for the example generator. 
The generator does have something technically equivalent, but I don't spot any 
actual __del__ methods in the reference loop.

A docs mention will not help much in avoiding this problem, but it will at 
least make the code behaviour equivalent to documentation. A mention in the gc 
docs would have helped me when trying to debug the leak in Django.

--

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



[issue17468] Generator memory leak

2013-04-19 Thread Benjamin Peterson

Benjamin Peterson added the comment:

A documentation patch sounds good to me.

--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python
type: resource usage - behavior

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



[issue17177] Document/deprecate imp

2013-04-19 Thread Brett Cannon

Brett Cannon added the comment:

The deprecation warnings for the explicitly deprecated functions already have 
the instructions on how to port. A note could probably be added to turn on 
deprecation warnings if one needs help with moving code over.

But the deprecation isn't even officially full-on yet. While it's documented as 
such, not all functionality has moved over to importlib, only bits and pieces.

--

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-19 Thread Mateusz Loskot

Mateusz Loskot added the comment:

Replacing if the current test in Python 3.2

if (fd  0)
with
if (check_fd(fd)  0)

Seems to be a working solution.

I just noticed, that in current Python/pythonrun.c in the repo, there the fd  
0 tests have been replaced with new function is_valid_fd(). But, its semantic 
is equivalent to fd  0, so it does not check anything really. Perhaps 
is_valid_fd could be redefined as check_fd.

Here are Visual C++ 11.0 (1700) vs 10.0 differences of fileno return value for 
all the standard streams

int fdi, fdo, fde;
fdi = fileno(stdin);
fdo = fileno(stdout);
fde = fileno(stderr);
#if _MSC_VER  1700
assert(fdi == -2);
assert(fdo == -2);
assert(fde == -2);
#else
assert(fdi == 0);
assert(fdo == 1);
assert(fde == 2);
#endif

By the way, I assume such sudden change in fileno(std*) behaviour between 
Visual C++ versions is suspicious, so I also submitted bug report to Visual 
Studio:
https://connect.microsoft.com/VisualStudio/feedback/details/785119/

--

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



[issue17732] distutils.cfg Can Break venv

2013-04-19 Thread Nick Sloan

Nick Sloan added the comment:

Responded to comments with an updated patch. Thanks for all the feedback, and 
sorry for the silly mistakes. Should have read up more thoroughly on the docs 
style guide and the terminology. Hopefully the latest patch is ready to go (or 
at least, nearly so).

--
Added file: http://bugs.python.org/file29939/distutilsvenv.patch

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



[issue17177] Document/deprecate imp

2013-04-19 Thread R. David Murray

R. David Murray added the comment:

Should we back out that module level deprecation notice for the moment, then?

--

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



[issue3778] python uninstaller leave registry entries

2013-04-19 Thread anatoly techtonik

anatoly techtonik added the comment:

What is the reason for not following the good practice? Is it so hard to fix?

--

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



[issue3778] python uninstaller leave registry entries

2013-04-19 Thread Michael Foord

Changes by Michael Foord mich...@voidspace.org.uk:


--
nosy:  -michael.foord

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



[issue3778] python uninstaller leave registry entries

2013-04-19 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue17177] Document/deprecate imp

2013-04-19 Thread Brett Cannon

Brett Cannon added the comment:

Nah, consider it motivation for me to get it done in Python 3.4 else I have to 
back it out before release.

--

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



[issue17468] Generator memory leak

2013-04-19 Thread Nick Coghlan

Nick Coghlan added the comment:

Adding Guido because this appears to be due to a longstanding difference 
between the handling of tp_del and most other slots

Specifically, the reason for the odd behaviour appears to be that generator 
objects define tp_del [1] (which is what the cyclic gc *really* looks for), but 
while defining __del__ in Python will populate tp_del in the type slots, 
defining tp_del directly in a builtin or extension type doesn't create an 
exposed __del__ at the Python level (there's no wrapper function identified in 
the slot definition).

So, at the very least, the fact that builtin and extension types can define 
tp_del without creating a visible __del__ method needs to be documented as a 
CPython implementation detail.

However, I'm not sure we actually have a good *reason* for tp_del failing to 
generate __del__ automatically - it's been that way since Guido implemented it 
[2], but Guido's comment in that commit message about not needing a wrapper 
because types written in C can't define tp_del is clearly no longer accurate.

[1] http://hg.python.org/cpython/file/2.7/Objects/genobject.c#l328
[2] http://hg.python.org/cpython/annotate/71dca7c76fa2/Objects/typeobject.c#3955

--
nosy: +gvanrossum
versions: +Python 3.4

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



[issue17764] Support http.server passing bind address via commend line argument

2013-04-19 Thread Berker Peksag

Berker Peksag added the comment:

I left comments on Rietveld. The patch also needs a documentation update.

--
nosy: +berker.peksag
stage:  - patch review

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



[issue17468] Generator memory leak

2013-04-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

With the advent of yield-based asynchronous programming, it is going to be 
problematic if a generator caught in a reference cycle can create a memory leak.

--
nosy: +pitrou

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



[issue17796] No mimetype guessed for tar.xz url

2013-04-19 Thread Éric Araujo

Éric Araujo added the comment:

+1

--
nosy: +eric.araujo
stage:  - needs patch

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



[issue17796] No mimetype guessed for tar.xz url

2013-04-19 Thread Éric Araujo

Éric Araujo added the comment:

Let’s keep using that other bug report.

--
resolution:  - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder:  - Support xz compression in mimetypes module

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



[issue17468] Generator memory leak

2013-04-19 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I think the creation of __del__ wrappers for extension types is separate from 
this issue of generator finalization.

--

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



[issue16316] Support xz compression in mimetypes module

2013-04-19 Thread Éric Araujo

Éric Araujo added the comment:

Small changes in registries (mimetypes, html.entities, sometimes webbrowser) 
are acceptable in stable branches.  Can you backport this?

--
stage: committed/rejected - commit review
status: closed - open

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



[issue17468] Generator memory leak

2013-04-19 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Yes. Hopefully, the async framework using generators can properly can close() 
on them, though.

--

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



[issue17468] Generator memory leak

2013-04-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Yes. Hopefully, the async framework using generators can properly can
 close() on them, though.

With yield from-based generators, you don't need a trampoline anymore,
so the close() call is now left to the application developers (if I'm
not mistaken).

--

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



[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2013-04-19 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


--
nosy: +Todd.Rovito

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



[issue17732] distutils.cfg Can Break venv

2013-04-19 Thread Nick Sloan

Nick Sloan added the comment:

Here is another update. It has come to my attention that I missed some options:

prefix, exec-prefix, home, user and root

These have been added, and the docs and test have been updated to reflect the 
change.

--
Added file: http://bugs.python.org/file29940/distutilsvenv.patch

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



[issue17413] format_exception() breaks on exception tuples from trace function

2013-04-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d18df4c90515 by R David Murray in branch '3.3':
#17413: make sure settrace funcs get passed exception instances for 'value'.
http://hg.python.org/cpython/rev/d18df4c90515

New changeset 6297fcddf912 by R David Murray in branch 'default':
Merge #17413: make sure settrace funcs get passed exception instances for 
'value'.
http://hg.python.org/cpython/rev/6297fcddf912

--
nosy: +python-dev

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



[issue17413] format_exception() breaks on exception tuples from trace function

2013-04-19 Thread R. David Murray

R. David Murray added the comment:

Benjamin reviewed the patch and pointed out that the settrace state needed to 
be restored in the test, so I fixed that when I committed it.

Thanks Ingrid and Brendan.

--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue17778] Fix test discovery for test_multiprocessing.py

2013-04-19 Thread Zachary Ware

Zachary Ware added the comment:

Hmmm, it looks a couple of things have gone wrong.  First, I didn't try the 
patch on 3.3, whose test_multiprocessing is significantly different than 
default's.  This appears to be due largely to dd5e98ddcd39, but there have been 
other changes to only default since then as well.  As it turns out, 3.3 passes 
default's test_multiprocessing, so is there any reason not to backport all of 
the changes to 3.3 to keep the two the same?  FTR, the changesets not 
backported are (in order): dd5e98ddcd39, 7d69d04522e3, 2dc08789ad3e, and 
2966e5a55396.

Secondly, the patch doesn't apply to default because a new test was added 
shortly after I submitted the patch.  The only real change to my patch to deal 
with this is the line numbers of hunk 2, and the removed testcases_other has an 
extra line removed.  Here's a new version of the patch which applies cleanly to 
default.  I'll leave 3.3 for now until it's decided whether or not to backport 
changes to it.

--
Added file: 
http://bugs.python.org/file29941/test_multiprocessing_discovery.v2.diff

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



[issue17468] Generator memory leak

2013-04-19 Thread Martin Morrison

Changes by Martin Morrison m...@ensoft.co.uk:


--
nosy: +pconnell

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2013-04-19 Thread Andrew Svetlov

Andrew Svetlov added the comment:

No, PEP3121 patch is not ready yet but PEP384 has been applied.

--

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



[issue17785] Use faster URL shortener for perf.py

2013-04-19 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue17780] the test suite should use a TEMPDIR in the build directory, not the source directory

2013-04-19 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue17758] test_site fails when the user does not have a home directory

2013-04-19 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue17729] advocacy howto improvements

2013-04-19 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue17729] advocacy howto improvements

2013-04-19 Thread Tshepang Lekhonkhobe

Tshepang Lekhonkhobe added the comment:

I would rather the page be removed, at least from the official docs. I wonder 
how useful it actually is, and as already pointed, it really feels outdated 
(and Apache is not kool no more).

--

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



[issue17123] Add OCSP support to ssl module

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue15992] Strict aliasing violations in Objects/unicodeobject.c

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue12489] email.errors.HeaderParseError if base64url is used

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue16394] Reducing tee() memory footprint

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue17729] advocacy howto improvements

2013-04-19 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-19 Thread Eric Snow

Eric Snow added the comment:

FWIW this has come up before:

http://mail.python.org/pipermail/python-dev/2012-October/122504.html

and relatedly:

issue16429

--
nosy: +eric.snow

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



[issue17705] Fill Character cannot be \0

2013-04-19 Thread Terry J. Reedy

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


--
versions:  -Python 3.2

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



[issue17714] str.encode('base64') add trailing new line character. It is not documented.

2013-04-19 Thread Terry J. Reedy

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


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python
stage:  - needs patch

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



[issue17718] boolop constant checking for if/while

2013-04-19 Thread Terry J. Reedy

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


--
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan

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



[issue17718] boolop constant checking for if/while

2013-04-19 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thank you for the patch. However, I don't think such optimizations are 
particularly useful.

--

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



[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue17306] Improve the way abstract base classes are shown in help()

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue16863] Python 2 error in Argparse tutorial

2013-04-19 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

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



[issue16394] Reducing tee() memory footprint

2013-04-19 Thread Raymond Hettinger

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


--
assignee: docs@python - rhettinger
nosy: +rhettinger

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



[issue17742] Add _PyBytesWriter API

2013-04-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

_PyBytesWriter and _PyUnicodeWriter have differen use cases. While 
_PyUnicodeWriter used primary in formatter where resulting size is rarely known 
and reallocation in decoders usually caused by widening result, _PyBytesWriter 
is used only in decoders where we usually can estimate a result size or it's 
upper bound. Resizing happened only in exceptional cases, when error handler 
called.

The patch contains a special case for writing only one bytes object. This is 
very unlikely case. It happened only when an encoded string contains only one 
illegal character. I think this case is not worth a complication and
obfuscation of the code. I think we should drop readonly attribute and a piece 
of the code (which looks buggy for me anyway).

--

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



[issue17618] base85 encoding

2013-04-19 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file29942/issue17618-5.diff

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



[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Martin Morrison

Martin Morrison added the comment:

How embarrassing - I guess that'll teach me to try to doctor the diff file. :-)

I've now regenerated the diff, and re-run all the testing, etc. Apologies for 
the churn.

--
Added file: http://bugs.python.org/file29943/issue17646-3.diff

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



[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2013-04-19 Thread Martin Morrison

Changes by Martin Morrison m...@ensoft.co.uk:


--
nosy: +isoschiz

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



[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2013-04-19 Thread Martin Morrison

Changes by Martin Morrison m...@ensoft.co.uk:


--
nosy: +isoschiz

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



[issue17732] distutils.cfg Can Break venv

2013-04-19 Thread Éric Araujo

Éric Araujo added the comment:

Looks good, thanks!  I assume you also tested it manually?

I’ll take care of this for the next release.

--
nosy: +georg.brandl, larry
priority: normal - release blocker

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



[issue17735] inspect.findsource raises IndexError

2013-04-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
title: inspect.findsource throws IndexError - inspect.findsource raises 
IndexError

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



[issue17745] packaging no longer planned to be included

2013-04-19 Thread Éric Araujo

Éric Araujo added the comment:

The role of the PEP was to announce changes; I don’t know if changing it now is 
useful, as the release is done and its release notes are accurate.

--
assignee: docs@python - georg.brandl
components:  -Distutils, Distutils2, Documentation
nosy: +eric.araujo, georg.brandl -alexis, docs@python, tarek
versions: +Python 3.3

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



[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'

2013-04-19 Thread Éric Araujo

Éric Araujo added the comment:

+1 to with.  The patch also includes an unrelated change.

--
nosy: +eric.araujo

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



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

2013-04-19 Thread Éric Araujo

Éric Araujo added the comment:

os-release finally provides a cross-OS release file with a specification.  I 
think it should be authoritative, then the lsb-release system (it’s officially 
a script but many OSes just parse a static file), then OS-specific files.

--
assignee:  - lemburg
nosy: +eric.araujo, lemburg

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



[issue12535] Chained tracebacks are confusing because the first traceback is minimal

2013-04-19 Thread Martin Morrison

Changes by Martin Morrison m...@ensoft.co.uk:


--
nosy: +isoschiz

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



[issue14805] Support display of both __cause__ and __context__

2013-04-19 Thread Martin Morrison

Changes by Martin Morrison m...@ensoft.co.uk:


--
nosy: +isoschiz

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



[issue12535] Chained tracebacks are confusing because the first traceback is minimal

2013-04-19 Thread Terry J. Reedy

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


--
type: behavior - enhancement
versions: +Python 3.4 -Python 3.3

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



[issue17642] IDLE add font resizing hot keys

2013-04-19 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


--
nosy: +Todd.Rovito

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



[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Also, this patch seems to break test_zipimport.

--

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



[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Martin Morrison

Martin Morrison added the comment:

print_tb() wasn't passing the file argument through to print_list() - now 
fixed. I also verified none of the other functions had a similar bug.

--
Added file: http://bugs.python.org/file29944/issue17646-4.diff

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



[issue17745] packaging no longer planned to be included

2013-04-19 Thread Tshepang Lekhonkhobe

Tshepang Lekhonkhobe added the comment:

There should at least be a mention that 'packaging' is no longer planned to be 
included, to avoid any confusion/misinformation.

--

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



[issue15392] Create a unittest framework for IDLE

2013-04-19 Thread Tomoki Imai

Tomoki Imai added the comment:

I'm a student thinking of participating in Google Summer of Code.
And want to work to create a unittest for IDLE.

Using unittest.mock seemed to be good way to test GUI.
But there is a problem.
There is no unittest.mock in Python2.
http://docs.python.org/2/library/unittest.html

I think using third party mock seemed to be ok, but not best way.
https://pypi.python.org/pypi/mock
Because, IDLE is a part of official python.
I think relying on third party module is not good.

Of cource, I would forcus on non-GUI unittest.
But GUI-test would be needed.

--
nosy: +Tomoki.Imai

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



[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2013-04-19 Thread Roger Serwy

Roger Serwy added the comment:

Good catch Terry! I've been testing using python -m idlelib.idle instead of 
importing it from an interactive prompt. I'll need to remember to consider that 
test vector in the future.

I figured out why those messages are popping up. The Tk event loop remains 
running when in the interactive Python REPL due to a PyOS_InputHook driving the 
Tk loop periodically. Some .after callbacks expire and Tcl tries calling into a 
Python function that no longer exists. The ColorDelegator's recolorize() and 
PyShell's poll_subprocess() are the callbacks. (Adding a print(name, func) to 
the after() function in Lib/tkinter/__init__.py revealed the link between the 
Tcl reference name and the Python reference name.)

The extra ColorDelegator call is actually a bug, related to #13495. (I need to 
expand it that issue to include this new problem.) Two ColorDelegators get 
loaded, and only one gets its close() method called which properly cancels the 
.after callback into recolorize. The orphaned ColorDelegator still exists in 
the delegator chain with an active .after callback.

Once both those .after callbacks are canceled, then the error messages Terry 
sees are no longer shown.

The rev1 patch includes extra code to handle cancellation of the 
poll_subprocess .after callback. I'll be posting the multi-color delegator fix 
to #13495.

--
dependencies: +IDLE: Regressions - Two ColorDelegator instances loaded and -e 
no longer edits new files.
Added file: http://bugs.python.org/file29945/issue5492_rev1.patch

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



[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2013-04-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0ad18bb85371 by R David Murray in branch 'default':
#9607: Add tests for the keyword module.
http://hg.python.org/cpython/rev/0ad18bb85371

--
nosy: +python-dev

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



[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2013-04-19 Thread R. David Murray

R. David Murray added the comment:

Wow, it sure took me a long time to get back to this.  Greg, the test ideas in 
your patch were great, and I used them all, but I wound up rewriting the actual 
code to better match the style of our other unit tests, and also to take 
advantage of some of our test infrastructure that should (I hope) allow the 
tests to run correctly on Windows as well as unix.

Thanks for your work, and sorry it took me so long to do something with it.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type: behavior - enhancement
versions: +Python 3.4 -Python 3.2

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



[issue13495] IDLE: Regressions - Two ColorDelegator instances loaded

2013-04-19 Thread Roger Serwy

Roger Serwy added the comment:

I will split the good_load flag bug into its own issue.

While addressing a bug in #5492, another doubled-up ColorDelegator problem 
appeared, tracing back to #1586.

The dual_delagators patch removes the code which loads the extra color 
delegators as well as ensures that ResetColorizer loads a color delegator since 
ispythonsource() now always returns True in a PyShell instance.

--
assignee:  - roger.serwy
title: IDLE: Regressions - Two ColorDelegator instances loaded and -e no longer 
edits new files. - IDLE: Regressions - Two ColorDelegator instances loaded
versions: +Python 3.4 -Python 3.2
Added file: http://bugs.python.org/file29946/dual_delegators.patch

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



[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2013-04-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d499189e7758 by R David Murray in branch 'default':
#9607: restore keywords.kwlist after testing it.
http://hg.python.org/cpython/rev/d499189e7758

--

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



[issue17798] IDLE: can not edit new file names when using -e

2013-04-19 Thread Roger Serwy

New submission from Roger Serwy:

This is a split from #13495 as it is truly a separate issue. Here's a partial 
quote from msg151278:


IDLE 3 no longer allows for editing of new files from the command line. 

For example:

   idle -e /tmp/newfile.py 

will momentarily flash an editor window before it is closed. This is due to 
good_load not being set. What's worse is that the IDLE process will continue 
running without having any visible windows open. 


Rather than remove the good_load behavior as was done in an earlier patch in 
#13495, I added an extra line in the initialization logic so that the editor 
can edit newly named files while still rejecting files that didn't load 
properly.

--
assignee: roger.serwy
components: IDLE
files: goodload.patch
keywords: patch
messages: 187399
nosy: roger.serwy, terry.reedy
priority: normal
severity: normal
stage: patch review
status: open
title: IDLE: can not edit new file names when using -e
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file29947/goodload.patch

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



[issue13262] IDLE opens partially hidden

2013-04-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

For me, this is currently about the most annoying behavior of IDLE.

--
nosy: +roger.serwy
versions: +Python 2.7, Python 3.3

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



[issue13262] IDLE opens partially hidden

2013-04-19 Thread Roger Serwy

Roger Serwy added the comment:

Why not change the initial window size from 80x40 to 80x38?

--

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



[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Benjamin Peterson

Benjamin Peterson added the comment:

It would be great to have a test for that. :)

--

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



[issue17468] Generator memory leak

2013-04-19 Thread Guido van Rossum

Guido van Rossum added the comment:

Unless I'm the only person on earth who can understand this I beg to be left 
out of this bug. I just don't have the bandwidth right now to look into it. If 
it's really about GC and __del__ and generators, maybe Tim Peters would be 
willing to look into it? Or perhaps Neil Schemenauer, who IIRC did a lot of the 
early work on GC.

--

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



[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2013-04-19 Thread Todd Rovito

Todd Rovito added the comment:

Here is a simple patch that simply explains negative indexes and negative 
slices are not supported for the string format documentation.  Perhaps more 
documentation needs to be created else where to help explain why all 
collections do not need to support negative indexes and negative slices? If so 
please let me know and I will create it.  But I think this patch at least 
clarifies for the use case of String format.

--
keywords: +patch
versions: +Python 3.4 -Python 3.2
Added file: 
http://bugs.python.org/file29948/7951NegativeIndexesForStringFormat3dot4.patch

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



[issue13262] IDLE opens partially hidden

2013-04-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

That does not work because Idle just moves the window down to compensate. (It 
seems to take two openings to have that happen.) 

Even if that worked, I would still ask why I should have to make the window 
smaller, when I want it larger (44 lines), located where I want it (all 
visible). Why can't Idle act like a well-behaved Window app? Saving the last 
Window position and size is fairly common. In any case, Edit windows are opened 
near the top of the screen, as they ought to be, instead of almost touching the 
bottom.

--

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



[issue17468] Generator memory leak

2013-04-19 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
nosy:  -gvanrossum

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



[issue17799] settrace docs are wrong about c_call events

2013-04-19 Thread Ned Batchelder

New submission from Ned Batchelder:

Looking into this Stack Overflow question:  
http://stackoverflow.com/questions/16115027/pythons-sys-settrace-wont-create-c-call-events

Reading the code in c_eval.c and friends, it looks like c_call events are 
never passed to the trace function, only to the profile function.  The docs are 
wrong and should be fixed.

The setprofile docs simply point to settrace for details, so the text needs to 
accommodate both functions' needs.

--
assignee: docs@python
components: Documentation
messages: 187406
nosy: docs@python, nedbat
priority: low
severity: normal
status: open
title: settrace docs are wrong about c_call events
versions: Python 2.7, Python 3.3

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