[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-03 Thread Stefan Krah

Stefan Krah added the comment:

> Whether the hardware is MPX enabled is irrelevant for the build process.


The build process is only one part of the equation.  Compilers do have
bugs (Python has been affected by gcc, Visual Studio and suncc bugs),
and we should test the actual generated MPX code.

--

___
Python tracker 

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



[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Nick Coghlan

Nick Coghlan added the comment:

Issue 992389 is the previous incarnation of this bug report, while issue 17636 
made the change so that from imports will resolve in some situations where this 
error will occur.

That fact that "from x.y.b import foo" may now resolve in cases where "import 
x.y.b; foo = x.y.b.foo" will fail should indeed be covered in the documentation.

If PEP 8 were to be updated at all, it should just say "Don't use circular 
imports. If you can't refactor your design to move the common components out to 
a shared helper module, then move everything into the same module - the 
irremovable circular dependency indicates the code is too tightly coupled to 
live in different modules".

--

___
Python tracker 

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



[issue25276] Intermittent segfaults on PPC64 AIX 3.x

2015-10-03 Thread Stefan Krah

Stefan Krah added the comment:

> It's possible that Python needs to be built with special options to allow 
> additional malloc space (-bmaxdata:0xN000).

It seems to be the case, see Misc/README.AIX.  This could explain the
MemoryErrors, but not the segfaults.


Are computed-gotos stable on gcc-AIX?  The README recommends disabling
them for xlc.


I'm also not sure how well Python supports threads on AIX. Often
these problems go away on unsupported platforms when configuring
--without-threads.

--

___
Python tracker 

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



[issue24177] Add https?_proxy support to http.client

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

And it should only be added if it actually makes *sense* in the architecture of 
http.client, which I haven't reviewed with this in mind.

--

___
Python tracker 

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



[issue24177] Add https?_proxy support to http.client

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

I agree, I think that any proxy support in http.client would need to be opt-in 
and not on-by-default, exactly because it is a lower level library.

--

___
Python tracker 

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



[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2015-10-03 Thread desbma

desbma added the comment:

Previous sentence is if we only mention 3.4.3 of course.

--

___
Python tracker 

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



[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2015-10-03 Thread desbma

desbma added the comment:

In my mind 3.4.3 < 3.5, so unless mentioned otherwise it is implied that  the 
change is in all versions of the 3.5 branch.

--

___
Python tracker 

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



[issue25258] HtmlParser doesn't handle void element tags correctly

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

I suspect that calling startendtag is also backward incompatible, in that there 
may be parsers out there that are depending on starttag getting called for 
, and endtag not getting called (that is, endtag getting called for it 
will cause them to break).  I would hope that this would not be the case, but 
I'm worried about it.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-03 Thread Tim Graham

Tim Graham added the comment:

It might be a case of issue22983. I'll try to look into the details and offer a 
patch next week.

For what it's worth, there are other regressions in Python 3.2 cookie parsing 
that makes the latest patch release (3.2.6) unusable with Django (issue22758), 
so from my perspective fixing this issue there isn't as high priority as that 
one.

--

___
Python tracker 

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



[issue25303] py_compile disregards PYTHONDONTWRITEBYTECODE and -B

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

The only reason to call py_compile is to get byte code.  Honoring 
PYTHONDONTWRITEBYTECODE would, IMO, be a bug, at least according to its 
documentation (by implication, it isn't explicit about it, and perhaps it 
should be).

Your use case could be added as a feature by adding a command line option to 
py_compile, but that would be 3.6 only.

On the other hand, you can achieve your use case via the following:

python -B -c 'import $MYFILE'

(without the '.py' on the end, obviously).

which is actually shorter, so at first I was inclined to just reject that as 
unneeded.  (In a Makefile you'd want to CD to the directory or put the 
directory on the PYTHONPATH, which makes it slightly longer but not much.)

py_compile has an interesting little bug, though: if you pass it a script name, 
it will happily create an *invalid* .pyc file (eg: python -m py_compile results 
in a tempcpython-36.pyc file).  compileall on the other hand just ignores files 
that don't end in .py, which is also a bit odd when the file is named 
explicitly on the path.  So I suppose that's a bug too.

But absent py_compile's bug, there's no easy way that I know of to "syntax 
check" a *script* without executing it.  So this is probably a worthwhile 
enhancement.

Note: if we were designing this from scratch we might decide that honoring 
-B/PYTHONDONTWRITEBYTECODE was the right way to spell this, but since we are 
not, I don't think we can change py_compile's behavior in this regard for 
backward compatibility reasons, so adding an option to py_compile seems the 
best course.

--
nosy: +r.david.murray
stage:  -> needs patch
type:  -> enhancement
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2015-10-03 Thread Alex Warhawk

Alex Warhawk added the comment:

I encountered this problem recently and could not find a fix, so i tried fixing 
it myself.

Note that the patch attached is my first contribution to cpython as well as the 
first time I used the C extension mechanism. Therefore I do not consider the 
patch polished enough to be just merged upstream.

Maybe it helps in solving this issue.

The attached patch is based on:
changeset:   79113:ec373d762213
branch:  2.7

--
keywords: +patch
nosy: +Alex Warhawk
Added file: http://bugs.python.org/file40666/reuse_session.diff

___
Python tracker 

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



[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

I agree with desbma, but would not consider it unreasonable to mention both 
versions in the 3.5+ docs in order to avoid any ambiguity.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue25276] Intermittent segfaults on PPC64 AIX 3.x

2015-10-03 Thread David Edelsohn

David Edelsohn added the comment:

Misc/README.AIX comments about XLC do not apply to GCC.

One can adjust the memory space at normal link time with 
-Wl,-bmaxdata:0xN000. This trades off heap for shared memory segments. One 
does not need the extra ldedit stop, which stuffs the same value into the 
application header.

--

___
Python tracker 

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



[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

No go on the ICC mac buildbot then, it's an i7-4578U, so not even gen 5.

--

___
Python tracker 

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



[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy: +vxgmichel

___
Python tracker 

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



[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum

Changes by Guido van Rossum :


--
stage:  -> commit review
type:  -> behavior

___
Python tracker 

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



[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum

Guido van Rossum added the comment:

It's done. But I am hoping you (or someone) will add docs.

--

___
Python tracker 

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



[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 25e05b3e1869 by Guido van Rossum in branch '3.4':
Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel.
https://hg.python.org/cpython/rev/25e05b3e1869

New changeset e0db10d8c95e by Guido van Rossum in branch '3.5':
Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 
3.4->3.5.)
https://hg.python.org/cpython/rev/e0db10d8c95e

New changeset 69829a7fccde by Guido van Rossum in branch 'default':
Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 
3.5->3.6.)
https://hg.python.org/cpython/rev/69829a7fccde

--
nosy: +python-dev

___
Python tracker 

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



[issue14565] Allow multilevel subdirectories in cgi_directories

2015-10-03 Thread Martin Panter

Martin Panter added the comment:

The patch looks like it also adds support for individual script file names in 
cgi_directories. If that is the case, I suspect it would be tricked by a query 
string (e.g. /some.cgi?query).

I object to removing the final “return False”. The return value of is_cgi() is 
significant, and it good to be explicit about what it is returning.

It would be helpful to get a test case. Or multiple test cases if I am right 
about the individual file support.

And the documentation needs updating saying what is supported, with a “Version 
changed” notice. It would also be good to be specific about the syntax for 
cgi_directories. E.g. must start with a slash, cannot use Windows backslashes, 
must be a normalized path, not URL encoded. Is the root directory allowed?

--
stage:  -> patch review

___
Python tracker 

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



[issue25302] Memory Leaks with Address Sanitizer

2015-10-03 Thread Stefan Krah

Stefan Krah added the comment:

Static types leak memory on finalization, see PEP 3121. Normally it
does not matter, but you see it when embedding Python.

PEP 3121 isn't widely implemented because a) it complicates the
code for large modules and b) there are some performance issues.


There are several other open issues for the problem, so I'm closing
this one.

--
nosy: +skrah
resolution:  -> duplicate
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



[issue25278] Unexpected socket exception on SFTP 'STOR' command

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

I wonder if this has any relationship to issue 19500.

--

___
Python tracker 

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



[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-03 Thread Martin Panter

Martin Panter added the comment:

Here is a suggested patch. I did include details of the initializer and 
getvalue(); this is the heart of the problem IMO. In a limited sense the 
newline flag _is_ similar to TextIOWrapper, but more broadly this implied to me 
that newlines should be encoded in the buffer, just like in TextIOWrapper’s 
wrapped “buffer” and on disk.

My patch also adds to a comment in the C code and removes another comment made 
out of date by Argument Clinic.

In the documentation I didn’t mention the problem with split CRLFs; I think 
that is a separate bug.

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
stage:  -> patch review
status: closed -> open
versions: +Python 2.7, Python 3.6
Added file: http://bugs.python.org/file40665/newline-doc.patch

___
Python tracker 

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



[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum

New submission from Guido van Rossum:

This is a placeholder bug to reference the PR: 
https://github.com/python/asyncio/pull/273 by Vincent Michel.

--
assignee: gvanrossum
components: asyncio
messages: 252215
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: Add run_coroutine_threadsafe() to asyncio
versions: Python 3.4, 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



[issue23919] [Windows] test_os fails several C-level assertions

2015-10-03 Thread Steve Dower

Steve Dower added the comment:

This patch:

* defaults to no assert dialogs and no stderr output
* enables stderr output for assertions on "-vv" (or more)
* displays a deprecation message on "-n"

--
assignee:  -> steve.dower
keywords: +patch
versions: +Python 3.6
Added file: http://bugs.python.org/file40668/23919_1.patch

___
Python tracker 

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



[issue25307] Enhancing the argparse help output

2015-10-03 Thread Sworddragon

New submission from Sworddragon:

I'm noticing some things on the argparse help output that can maybe enhanced. 
Here is a testcase that produces an example output:

#!/usr/bin/python3 -BEOObbs
# coding=utf-8
import argparse
arguments = argparse.ArgumentParser()
arguments.add_argument('-t', '--test1', action = 'store_true', help = 
'Description1')
arguments.add_argument('--test2', action = 'store_true', help = 'Description2')
arguments.add_argument('-u', '--test3', choices = ['choice1', 'choice2'], help 
= 'Description3', nargs = '+')
arguments.parse_args()


- A way to automatically indent names or to give the user a way to control the 
indentation would make them easier to read. For example --test2 is here under a 
short option but it would be easier to read if it would have an offset to be 
directly under --test1.
- The line "-u {choice1,choice2} [{choice1,choice2} ...], --test3 
{choice1,choice2} [{choice1,choice2} ...]" shows the choices for every name 
while they are the same. Maybe they can be shortened to be shown only on the 
last name like "-u, --test3 {choice1,choice2} [{choice1,choice2} ...]".

--
components: Library (Lib)
messages: 252239
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Enhancing the argparse help output
type: enhancement
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



[issue25299] TypeError: __init__() takes at least 4 arguments (4 given)

2015-10-03 Thread paul j3

paul j3 added the comment:

The unittest file test_argparse.py tests add_argument parameters in 

class TestInvalidArgumentConstructors(TestCase)

It looks at a dozen different categories of errors, mostly checking that they 
return the correct TypeError or ValueError.  It does not check the content of 
error messages.  

If I change the code I described yesterday to return a TypeError again (but 
with an enhanced message), it passes this unittest.

Most of the test_argparse.py tests just check for error type.  There just a 
couple of late additions that check error message content:

TestMessageContentError
TestAddArgumentMetavar

--

___
Python tracker 

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



[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This presents the risk of breaking third-party extensions, right?

--
nosy: +pitrou

___
Python tracker 

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



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

New submission from STINNER Victor:

I compiled Python 3.6 in debug mode on Windows, and I'm trying to run 
test_regrtest to try to reproduce a bug. The problem is that the test opens a 
million of popup. Clicking on Ignore is useless, the popup continues to 
reappear again and again. The stderr is also flooded with "Assertion error ..." 
with the MSCRT.

I don't understand the usage of this popup and this error message. Python 
already raises a nice OSError when a FD is invalid.

Can we please always turn these warnings off even in debug mode when calling a 
MSCRT function protected by _Py_BEGIN_SUPPRESS_IPH/_Py_END_SUPPRESS_IPH?

See also issue #25001 "Make --nowindows argument to regrtest propagate when 
running with -j".

--
components: Windows
messages: 252226
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows: python opens a popup and flood stderr with assertion error on 
FD error
versions: 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



[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 850efcc9155c by Victor Stinner in branch 'default':
Issue #25306: Try to fix test_huntrleaks_fd_leak() on Windows
https://hg.python.org/cpython/rev/850efcc9155c

--

___
Python tracker 

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



[issue23972] Asyncio reuseport

2015-10-03 Thread Guido van Rossum

Guido van Rossum added the comment:

I'm adding a rebased version of Chris's v4 patch to see if I can get the code 
review to trigger.

--
Added file: http://bugs.python.org/file40667/23972_cjl_v005.patch

___
Python tracker 

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



[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2015-10-03 Thread Yauheni Kaliuta

Yauheni Kaliuta added the comment:

Any progress with the problem? I just wanted to use the feature, but it looks 
like the bug.sh is still reproduces the bug.

--
nosy: +Yauheni Kaliuta

___
Python tracker 

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



[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread Марк Коренберг

Марк Коренберг added the comment:

Please reopen. I still have interest for that. Fact that we survive 8 years is 
not enough for closing bugs as "Won't fix".

This fact point only on that ther are no good specialists that can fix that 
bug, since it is Windows-only, actually.

--

___
Python tracker 

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



[issue25297] max_help_position is not works in argparse library

2015-10-03 Thread paul j3

paul j3 added the comment:

The unittest test_argparse.py has one related test

class TestAddSubparsers
   def test_alias_help

has a long enough subparser invocation (with aliases) to produce wrapping with 
the default 24 max position:


commands:
  COMMAND
1 (1alias1, 1alias2)
1 help
2   2 help

I don't see anything in the test file that tries to vary the max_help_position 
parameter.

--

___
Python tracker 

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



[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread Марк Коренберг

Марк Коренберг added the comment:

Sorry, for the "there are no good specialist". I mean "There are no well 
motivated good specialist" :)

--

___
Python tracker 

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



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread Steve Dower

Steve Dower added the comment:

It is a direct duplicate of multiple issues.

The assertion is coming from the CRT, because their definition of "undefined 
behaviour" includes displaying an assert dialog in debug mode, and last time we 
tried disabling them completely we upset people. (I'm not 100% clear how you 
get from "closing an already-closed fd" to "undefined behaviour", but I assume 
it's an interpretation of invalid parameters.)

I'll get the patch for issue 23919 together, based on what Zach described in 
issue 25001.

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

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



[issue25258] HtmlParser doesn't handle void element tags correctly

2015-10-03 Thread Chenyun Yang

Chenyun Yang added the comment:

handle_startendtag is also called for non-void elements, such as , so
the override example will break in those situation.

The compatible patch I proposed right now is just one liner checker:

# http://www.w3.org/TR/html5/syntax.html#void-elements
_VOID_ELEMENT_TAGS
= frozenset(['area', 'base', 'br', 'col', 'embed', 'hr', 'img',
'input', 'keygen','link', 'meta', 'param', 'source', 'track',
'wbr'])class HTMLParser.HTMLParser:  # Internal -- handle starttag,
return end or -1 if not terminated  def parse_starttag(self, i):
#...if end.endswith('/>'):  # XHTML-style empty tag:   self.handle_startendtag(tag, attrs)
#PATCH#elif end.endswith('>')
and tag in _VOID_ELEMENT_TAGS:  self.handle_startendtag(tag,
attrs)#PATCH#

--

___
Python tracker 

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



[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fd915645627a by Victor Stinner in branch 'default':
Issue #25306: Skip test_huntrleaks_fd_leak() of test_regrtest until the bug is
https://hg.python.org/cpython/rev/fd915645627a

--
nosy: +python-dev

___
Python tracker 

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



[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Patrick Maupin

Patrick Maupin added the comment:

The PEP 8 recommendation to "use absolute imports" is completely, totally, 
unambiguously meaningless absent the expectation that packages refer to parts 
of themselves.  And it works, too!  (For a single level of package.)

As soon as packages are nested, this recommendation falls over, with the most 
innocuous code:

x/__init__.py: import x.y
x/y/__init__.py: import x.y.z; x.y.z
x/y/z/__init__.py: 

The ability to nest packages is an attractive nuisance from a programmer's 
perspective.  He's neatly organized his code, and now he finds that there are 
two ways to make it work:  (1) Use the disparaged relative imports; or (2) 
flatten his package to a single level, because importing X.Z from within X.Y 
will work fine.

IMO, the language that Nick proposes for PEP 8 will either (a) not be 
understood at all by the frustrated junior programmer -- sure, the import 
system views it as a circular import, but he's not seeing it that way; or (b) 
be understood to expose a huge wart on the side of Python:  Even though Z is 
only used by Y/__init__, and doesn't itself use anything else in Y, it cannot 
live alongside Y/__init__. Instead, unless Y is a top level module or the 
programmer uses denigrated relative imports, he will now have to move it to a 
different place, so that from Y he can then "import X.Y_HELPER.Z".

Another PEP 8 prescription is that "Standard library code should avoid complex 
package layouts and always use absolute imports."  Here's a serious offer -- 
I'll give $200 to whoever gets the patch accepted that makes lib2to3 conformant 
without breaking it.

--

___
Python tracker 

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



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

STINNER Victor added the comment:

See also the issue #25306 "test_huntrleaks_fd_leak() of test_regrtest hangs on 
Windows". It may be caused by this issue.

--

___
Python tracker 

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



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

STINNER Victor added the comment:

See also issue #23919, this issue may be a duplicate of this one.

--

___
Python tracker 

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



[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-03 Thread STINNER Victor

New submission from STINNER Victor:

I suspect that the test hangs because of the MSCRT assertion error popup: see 
issue #25305.

http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/10279/steps/test/logs/stdio

[287/400/1] test_regrtest
Timeout (1:00:00)!
Thread 0x0d48 (most recent call first):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\subprocess.py", 
line 1279 in _readerthread
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\threading.py", line 
871 in run
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\threading.py", line 
923 in _bootstrap_inner
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\threading.py", line 
891 in _bootstrap

Thread 0x09b8 (most recent call first):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\threading.py", line 
1079 in _wait_for_tstate_lock
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\threading.py", line 
1063 in join
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\subprocess.py", 
line 1308 in _communicate
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\subprocess.py", 
line 1068 in communicate
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\subprocess.py", 
line 698 in run
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_regrtest.py",
 line 395 in run_command
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_regrtest.py",
 line 417 in run_python
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_regrtest.py",
 line 524 in run_tests
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_regrtest.py",
 line 663 in test_huntrleaks_fd_leak
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\case.py", 
line 600 in run
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\case.py", 
line 648 in __call__
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\suite.py", 
line 122 in run
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\suite.py", 
line 84 in __call__
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\suite.py", 
line 122 in run
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\suite.py", 
line 84 in __call__
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\suite.py", 
line 122 in run
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\suite.py", 
line 84 in __call__
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\unittest\runner.py",
 line 176 in run
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\support\__init__.py",
 line 1775 in _run_suite
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\support\__init__.py",
 line 1809 in run_unittest
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\runtest.py",
 line 161 in test_runner
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\runtest.py",
 line 162 in runtest_inner
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\runtest.py",
 line 115 in runtest
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\main.py",
 line 293 in run_tests_sequential
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\main.py",
 line 352 in run_tests
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\main.py",
 line 388 in main
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\main.py",
 line 429 in main
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\libregrtest\main.py",
 line 451 in main_in_temp_cwd
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\PCbuild\..\lib\test\regrtest.py",
 line 39 in 

command timed out: 3900 seconds without output

--
components: Windows
messages: 252228
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_huntrleaks_fd_leak() of test_regrtest hangs on Windows
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



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

STINNER Victor added the comment:

By the way, these warnings are flooding buildbot output, it became really hard 
to read these logs :-( Extract:


minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false

--

___
Python tracker 

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



[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread R. David Murray

R. David Murray added the comment:

Since Guido voted in favor and there's a patch proposal, I think we should keep 
this open in the hopes that someone will come along who can move it forward.  I 
don't know enough to know what moving it forward would look like, though.

(I know you opened the issue originally, Victor, and you aren't interested in 
it any more, but obviously others are.)

--
nosy: +r.david.murray
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue20021] "modernize" makeopcodetargets.py

2015-10-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Some of the buildbots have Python 2.5 as their system Python.

Here is a patch that is compatible with older Python versions.

--
nosy: +serhiy.storchaka
versions: +Python 3.6 -Python 3.5
Added file: http://bugs.python.org/file40670/issue20021_2.diff

___
Python tracker 

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



[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread alex wieder

New submission from alex wieder:

Hi,

This is my first bug report, so please be gentle if I don't stick to protocol 
correctly. I'm also tired from spending about 8 hours tracking down this 
problem.

OS Affected: XP SP3 (maybe others as well, and I'm aware that python doesn't 
support xp anymore, but I have plenty of clients still on it). I suggest that 
you test this in more recent Windows versions as well.

To reproduce:
- Enable "Show Pop-up description for folder and desktop items" in 
Explorer->Tools->Folder Options->View.
- Create a small python script that opens the askopenfilename dialog.
- Open any local folder.
- Hover the mouse over some files and wait for the pointer to turn into an 
hourglass as the system tries to gather information for the pop-up for that 
file. (pdf's are ideal for this as it takes a few seconds for the pop-up to 
appear.)
- Once the pointer's an hourglass, double click on the file.

Workaround:
- Disable  "Show Pop-up description for folder and desktop items" in 
Explorer->Tools->Folder Options->View and the problem goes away.

--
components: Tkinter, Windows
files: pickfile.py
messages: 252248
nosy: alexwieder, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: askopenfilename crashes on XP with "Show pop-up description for folder 
and desktop items" on
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file40669/pickfile.py

___
Python tracker 

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



[issue25307] Enhancing the argparse help output

2015-10-03 Thread paul j3

paul j3 added the comment:

Formatter _format_action_invocation(self, action) is the key function.  Notice 
how it treats positionals and optionals separately.  Also it calls

default = self._get_default_metavar_for_optional(action)
args_string = self._format_args(action, default)

to get the string that is placed after each option_string.

'choices' are incorporated via the _metavar_formatter() method (through several 
function calls).  They do not get their own separate consideration.  Tracing 
this calling stack is not a trivial task.

But if you want custom behavior at this point in the help, 
_format_action_invocation() is the function to play with.  You could even add 
the space for a nonexistent short option at this point.


http://bugs.python.org/issue16468 is an example of a 'choices' thread.  Note 
that a formatted list of choices is also shown in the 'usage' and error 
messages.  It's about formatting the choices string, not about where to show it.

--

___
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-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset afa95f032de1 by Terry Jan Reedy in branch '2.7':
Issue #24820: Add 'IDLE Dark' text color theme, warning, and solution.
https://hg.python.org/cpython/rev/afa95f032de1

New changeset 1de01a63f360 by Terry Jan Reedy in branch '3.4':
Issue #24820: Add 'IDLE Dark' text color theme, warning, and solution.
https://hg.python.org/cpython/rev/1de01a63f360

--

___
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-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 739cc9ca55cd by Terry Jan Reedy in branch '2.7':
Issue #24820: Update IDLE NEWS items.
https://hg.python.org/cpython/rev/739cc9ca55cd

New changeset 233974dfda03 by Terry Jan Reedy in branch '3.4':
Issue #24820: Update IDLE NEWS items.
https://hg.python.org/cpython/rev/233974dfda03

New changeset 89a1e03b4639 by Terry Jan Reedy in branch '3.5':
Issue #24820: Update IDLE NEWS items.
https://hg.python.org/cpython/rev/89a1e03b4639

--

___
Python tracker 

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



[issue25307] Enhancing the argparse help output

2015-10-03 Thread Sworddragon

Sworddragon added the comment:

> The formatting of choices has been discussed in other bug/issues.

What was the reason showing the choices only once at default was not chosen?

--

___
Python tracker 

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



[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Nick Coghlan

Nick Coghlan added the comment:

If that's the concern, then the relevant guidance is to avoid running code
at package import time (which many new developers will now do by default
with __init__.py becoming optional).

--

___
Python tracker 

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



[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Patrick Maupin

Patrick Maupin added the comment:

I'm a big fan of stitching things together at the top myself -- maybe that's 
partly an unconscious reaction to this very issue.

But I'm not sanguine about how easy it is to express this practice in the docs.

This issue arose in the context of me answering a question on Stack Overflow.  
My initial response was "well, duh, obviously relative imports are more 
Pythonic here because that's the obvious way to do it (that works)."

But then, of course, PEP 8 disagrees.

For that actual question on Stack Overflow, you would have to carefully define 
the scope of "executing" so that it was fully understood to include 
"subclassing a class defined in a peer module or submodule" -- because that's 
what was breaking.

Just as most people don't think of imports that can be placed in a DAG as 
circular, most people also don't think of subclassing as "executing."

But the Python interpreter sometimes vehemently disagrees in both cases.  I'm 
not surprised at its behavior, but I'm also not surprised that some people who 
haven't thought deeply about the behavior find it surprising.

I'm not fully convinced that this even can be documented in a way that renders 
observed behavior unsurprising in the general case, but I am convinced that 
doing so would require a lot of care.

--

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2015-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6db349fac3ec by Terry Jan Reedy in branch 'default':
Issue #9232: Escape rst markup char in NEWS entry to avoid Sphinx warning.
https://hg.python.org/cpython/rev/6db349fac3ec

--

___
Python tracker 

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



[issue24791] *args regression

2015-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 20e0906a808e by Terry Jan Reedy in branch '3.5':
Issue #24791: Escape rst markup char in NEWS entry to avoid Sphinx warning.
https://hg.python.org/cpython/rev/20e0906a808e

--

___
Python tracker 

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



[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +terry.reedy

___
Python tracker 

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



[issue25308] Multiple names can target the same namespace

2015-10-03 Thread Sworddragon

New submission from Sworddragon:

In the argparse module I'm noticing that for example an optional argument and a 
positional argument can target the same namespace. Here is a testcase:

#!/usr/bin/python3 -BEOObbs
# coding=utf-8
import argparse
arguments = argparse.ArgumentParser()
arguments.add_argument('test', action = 'store_true', help = 'Description')
arguments.add_argument('--test', action = 'store_true', help = 'Description')
print(arguments.parse_args())


Maybe if argparse finds out that adding an argument would use the same 
namespace of an already added argument an exception should be thrown?

--
components: Library (Lib)
messages: 252245
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Multiple names can target the same namespace
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



[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread Mark Lawrence

Mark Lawrence added the comment:

If Марк Коренберг (mmarkk) is interested, they should move it forward.  If 
they're not interested, move it too "languishing", where it can sit happily for 
ever and a day.  Pay your money, take your choice?

--

___
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-10-03 Thread Terry J. Reedy

Terry J. Reedy added the comment:

See patch for message.  Merely displaying a message, and not trying to do 
anything fancy, like cancelling the selection, avoids any possible problem in 
interaction with other methods.  I leave it to users to decide if action is 
needed, and if so, whether to switch or save as custom.

Mark's original post had two issues.  The first, a dark background theme, is 
now committed and this issue closed.  Thanks for the push for something 
requested by others.  I am using it myself.  

The second, the ability to simultaneously change all default backgrounds, such 
as white to off-white, is or will be either a new issue or part of the 
highlight tab rewrite, #24781.

--
assignee:  -> terry.reedy
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



[issue25307] Enhancing the argparse help output

2015-10-03 Thread paul j3

paul j3 added the comment:

I don't recall other issues or discussions about lining up short and long 
option strings.

Producing a more compact invocation has raised in StackOverflow questions.  I 
don't recall if there has been bug/issue on the same.

If I recall correctly it isn't hard to identify and change the Formatter method 
that produces the action invocation.  So such a change could be implemented as 
a Formatter subclass.  A SO search should produce that.

You can also play with the metavar of an argument to produce a more command 
invocation.

The formatting of choices has been discussed in other bug/issues. 

The ultimate help formatting method is to SUPPRESS the argument help, and write 
your own in a (RAW) description.

--
nosy: +paul.j3

___
Python tracker 

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



[issue25307] Enhancing the argparse help output

2015-10-03 Thread paul j3

paul j3 added the comment:

http://stackoverflow.com/questions/18275023/dont-show-long-options-twice-in-print-help-from-argparse

http://stackoverflow.com/questions/9366369/python-argparse-lots-of-choices-results-in-ugly-help-output

http://stackoverflow.com/questions/23936145/python-argparse-help-message-disable-metavar-for-short-options

http://stackoverflow.com/questions/13479513/how-can-i-get-python-argparse-to-list-choices-only-once

--

___
Python tracker 

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



[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +martin.panter

___
Python tracker 

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



[issue25310] End mark argument for StreamReader.readline() method

2015-10-03 Thread Alan Cristhian

New submission from Alan Cristhian:

I use pickle to serialize data. The pickle.dumps() methods sometimes introduce 
the b"\n" character:

>>> import pickle
>>> tuple_with_10 = (10,)
>>> result = pickle.dumps(tuple_with_10, protocol=4)
>>> result
b'\x80\x04\x95\x05\x00\x00\x00\x00\x00\x00\x00K\n\x85\x94.'
>>> b"\n" in result
True

The same is true with all protocols.

So, if I read the stream with StreamReader.readline() method and then try to 
deserialize with pickle.loads(), I got and EOLError because the stream has been 
cut.

An default argument in the readline() method can solve this issue.

--
components: asyncio
messages: 252249
nosy: Alan.Cristhian, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: End mark argument for StreamReader.readline() method
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



[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2015-10-03 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue20021] "modernize" makeopcodetargets.py

2015-10-03 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue20020] "modernize" the modulefinder module

2015-10-03 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue25310] End mark argument for StreamReader.readline() method

2015-10-03 Thread Guido van Rossum

Guido van Rossum added the comment:

You should not be using readline() for that use case. (Note that *no* sequence 
of characters can be guaranteed not to occur in a binary protocol like pickle.)

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



[issue24177] Add https?_proxy support to http.client

2015-10-03 Thread Martin Panter

Martin Panter added the comment:

I think this would have a serious chance of breaking stuff unless it was only 
enabled with a new flag or similar. Also, I guess it would probably be limited 
to Basic authentication.

The wget and curl programs both support different URL protocols, HTTP redirects 
(if curl --location is enabled), etc. In my mind they operate at a higher 
level, like urlopen(), and http.client is a more lower-level client. Are there 
many use cases where you would want proxy support for a HTTP request, but 
wouldn’t want to use urlopen() or some other high-level library like Requests?

--
nosy: +martin.panter

___
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-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 969afbf501af by Martin Panter in branch '3.4':
Issue #25232: Fix CGIRequestHandler's splitting of URL query
https://hg.python.org/cpython/rev/969afbf501af

New changeset ba1e3c112e42 by Martin Panter in branch '3.5':
Issues #25232, #24657: Merge two CGI server fixes from 3.4 into 3.5
https://hg.python.org/cpython/rev/ba1e3c112e42

New changeset 88918f2a54df by Martin Panter in branch '3.5':
Issues #25232, #24657: Use new enum status to match rest of tests
https://hg.python.org/cpython/rev/88918f2a54df

New changeset 0f03023d4318 by Martin Panter in branch 'default':
Issues #25232, #24657: Merge two CGI server fixes from 3.5
https://hg.python.org/cpython/rev/0f03023d4318

New changeset 3c006ee38287 by Martin Panter in branch 'default':
Issues #25232, #24657: Add NEWS to 3.6.0a1 section
https://hg.python.org/cpython/rev/3c006ee38287

--
nosy: +python-dev

___
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-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 634fe6a90e0c by Martin Panter in branch '3.4':
Issue #24657: Prevent CGIRequestHandler from collapsing the URL query
https://hg.python.org/cpython/rev/634fe6a90e0c

New changeset ba1e3c112e42 by Martin Panter in branch '3.5':
Issues #25232, #24657: Merge two CGI server fixes from 3.4 into 3.5
https://hg.python.org/cpython/rev/ba1e3c112e42

New changeset 88918f2a54df by Martin Panter in branch '3.5':
Issues #25232, #24657: Use new enum status to match rest of tests
https://hg.python.org/cpython/rev/88918f2a54df

New changeset 0f03023d4318 by Martin Panter in branch 'default':
Issues #25232, #24657: Merge two CGI server fixes from 3.5
https://hg.python.org/cpython/rev/0f03023d4318

New changeset 3c006ee38287 by Martin Panter in branch 'default':
Issues #25232, #24657: Add NEWS to 3.6.0a1 section
https://hg.python.org/cpython/rev/3c006ee38287

--
nosy: +python-dev

___
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-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a4302005f9a2 by Martin Panter in branch '2.7':
Issue #24657: Prevent CGIRequestHandler from collapsing the URL query
https://hg.python.org/cpython/rev/a4302005f9a2

--

___
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-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b12b30dc8617 by Martin Panter in branch '2.7':
Issue #25232: Fix CGIRequestHandler's splitting of URL query
https://hg.python.org/cpython/rev/b12b30dc8617

--

___
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-10-03 Thread Martin Panter

Martin Panter added the comment:

Thanks everyone for the reports and patches. There were a couple of subtle 
compatibility tweaks needed for the 3.4 and 2.7 branches, but I think I got 
them all.

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



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

2015-10-03 Thread Martin Panter

Changes by Martin Panter :


--
stage: commit review -> resolved

___
Python tracker 

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



[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-03 Thread Martin Panter

Changes by Martin Panter :


--
assignee: docs@python -> martin.panter
nosy: +berker.peksag
stage: patch review -> commit review

___
Python tracker 

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



[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ec373d762213 by Martin Panter in branch '2.7':
Issue #16701: Document += and *= for mutable sequences
https://hg.python.org/cpython/rev/ec373d762213

New changeset f83db23bec7f by Martin Panter in branch '3.4':
Issue #16701: Document += and *= for mutable sequences
https://hg.python.org/cpython/rev/f83db23bec7f

New changeset 6e43a3833293 by Martin Panter in branch '3.5':
Issue #16701: Merge sequence docs from 3.4 into 3.5
https://hg.python.org/cpython/rev/6e43a3833293

New changeset a92466bf16cc by Martin Panter in branch 'default':
Issue #16701: Merge sequence docs from 3.5
https://hg.python.org/cpython/rev/a92466bf16cc

--
nosy: +python-dev

___
Python tracker 

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



[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-03 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



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

2015-10-03 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

Thank you Brett for your effort to merge all the changes made to regrtest 
despite the changes appeared on the way!

--

___
Python tracker 

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