[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f14afc959df by Benjamin Peterson in branch '3.5':
make opening brace of container literals and comprehensions correspond to the 
line number and col offset of the AST node (closes #25131)
https://hg.python.org/cpython/rev/4f14afc959df

New changeset 9d895c09c08a by Benjamin Peterson in branch 'default':
merge 3.5 (#25131)
https://hg.python.org/cpython/rev/9d895c09c08a

--
nosy: +python-dev
resolution:  -> fixed
stage: test needed -> 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



[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread acx01bc

acx01bc added the comment:

@steve.dower : the vc_redist packages doesn't list the files it installs, I'm 
not sure of the names of the files, but who cares, please look at my screenshot 
of dependency walker, it shows how different versions of Python win32 releases 
that I downloaded on python.org (3.5.0, 3.4.3,3.3.x) used different vc-runtime 
settings, and how some of them don't work on Vista.

@Wolfgang Langner : "this update doesn't apply to you system" :-)

So what I'm saying is : please be careful with the compiler options if you want 
you executables to be compatible with vista/7/8/10

--

___
Python tracker 

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



[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread acx01bc

Changes by acx01bc :


--
status: open -> closed

___
Python tracker 

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



[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Xiang Zhang

New submission from Xiang Zhang:

According to rfc3986, section 3.4:

 The query component is indicated by the first question
 mark ("?") character and terminated by a number sign ("#") character
 or by the end of the URI.

 The characters slash ("/") and question mark ("?") may represent data
 within the query component.

But for CGIRequestHandler, it uses the content after the last ? as
query component. For uri http://localhost:8000/cgi-bin/test.py?a=b?c=d,
the QUERY_STRING is c=d.

--
files: multiple?.diff
keywords: patch
messages: 251586
nosy: xiang.zhang
priority: normal
severity: normal
status: open
title: CGIRequestHandler behave incorrectly with query component consisting 
mutliple ?
Added file: http://bugs.python.org/file40574/multiple?.diff

___
Python tracker 

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



[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread Steve Dower

Steve Dower added the comment:

In your original post you refer to the "famous 
api-ms-win-crt-runtime-l1-1-0.dll problem" - I am not aware of this problem, so 
you will need to provide more context on what is actually not working for you.

Dependency Walker doesn't know how to resolve those DLLs on any platform - 
Win10 looks exactly the same. A limitation of a diagnostic tool that hasn't 
been updated in years does not qualify as something "not working".

But since you've closed the issue I have to assume that it isn't really an 
issue.

--

___
Python tracker 

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



[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Xiang Zhang

Changes by Xiang Zhang <18518281...@126.com>:


--
type:  -> behavior
versions: +Python 3.6

___
Python tracker 

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



[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-25 Thread R. David Murray

R. David Murray added the comment:

Because the two summaries should be *different* in most cases.  The first line 
of the checkin should ideally be a single sentence of less than 80 characters, 
while the NEWS item will almost always be longer.  The NEWS item should be a 
complete summary, while the first checkin line is a 'summary in context' (ie: 
it can assume the reader knows the files that were changed, since log -v will 
show you that).  This obviously requires that the succeeding paragraphs expand 
on that minimal summary (in most cases) in a way that doesn't look like a NEWS 
entry.

Now, this is obviously my preferred style and others may have different styles 
and/or disagree, but I'd like that style to be supported.

Note also that a big part of putting the NEWS entries in the tracker is so that 
they can be *edited*.  Populating them initially from the checkin message is 
OK, but I predict that the actual workflow will be to create the NEWS entry in 
the tracker as part of getting the patch to the 'commit ready' point, which 
means that having a tool that pre-populates the commit message from the tracker 
NEWS entry will probably be more useful to most people.  (And yeah, I'm sure 
that means a lot of commits will just have the NEWS entry as the commit 
message, which will make me sad, but oh well :)

--

___
Python tracker 

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



[issue24820] IDLE themes for light on dark

2015-09-25 Thread Mark Roseman

Mark Roseman added the comment:

Sounds good. I agree picking a few and tweaking them would be a good way 
forward (and incidentally, the 'Cobalt' theme is the one I use in my regular 
editor!)

--

___
Python tracker 

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



[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-25 Thread Xiang Zhang

Xiang Zhang added the comment:

The path with query component are unquoted entirely and then pass into
_url_collapse_path.
I think this behaviour is wrong and according to rfc3875 query component
should be left encoded in QUERY_STRING.
This patch seems to solve the problem. It passes the tests and with
martin's script, it gets:

('QUERY_STRING', 'k=aa%2F%2Fbb&//q//p//=//a//b//')

has the same behaviour with apache.

--
keywords: +patch
Added file: http://bugs.python.org/file40573/cgihandler.diff

___
Python tracker 

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



[issue25210] Special-case NoneType() in do_richcompare()

2015-09-25 Thread R. David Murray

R. David Murray added the comment:

As I said to Ezio on irc, I like his formulation.

--

___
Python tracker 

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



[issue25230] Unix datagram sockets not supported

2015-09-25 Thread Guido van Rossum

Guido van Rossum added the comment:

See https://github.com/python/asyncio/pull/267. Can you patch that in and see 
if you can make it work?

--

___
Python tracker 

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



[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread eryksun

eryksun added the comment:

> Dependency Walker doesn't know how to resolve those DLLs on 
> any platform - Win10 looks exactly the same. 

On older systems the api-ms-win-crt-* DLLs should be physically installed in 
System32, so Dependency Walker should find them if they exist. For example, on 
a Windows 7 box:

>dir /b C:\Windows\System32\api-ms-win-crt*.dll
api-ms-win-crt-conio-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-multibyte-l1-1-0.dll
api-ms-win-crt-private-l1-1-0.dll
api-ms-win-crt-process-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll

In Windows 10 these DLLs are an API Set contract; they don't actually exist in 
the filesystem. For example, on Windows 10 GetModuleHandle for all of these 
DLLs returns a handle to ucrtbase.dll, whereas on Windows 7 each is a uniquely 
loaded module.

--

___
Python tracker 

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



[issue24820] IDLE themes for light on dark

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

For me, Idle comes with one light theme, under 2 names. I don't know what 
happens on Mac.  Let us add one dark theme as Idle Dark, before 3.4.4 if 
possible.

We can later consider whether to add more light and dark built-in themes. But I 
think more important would be to add the ability to change at once the 
background of all elements that use the default (normal) background. I believe 
you have mentioned that one might want to change white to an off-white.  Cobalt 
is an off-black, but someone might prefer black black, or the slightly bluer 
background of Windows Power Shell.  We should not have multiple themes just for 
background variations.

--
versions: +Python 3.4

___
Python tracker 

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



[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-09-25 Thread Brett Cannon

Brett Cannon added the comment:

Here is a patch that should work. Can someone who has had the problem test it? 
It works in my limited testing but I want to make sure this solves it before I 
commit it.

--
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file40580/issue25099.diff

___
Python tracker 

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



[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-25 Thread Brett Cannon

Brett Cannon added the comment:

I should mention I would have committed my patch but test_einter is hanging for 
me, so if someone else wants to test the patch and verify it works then I can 
commit it.

--
assignee:  -> brett.cannon

___
Python tracker 

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



[issue23447] Import fails when doing a circular import involving an `import *`

2015-09-25 Thread Brett Cannon

Brett Cannon added the comment:

Just so Steven knows, I'm still thinking about whether I want to accept the 
patch (and waiting to see if anyone else has an opinion =). I did realize that 
the patch as it stands does not add the found module as an attribute on the 
package which is potentially one way the semantics subtly shift with this patch.

--

___
Python tracker 

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



[issue24820] IDLE themes for light on dark

2015-09-25 Thread Mark Roseman

Mark Roseman added the comment:

Ok, do you want to add the dark theme in then?  I'll add some code to the ttk 
based preferences dialog (for when that gets in) to give the user the option of 
applying the new background color to all the other elements which had the same 
original background color.

--

___
Python tracker 

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



[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-09-25 Thread Mark Roseman

Mark Roseman added the comment:

Have added the 'apply changes to other elements with same background?' feature 
in my private copy. To save constantly uploading new versions on every tweak, 
when we're ready to evaluate/integrate, I'll pass it along.

--

___
Python tracker 

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



[issue25236] str.maketrans wrong description for optional 3rd parameter

2015-09-25 Thread Zachary Ware

Changes by Zachary Ware :


--
stage:  -> resolved

___
Python tracker 

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



[issue15347] IDLE - does not close if the debugger was active

2015-09-25 Thread Mark Roseman

Mark Roseman added the comment:

Doing some testing using "-n". Various close/quit scenarios are either 
disallowed or broken as it turns out. I found that removing the "interacting" 
check on close improved the matter quite substantially, so that I could quit 
when the debugger was sitting waiting for input, without hangs etc.

Have attached remove-interacting-debugger.patch (which can be applied on top of 
fix-mainloop2.patch (from #24455, which includes the changes in 
fix-nested-mainloop.patch for this bug).

--
Added file: http://bugs.python.org/file40581/remove-interacting-debugger.patch

___
Python tracker 

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



[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Martin> Normally the documentation doesn’t mention changes from Python 2

Right: forward notes in 2.7 doc, no backward notes in 3.x doc. The 2.7 doc has 
near the top "Note: Tkinter has been renamed to tkinter in Python 3. The 2to3 
tool will automatically adapt imports when converting your sources to Python 
3."  Perhaps this should be expanded to mention the other tkinter imports.

We collectively agreed that adding backward notes in 3.x docs is not needed for 
beginners who start with 3.x, and would actively confuse them with information 
most do not need. I think breaking this rule requires agreement of more than 
the nosy list here: at minimum, Georg Brandl and Serhiy Storchaka, but better 
pydev.

There are still occasional issues about removing 2.x mentions or, more likely 
now, revising leftover 2.x examples.  The OP is complaining about an example 
that was properly revised.  If a new 2.x note were added, someone might come 
along and remove it.

I agree with
Mark> Does this open a can of worms?
Just for tkinter, there is also "import tkFont" (2.x) versus "import 
tkinter.font" (3.x) and similar for other stuff in the 'tkinter' package.  
Consequently, the proposed note is incomplete.

Carol> the Tkinter project does start with a capital 'T'
I am not aware of a 'Tkinter project' separate from the tkinter module in the 
stdlib, maintained by various people, though current mostly by Serhiy.  In any 
case, the Python project starts with 'P' while the python binaries start with 
'p'.

The OP simply made a mistake; there is no bug in the 3.x doc.  The tkinter 
package (unlike idlelib) follows 3.x rules.  I think the issue should have been 
closed immediately as 'not a bug', and should be so closed now.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue17781] optimize compilation options

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#24915 is about adding pgo and has a slew of patches.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue21264] test_compileall fails to build in the installed location

2015-09-25 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee:  -> brett.cannon

___
Python tracker 

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



[issue21264] test_compileall fails to build in the installed location

2015-09-25 Thread Brett Cannon

Brett Cannon added the comment:

Issue #25099 seems to also be related to a similar issue. A proposed fix can be 
found over there.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Tim Peters

Tim Peters added the comment:

The only way to be certain you're never going to face re-entrancy issues in the 
future is to call malloc() directly - and hope nobody redefines that too with 
some goofy macro ;-)

In the meantime, stick to PyMem_Malloc().  That's the intended way for code 
holding the GIL to do lowest-level memory allocation.  Uses of 
PyMem_RawMalloc() should be extremely rare, typically only in contexts where 
Python internals _know_ the GIL isn't being held, and can't reasonably try to 
acquire the GIL.  It's already being used in a few contexts where it probably 
shouldn't be, and each such use needlessly complicates future changes.

If PyMem_Malloc() does grow re-entrancy issues in the future, deques will be 
the least of our problems.  I'd strongly oppose it before then.  It's 
_intended_ to be as low level as possible (it was created to begin with just to 
worm around cross-platform insanity when called with a 0 argument).

--
nosy: +tim.peters

___
Python tracker 

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



[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Thanks Timmy!

--

___
Python tracker 

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



[issue25236] str.maketrans wrong description for optional 3rd parameter

2015-09-25 Thread Brian O'Neill

New submission from Brian O'Neill:

The doc says "If there is a third argument, it must be a string, whose 
characters will be mapped to None in the result." The characters of the 
optional third argument get mapped to '', of course, not to None.

--
assignee: docs@python
components: Documentation
messages: 251603
nosy: BrianO, docs@python
priority: normal
severity: normal
status: open
title: str.maketrans wrong description for optional 3rd parameter
type: behavior
versions: Python 3.2, Python 3.3, 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



[issue25233] AssertionError from asyncio Queue get

2015-09-25 Thread STINNER Victor

STINNER Victor added the comment:

2015-09-25 20:12 GMT+02:00 Yury Selivanov :
>> This looks like an important regression and we should fix it before 3.5.1 
>> goes out.
>
> I agree.  Any ETA on 3.5.1?

See https://mail.python.org/pipermail/python-dev/2015-September/141705.html

--

___
Python tracker 

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



[issue25234] test_einter.test_os_open hangs under Xcode 7

2015-09-25 Thread Brett Cannon

New submission from Brett Cannon:

Specifically:
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

I'm assuming this is a Mac issue since none of the buildbots are having a 
similar issue.

--
components: Macintosh
messages: 251597
nosy: brett.cannon, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: test_einter.test_os_open hangs under Xcode 7
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2015-09-25 Thread Kai Groner

New submission from Kai Groner:

Because MIMEPart.add_attachment() creates parts using type(self), 
EmailMessage.add_attachment() creates parts of type EmailMessage.  This results 
in a MIME-Version header being added to parts where it isn't needed.

https://tools.ietf.org/html/rfc2045#section-4

--
components: email
files: test_add_attachment_does_not_add_MIME_Version_in_attachment.patch
keywords: patch
messages: 251600
nosy: barry, groner, r.david.murray
priority: normal
severity: normal
status: open
title: EmailMessage.add_attachment() creates parts with spurious MIME-Version 
header.
type: behavior
versions: Python 3.5
Added file: 
http://bugs.python.org/file40576/test_add_attachment_does_not_add_MIME_Version_in_attachment.patch

___
Python tracker 

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



[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2015-09-25 Thread Kai Groner

Changes by Kai Groner :


Added file: http://bugs.python.org/file40578/test_MIME_Version.patch

___
Python tracker 

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



[issue25154] Drop the pyvenv script

2015-09-25 Thread Brett Cannon

Brett Cannon added the comment:

Here is a patch that adds a message to stderr about the deprecation.

--
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file40579/issue25154.diff

___
Python tracker 

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



[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-25 Thread Brett Cannon

Brett Cannon added the comment:

Here is a tweaked 3.6 patch so that --pgo doesn't even emit the failure count 
so you really can't tell what is going on unless some error info from the test 
spews out on to the shell (which I can't seem to stop since 2>/dev/null causes 
a test failure).

--
Added file: http://bugs.python.org/file40575/issue25188.diff

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-25 Thread Cyd Haselton

Cyd Haselton added the comment:

Still battling this bus error issue.  Recompiling gdb --with-python did not 
help; I still cannot get any useful info out of it. I suspect it may be due to 
this error:

setpgrp failed in child: No such process

but I'm not sure.

At this point I'm going to try downloading the Google-patched 
version...hopefully it is patched such that the setpgrp bug is resolved.

--

___
Python tracker 

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



[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1266e98fd04c by Brett Cannon in branch 'default':
Issue #25186: Remove duplicated function from importlib._bootstrap_external
https://hg.python.org/cpython/rev/1266e98fd04c

--
nosy: +python-dev

___
Python tracker 

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



[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2015-09-25 Thread Kai Groner

Kai Groner added the comment:

Relatedly EmailMessage.make_mixed(), etc don't set MIME-Version on the 
multipart (it is only set on the part).  Additional tests attached.

--
Added file: 
http://bugs.python.org/file40577/test_add_attachment_does_not_add_MIME_Version_in_attachment.patch

___
Python tracker 

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



[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-25 Thread Brett Cannon

Changes by Brett Cannon :


--
resolution:  -> fixed
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



[issue25236] str.maketrans wrong description for optional 3rd parameter

2015-09-25 Thread Brian O'Neill

Brian O'Neill added the comment:

Closed as this is a actually true of maketrans.

--
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



[issue25233] AssertionError from asyncio Queue get

2015-09-25 Thread Guido van Rossum

New submission from Guido van Rossum:

See https://github.com/python/asyncio/issues/265 and 
https://github.com/python/asyncio/issues/268. This looks like an important 
regression and we should fix it before 3.5.1 goes out.

The symptom is "AssertionError: queue non-empty, why are getters waiting?" from 
Queue.get or Queue.get_nowait. The first issue discusses the cause and a 
possible hack to fix it.

--
components: asyncio
keywords: 3.5regression
messages: 251590
nosy: gvanrossum, haypo, yselivanov
priority: release blocker
severity: normal
status: open
title: AssertionError from asyncio Queue get
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



[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> I'm not sure that you understand what you are trying to do.

The goal is to avoid possible re-entrancy both now and in the future.  Since 
PyMem_RawMalloc is thread-safe and doesn't require the GIL to be held, it is 
guaranteed that there won't be a callback into regular Python that could mutate 
any of the data structures.

--

___
Python tracker 

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



[issue25233] AssertionError from asyncio Queue get

2015-09-25 Thread Yury Selivanov

Yury Selivanov added the comment:

> This looks like an important regression and we should fix it before 3.5.1 
> goes out.

I agree.  Any ETA on 3.5.1?

--

___
Python tracker 

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



[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread eryksun

eryksun added the comment:

> this update doesn't apply to you system

Was that Windows6.0-KB2999226-x86.msu? Open a command prompt and enter the 
following:

wmic os get Version, OSArchitecture

Windows Vista SP 2 is version 6.0.6002, and the OS architecture should be 
32-bit.

--

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-25 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
nosy: +terry.reedy

___
Python tracker 

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



[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Martin Panter

Martin Panter added the comment:

Thanks for the report and patch. Would you be interested in making a new 
regression test for this bug?

While we are fixing this code, we might as well simplify that whole “if” block 
to

[rest, query] = rest.partition("?")

--
components: +Library (Lib)
nosy: +martin.panter
stage:  -> patch review
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



[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-25 Thread Martin Panter

Martin Panter added the comment:

It would be good to have a regression test case for this one too.

--
stage: needs patch -> patch review

___
Python tracker 

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



[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

OK, will ask before review.

--

___
Python tracker 

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



[issue25171] does not build on OpenBSD with no value defined for PY_GETENTROPY

2015-09-25 Thread Martin Panter

Martin Panter added the comment:

Patch looks sensible to me, although I notice the rest of that module tends to 
prefer the #elif defined(PY_GETENTROPY) style. It looks like this might be 
introduced with Issue 25003.

--
nosy: +haypo, martin.panter
stage:  -> patch review
type:  -> compile error

___
Python tracker 

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



[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN

2015-09-25 Thread Martin Panter

Martin Panter added the comment:

I just tested your patch on Arch Linux with the default 3.6 Python branch. The 
test suite passed happily and all seems to be well:

Python 3.6.0a0 (python_have_alpn.diff qbase qtip tip:eb8ee60ace13, Sep 25 2015, 
22:53:15) 
[GCC 5.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.HAS_ALPN
True
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.2d 9 Jul 2015'

--
nosy: +martin.panter

___
Python tracker 

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



[issue24820] IDLE themes for light on dark

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Here is an Idle Dark theme that is the near-inverse of the standard Idle theme, 
with foreground colors tweaked just a bit to account for the background switch 
and its blue tint.  It otherwise retains the current color mapping.  What do 
you think?

--
Added file: http://bugs.python.org/file40582/idle-dark.cfg

___
Python tracker 

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



[issue24820] IDLE themes for light on dark

2015-09-25 Thread Mark Roseman

Mark Roseman added the comment:

Looks good to me!

--

___
Python tracker 

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



[issue25211] Error message formatting errors in int object unit-test script

2015-09-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 697781ff3b49 by Martin Panter in branch '3.4':
Issue #25211: Eliminate lazy error message class by using subTest
https://hg.python.org/cpython/rev/697781ff3b49

New changeset 6e11708dcb3b by Martin Panter in branch '3.5':
Issue #25211: Merge test_long from 3.4 into 3.5
https://hg.python.org/cpython/rev/6e11708dcb3b

New changeset 11ad44d4177f by Martin Panter in branch 'default':
Issue #25211: Merge test_long from 3.5
https://hg.python.org/cpython/rev/11ad44d4177f

--

___
Python tracker 

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



[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-09-25 Thread Mark Roseman

Mark Roseman added the comment:

Have attached find-dialogs.patch, which does some cosmetic tweaks to the 
existing dialogs, as per the previous screenshot. It uses ttk widgets if 
available, and standard Tk widgets if not.

Relies on the ui.py module (not attached, as it is changing often).

--
Added file: http://bugs.python.org/file40583/find-dialogs.patch

___
Python tracker 

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



[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-25 Thread Thijs van Dien

Thijs van Dien added the comment:

That works fine, but then again the ticket only concerns the context menu of 
_shortcuts_ to Python files. Opening Python files directly, either via "Edit 
with IDLE" in context menu or directly via the CLI, has worked from the 
beginning.

--

___
Python tracker 

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



[issue25211] Error message formatting errors in int object unit-test script

2015-09-25 Thread Martin Panter

Changes by Martin Panter :


--
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



[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e406d62014f7 by Terry Jan Reedy in branch '2.7':
Issue #25173: Replace 'master' with 'parent' in tkinter.messagebox calls.
https://hg.python.org/cpython/rev/e406d62014f7

New changeset e494316a9291 by Terry Jan Reedy in branch '3.4':
Issue #25173: Replace 'master' with 'parent' in tkinter.messagebox calls.
https://hg.python.org/cpython/rev/e494316a9291

--
nosy: +python-dev

___
Python tracker 

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



[issue25209] Append space after completed keywords

2015-09-25 Thread Martin Panter

Martin Panter added the comment:

Yes I am interesting in making a patch for auto-completing module names. I’ll 
leave it on my to-do list, but don’t expect it overnight. :) My code does some 
rough parsing of Python syntax, but maybe that is not needed for “import x”, 
though it might be needed to support module attributes for “from x import y”.

--

___
Python tracker 

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



[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am closing this because for 3.4.3 and 3.5.0 on Win 7, both of which use tk 
8.6.x, the file open dialog works as in the 'correct' png, with a navigation 
pane.

--
resolution:  -> out of date
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



[issue25237] Add doc for tkinter commondialog.Dialog and subclasses

2015-09-25 Thread Terry J. Reedy

New submission from Terry J. Reedy:

As noted in #15346, several modules are not documented except in the code.  
Having just had to do that for #25173, I would like there to be a page for 
commondialog.Dialog and its subclasses, messagebox.Message and 
colorchooser.Chooser, and the associated module functions.  I hope to submit a 
.rst file for review if no one else does so.  My plan is to copy from web pages 
produced by the pydoc server, add markup, and edit.

--
messages: 251630
nosy: serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Add doc for tkinter commondialog.Dialog and subclasses
type: enhancement
versions: Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

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



[issue15346] Tkinter extention modules have no documentation

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I opened #25237 for commondialog, messagebox, and colorchooser.

--
dependencies: +Add doc for tkinter commondialog.Dialog and subclasses
nosy: +terry.reedy
versions: +Python 3.5, Python 3.6 -Python 2.6, 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



[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Xiang Zhang

Xiang Zhang added the comment:

I add a testcase but I worry it's not in the right format. Please review it. 
Partition is a good choice here.

--
Added file: http://bugs.python.org/file40584/multiple?.patch

___
Python tracker 

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



[issue25237] Add doc for tkinter commondialog.Dialog and subclasses

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Side issue: Dialog has this:
# we need a dummy widget to properly process the options
# (at least as long as we use Tkinter 1.63)
w = Frame(self.master)

Do you know what 'Tkinter 1.63' refers to?  In 2.7, Tkinter.__version__ is 
'$Revision: 81008 $'.  If self.master is not None, I would expect that it can 
be used in
s = w.tk.call(self.command, *w._options(self.options))
s = self._fixresult(w, s)

--

___
Python tracker 

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



[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Opened #25237 about Dialog+subclass docs.

--
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



[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-25 Thread Xiang Zhang

Xiang Zhang added the comment:

Add the testcase and use str.partition.

--
Added file: http://bugs.python.org/file40585/cgihander.patch

___
Python tracker 

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



[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread Wolfgang Langner

Wolfgang Langner added the comment:

As a note, I had problems installing Python 3.5 on a computer at work.
The redist package could not install with access denied error.

But the workaround installing the Universal CRT update helped.
After this I was able to install Python 3.5 without problems.

--
nosy: +tds333

___
Python tracker 

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



[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread STINNER Victor

STINNER Victor added the comment:

"Victor, I was thinking of switching to PyMem_RawMalloc instead of 
PyMem_Malloc.  The advantages are that there are guaranteed to be no 
side-effects, the GIL doesn't need to be held, and there is less overhead.  Are 
there any disadvantage I should know about?"

For me, PyMem_Malloc() can be faster than PyMem_RawMalloc() because the GIL is 
held. In practice... both function are very thin wrapper to malloc(), so it's 
exactly the same :-) In Objects/obmalloc.c, you have:

#define PYRAW_FUNCS _PyMem_RawMalloc, _PyMem_RawCalloc, _PyMem_RawRealloc, 
_PyMem_RawFree
...
#define PYMEM_FUNCS PYRAW_FUNCS

So PyMem_Malloc() and PyMem_RawMalloc() are *currently* exactly the same.

I'm not sure that you understand what you are trying to do. If you expect 
better performances, you should try to use PyObject_Malloc() instead, to 
benefit from the fast Python allocator for small allocations (512 bytes and 
less).

--

___
Python tracker 

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



[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Victor, I was thinking of switching to PyMem_RawMalloc instead of PyMem_Malloc. 
 The advantages are that there are guaranteed to be no side-effects, the GIL 
doesn't need to be held, and there is less overhead.  Are there any 
disadvantage I should know about?

Serhiy, I'm still considering your patch.  I have a strong aversion to putting 
a big block on the stack and don't like having to do a full block memcpy every 
time a deque is cleared on deallocation.  If you don't see an actual bug in 
patch 2, I'm inclined to use that approach (especially since the popping 
fallback approach will likely never be called in practice).

--

___
Python tracker 

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



[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch that copies only used part of the block.

I don't see an actual bug in patch 2 besides that it fallbacks to current 
popping behavior.

--
Added file: http://bugs.python.org/file40572/deque_nonreentrant_clear4.diff

___
Python tracker 

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



[issue25231] Argparse module and escape sequence (special symbols) in argument value

2015-09-25 Thread Ondřej Profant

New submission from Ondřej Profant:

I am trying to put tabulator '\t' into argument value. 

Minimal working example:


#!/usr/bin/env python3

import argparse

def main():
parser = argparse.ArgumentParser()
parser.add_argument('-f', '--foo', default="test", help="test")
args = parser.parse_args()

print("Argument foo is: " + args.foo + "|")
print("Tabulator usage: |\t|")

if __name__ == '__main__':
main()


My attempts:
./test.py -f \t
./test.py -f '\t'
./test.py -f "\t"

But this is not functional. Is there way to put special characters into 
argument?
~

--
components: Library (Lib)
messages: 251580
nosy: Ondřej Profant
priority: normal
severity: normal
status: open
title: Argparse module and escape sequence (special symbols) in argument value
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue25231] Argparse module and escape sequence (special symbols) in argument value

2015-09-25 Thread Martin Panter

Martin Panter added the comment:

As far as I know “argparse” takes arguments straight from the command line 
without interpreting any escape sequences. Perhaps you should look up how to 
pass a literal tab on the command line, but this is nothing specific to do with 
Python. E.g. in the Bash shell the following might work:

$ echo $'a\tb'  # Bash specific syntax
a   b
$ echo "$(printf 'a\tb')"  # Any Posix shell
a   b
$ echo "a   b"  # Ctrl+V, Tab for literal tab to bypass completion
a   b

--
nosy: +martin.panter
resolution:  -> third party
status: open -> closed

___
Python tracker 

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