[issue24770] Py_Finalize not cleaning up all threads

2015-08-01 Thread Alex Budovski

New submission from Alex Budovski:

This is a known issue, from the comment, but it is causing AVs for my embedded 
application when background threads are created, for example, by the _socket 
builtin module.

/* Undo the effect of Py_Initialize().

   Beware: if multiple interpreter and/or thread states exist, these
   are not wiped out; only the current thread and interpreter state
   are deleted.  But since everything else is deleted, those other
   interpreter and thread states should no longer be used.

   (XXX We should do better, e.g. wipe out all interpreters and
   threads.)

   Locking: as above.

*/

void
Py_Finalize(void)

--
components: Extension Modules, Interpreter Core
messages: 247798
nosy: Alex Budovski
priority: normal
severity: normal
status: open
title: Py_Finalize not cleaning up all threads
versions: Python 3.6

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



[issue24770] Py_Finalize not cleaning up all threads

2015-08-01 Thread Alex Budovski

Changes by Alex Budovski abudov...@gmail.com:


--
type:  - crash

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-01 Thread STINNER Victor

STINNER Victor added the comment:

There are other implementations of asyncio than the one in CPython.
Pulsar and Tornado define their own Task class. The greenio project
also has a special task object. aioeventlet and aiogevent may also
benefit from a way to register new awaitable things.

I'm not opposed to support concurrent.futures.Future object. I don't
like the idea of starting to add a special case for one module. Others
may want to do the same for their library.

--

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



[issue24762] Branchless, vectorizable frozen set hash

2015-08-01 Thread Raymond Hettinger

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


--
assignee:  - rhettinger

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



[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread Serhiy Storchaka

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


--
nosy: +larry
priority: normal - release blocker

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



[issue19007] precise time.time() under Windows 8: use GetSystemTimePreciseAsFileTime

2015-08-01 Thread Steve Dower

Steve Dower added the comment:

What are the expected benefits from changing? Just a higher resolution? I'm not 
sure that's worth anything if it's inaccurate.

--

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-01 Thread Yury Selivanov

Yury Selivanov added the comment:

 There are other implementations of asyncio than the one in CPython.
 Pulsar and Tornado define their own Task class. The greenio project

I'm not sure if it's possible (or even makes any sense) to integrate 
tasks from other frameworks into asyncio.

greenio simply inherits its task class from asyncio.Task, and will
automatically support concurrent.futures if we support them in
asyncio.

 I'm not opposed to support concurrent.futures.Future object. I don't
 like the idea of starting to add a special case for one module. Others
 may want to do the same for their library.

concurrent.futures is in a unique position -- it's already supported and
integrated in asyncio.  We have executors and they are even used for
DNS lookups.  Supporting concurrent.futures in asyncio.Task seems 
natural to me.

I like Alex's approach -- his idea of '__await__' for concurrent.Future
is very generic, so any other framework can integrate it.  Creating
any kind of registry in asyncio.Task seems a bit unnecessary to me at 
this stage.

--

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



[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'

2015-08-01 Thread Mark Lawrence

Mark Lawrence added the comment:

The original was never reapplied and wouldn't now apply so I've attached an 
updated version.

--
components:  -Distutils2
nosy: +BreamoreBoy, David.Edelsohn, dstufft
versions: +Python 3.4, Python 3.5, Python 3.6 -3rd party, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file40093/issue6164_v2.diff

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-01 Thread Stefan Behnel

Stefan Behnel added the comment:

Funny. I just thought about this yesterday and came up with pretty much the
same idea. +1 for the patch.

I don't think there are more classes to support here. Quite the contrary,
other tools should try to integrate via concurrent.futures.Future instead.

--

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



[issue24772] Smaller viewport shifts the expand left menu character into the text

2015-08-01 Thread Serhiy Storchaka

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


--
nosy: +georg.brandl

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



[issue24759] Idle: require 8.5 / ttk

2015-08-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

IMHO Tcl and Tk should be in title case (as Python or Django) or at least all 
in upper case (as APL or SDL).

--
nosy: +serhiy.storchaka

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



[issue24759] Idle: require 8.5 / ttk

2015-08-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't see any mentions of ttk in IDLE source code except added check. Is ttk 
really required for IDLE?

--

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



[issue24759] Idle: require 8.5 / ttk

2015-08-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Re-opened for tweak.

This patch, to exit gracefully if ttk is not available, is the first step 
before using ttk in Idle.  Mark, a long-time tk/ttk expert and site/book 
author, has volunteered to help upgrade Idle with ttk. Please see ttk in idle 
on Idle-Sig list for general discussion and #24750 for the first substantive 
patches. The only reason I have not applied the ttk.Scrollbar patch, on that 
issue, is because Ned mentioned, on that issue, that the OS 8.5 python requires 
tcl/tk 8.4.  I strongly feel that this should not stop the use of ttk, but I an 
first doing a few non-ttk patches, including Mark's patch for #24745, before 
continuing.

--
status: closed - open

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



[issue24774] inconsistency in http.server.test

2015-08-01 Thread 許邱翔

New submission from 許邱翔:

In http.server.test, it still say This runs an HTTP server on port 8000 (or 
the first command line argument)., but it won't read command line argument any 
more.

since this commit (https://hg.python.org/cpython/rev/935a656359ae)

--
components: Library (Lib)
files: fix_description.patch
keywords: patch
messages: 247821
nosy: wdv4758h
priority: normal
severity: normal
status: open
title: inconsistency in http.server.test
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40095/fix_description.patch

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



[issue24773] Add local time disambiguation flag to datetime

2015-08-01 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


--
nosy: +ethan.furman

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



[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread Adam Bartoš

Adam Bartoš added the comment:

It seems that both tcl86t.dll and tk86t.dll can be found, but their dependency 
VCRUNTIME140.dll cannot. For some reason, Dependency Walker cannot locate also 
python35.dll and ieshims.dll (but it tries to find all three libraries in 
Python 3.5\DLLs and at least python35.dll is located directly in Python 3.5 
directory).

--

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



[issue24773] Add local time disambiguation flag to datetime

2015-08-01 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Something went wrong in my hg clone and Rietveld did not like my patch.  I 
moved my development branch to github:

https://github.com/abalkin/cpython/tree/ltdf

Please feel free to leave your comments there.

--

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



[issue24724] Element.findall documentation misleading

2015-08-01 Thread Eric S

Eric S added the comment:

Code was intended as example, not request for help to correct, but rushed so 
example was flawed, but still, I tested and you both are right. Must've had 
other error in code to cause the xml to dict to have every element map to under 
every node. Debugger also showed findall and list returns with every descendent 
under every item as well so that influenced my triage.

Issue is closed as far as I'm concerned but it sounds like you all found 
something else here. 

Sorry for using up your time. Will be more careful and clear if there is a next 
time.

--

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



[issue24745] Better default font for editor

2015-08-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 82198ae039cd by Terry Jan Reedy in branch '3.4':
Issue 24745: Add ACKS entry.
https://hg.python.org/cpython/rev/82198ae039cd

New changeset bf14b74d6fc0 by Terry Jan Reedy in branch '3.5':
Issue 24745: Add ACKS entry.
https://hg.python.org/cpython/rev/bf14b74d6fc0

New changeset 5744985ad8dc by Terry Jan Reedy in branch '2.7':
Issue 24745: Add ACKS entry.
https://hg.python.org/cpython/rev/5744985ad8dc

--

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



[issue23182] Update grammar tests to use new style for annotated function definitions

2015-08-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c981d9819384 by Zachary Ware in branch '3.4':
Issue #23182: PEP8-ify the annotation grammar tests.  Patch by Ian Lee.
https://hg.python.org/cpython/rev/c981d9819384

New changeset f35bdb6dd242 by Zachary Ware in branch '3.5':
Issue #23182: Merge with 3.4
https://hg.python.org/cpython/rev/f35bdb6dd242

New changeset a0ac94514a30 by Zachary Ware in branch 'default':
Closes #23182: Merge with 3.5
https://hg.python.org/cpython/rev/a0ac94514a30

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

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



[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-01 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +brett.cannon, eric.snow, ncoghlan

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



[issue23652] ifdef uses of EPOLLxxx macros so we can compile on systems that don't have them

2015-08-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e38470b49d3c by Zachary Ware in branch '2.7':
Issue #23652: Make the select module compile against LSB headers.
https://hg.python.org/cpython/rev/e38470b49d3c

New changeset c18a18b65a49 by Zachary Ware in branch '3.4':
Issue #23652: Make the select module compile against LSB headers.
https://hg.python.org/cpython/rev/c18a18b65a49

New changeset a99f17c752d8 by Zachary Ware in branch '3.5':
Issue #23652: Merge with 3.4
https://hg.python.org/cpython/rev/a99f17c752d8

New changeset c7273b46980c by Zachary Ware in branch 'default':
Closes #23652: Merge with 3.5
https://hg.python.org/cpython/rev/c7273b46980c

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

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



[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-01 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
priority: normal - deferred blocker

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



[issue23182] Update grammar tests to use new style for annotated function definitions

2015-08-01 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the patch!

--
nosy: +zach.ware
versions: +Python 3.4, Python 3.6

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



[issue24759] Idle: require ttk (and tcl/tk 8.5)

2015-08-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ttk widgets are partially compatible with Tk widgets, so in many cases it is 
possible to make partial upgrade without major rewriting. Some changes perhaps 
need major rewriting (using styles, changing layout), and I think this is what 
the PEP does not allow. However it is possible that all changes can be done 
without major rewriting, we don't know until try.

--

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



[issue23652] ifdef uses of EPOLLxxx macros so we can compile on systems that don't have them

2015-08-01 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the patch!

--

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



[issue24777] sys.getrefcount takes no arguments ??

2015-08-01 Thread Ankoor Patil

New submission from Ankoor Patil:

I have just started exploring python in rhino and I think I hit a bug, can you 
please confirm this or point out where am I going wrong.

Thanks.

--
components: Cross-Build
files: Capture.PNG
messages: 247855
nosy: Ankoor Patil
priority: normal
severity: normal
status: open
title: sys.getrefcount takes no arguments ??
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file40097/Capture.PNG

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I would use optional import to support Tcl/Tk older than 8.5 in Python 3.4 and 
2.7.

try:
from tkinter.ttk import Scrollbar
except ImportError:
pass

--
nosy: +serhiy.storchaka

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



[issue24773] Add local time disambiguation flag to datetime

2015-08-01 Thread Alexander Belopolsky

New submission from Alexander Belopolsky:

Adds a boolean member to the instances of ``datetime.time``
and ``datetime.datetime`` classes that can be used to differentiate
between two moments in time for which local times are the same.

See Datetime-SIG Local time disambiguation proposal discussion [1] for more 
details.

[1]: https://mail.python.org/pipermail/datetime-sig/2015-July/000105.html

--
assignee: belopolsky
components: Extension Modules, Library (Lib)
files: ltdf.patch
keywords: patch
messages: 247819
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Add local time disambiguation flag to datetime
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file40094/ltdf.patch

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-01 Thread Yury Selivanov

Yury Selivanov added the comment:

 I agree with Stefan and Yury. As for the tests, Yury seemed to have those in 
 his patches -- I'll take a look and see if they're directly applicable.

Good idea, the tests are in a fine shape.

 For Python 3.5 and earlier, there is a workaround to awaiting for concurrent 
 Futures, but it requires the use of the undocumented wrap_future() function. 
 It is the fact that it's undocumented that bothers me.

I didn't even know about it :(  Please create an issue.

--

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



[issue21192] Idle: Print filename when running a file from editor

2015-08-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset edf9bfe36ad0 by Terry Jan Reedy in branch '2.7':
Issue #21192: acks for 2.7
https://hg.python.org/cpython/rev/edf9bfe36ad0

--

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, but setting the highlightthickness option can be optional too.

self.scrollbarView = Scrollbar(frameText, orient=VERTICAL,
   takefocus=FALSE)
try:
self.scrollbarView['highlightthickness'] = 0
except TclError:
pass

or

self.scrollbarView = Scrollbar(frameText, orient=VERTICAL,
   takefocus=FALSE)
if not ttk:
self.scrollbarView['highlightthickness'] = 0

Otherwise I think it is not worth to apply these changes to maintained 
releases. 3.4 will switched to security fixes only mode soon, but 2.7 has long 
support term. Bugfix release should continue to work on platforms that are 
shipped with Tcl/Tk 8.4.

--

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



[issue24766] Subclass of property doesn't preserve instance __doc__ when using doc= argument

2015-08-01 Thread Serhiy Storchaka

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


--
nosy: +r.david.murray

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



[issue24762] Branchless, vectorizable frozen set hash

2015-08-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The idea looks interesting and the code looks correct. But the patch decreases 
readability and I'm not sure, that the benefit is worth it. Timings looks good 
at first glance, but frozenset hash is cached and is calculated only once per 
instance. I afraid that the benefit of hash calculation optimization is dwarfed 
by the time of frozenset creation itself.

If other core developer supports this idea I have no strong objections. See my 
comments on Rietveld.

--
assignee: serhiy.storchaka - 

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



[issue24762] Branchless, vectorizable frozen set hash

2015-08-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf707dd190a9 by Raymond Hettinger in branch 'default':
Issue #24762:  Speed-up frozenset_hash() and greatly beef-up the comments.
https://hg.python.org/cpython/rev/cf707dd190a9

--
nosy: +python-dev

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



[issue24762] Branchless, vectorizable frozen set hash

2015-08-01 Thread Raymond Hettinger

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


--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue24776] Improve Fonts/Tabs UX for IDLE

2015-08-01 Thread Raymond Hettinger

New submission from Raymond Hettinger:

A recurring issue with students using IDLE is the user interface for the fonts 
and tabs preference settings.

* The default setting of 4 space tabs is a good default, but the giant slider 
cries out to be moved (usually when people are intending to increase their font 
size).  A slider was not a good choice.  It should use something like what is 
currently used for font size.

* On the other hand, the font size would benefit from have a slider.

* I don't know if anything can be done to improve the selection of the font 
face.  The scrolling menu of choices worked great back when we only had a 
handful of choices but it had grown problematic with a large number of choices. 
 It is a bit of a struggle to select Menlo on a Mac if you already know what 
you want.

--
assignee: terry.reedy
components: IDLE
messages: 247829
nosy: rhettinger, terry.reedy
priority: low
severity: normal
stage: needs patch
status: open
title: Improve Fonts/Tabs UX for IDLE
type: enhancement
versions: Python 3.6

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



[issue1744456] Expose non-blocking callbackAPI in readline module

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

I don’t think this is a duplicate. The patch here wraps the non-blocking 
“alternate interface” 
https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC41: 
rl_callback_read_char() etc. The patch in Issue 1175004 wraps other APIs, 
including rl_add_defun() 
https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC30. So if 
someone was interested in pushing this forward, perhaps it could be reopened.

--
nosy: +vadmium
resolution: duplicate - 
stage: resolved - needs patch
title: Patch for feat. 1713877 Expose callbackAPI in readline module - Expose 
non-blocking callbackAPI in readline module

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



[issue1175004] Export more libreadline API functions

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

rl_forced_update_display() wrappers already proposed in Issue 23067

--
dependencies: +Export readline forced_update_display

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



[issue23067] Export readline forced_update_display

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

There are actually a few other patches open adding wrappers for 
rl_forced_update_display():

* Issue 1175004: From 2005, other APIs as well
* Issue 24727: Includes documentation

As well as the documentation, I think it would be good to add a test case for 
new functionality if possible.

--
nosy: +vadmium
stage:  - needs patch
versions: +Python 3.6 -Python 3.4

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

That does not work.  ttk widgets are not drop-in replacements for their 
predecessors.  The problem is illustrated by these lines from the TextViewer 
patch

-self.scrollbarView = Scrollbar(frameText, orient=VERTICAL,
-   takefocus=FALSE, highlightthickness=0)
+self.scrollbarView = ttk.Scrollbar(frameText, orient=VERTICAL,
+   takefocus=FALSE)

The highlightthickness option, among several others, is not legal for the ttk 
versions of widgets.  That is why I removed it. This particular instance could 
be solved by living without the highlightthickness option, but their will be 
many other instances where we do not want to drop the configuration. The API 
differences are probably even worse for Treeview and Notebook versus Idle's 
custom implementations of the same widget.

--

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



[issue24775] Python client failing to connect to server but completing as if successful

2015-08-01 Thread Seán Kelleher

New submission from Seán Kelleher:

I have a Go server that listens to a port, runs a Python client to connect to 
the port as a subcommand, and reads from the client. However, the client (as 
follows) will occasionally run to completion without connecting to the port, 
but without raising an exception:

import socket
import sys

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
[addr, port] = sys.argv[1].split(':')
sock.connect((addr, int(port)))
try:
sock.send(hello)
finally:
sock.close()

print done.

`server.go` follows:

package main

import (
log
net
os
os/exec
)

func main() {
ln, err := net.ListenTCP(tcp4, net.TCPAddr{IP: net.IPv4(127, 
0, 0, 1)})
if err != nil {
log.Fatalf(%v, err)
}
defer ln.Close()

cmd := exec.Command(
python,
client.py,
ln.Addr().(*net.TCPAddr).String(),
)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

if err := cmd.Start(); err != nil {
log.Fatalf(%v, err)
}
defer cmd.Process.Kill()

go func() {
log.Printf(command exited with: %v, cmd.Wait())
log.Printf(closing listener: %v, ln.Close())
}()

conn, err := ln.Accept()
if err != nil {
log.Fatalf(%v, err)
}

buf := make([]byte, 1024)
n, err := conn.Read(buf)
log.Println(string(buf[:n]))
}

When the connection is successful, the output is as expected:

done.
2015/08/01 21:03:50 hello

A failed connection, by contrast, gives no indication from Python that the 
command failed (`done.` is output), but it is evident that the connection was 
not established:

done.
2015/08/01 20:56:55 command exited with: nil
2015/08/01 20:56:55 closing listener: nil
2015/08/01 20:56:55 accept tcp4 127.0.0.1:42550: use of closed network 
connection
exit status 1

From this, it appears as though the Python client thinks it has established a 
connection, because neither the `connect` nor the `send` call raise an 
exception.

This behaviour is corrected in Python 3 (all runs look like the first 
instance), so it appears to be local to Python 2.7.

--
components: Library (Lib)
messages: 247826
nosy: Seán Kelleher
priority: normal
severity: normal
status: open
title: Python client failing to connect to server but completing as if 
successful
type: behavior
versions: Python 2.7

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-01 Thread Raymond Hettinger

Raymond Hettinger added the comment:

The last version of the patch works well for me and has a nice, elegant look.

--
nosy: +rhettinger

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



[issue24745] Better default font for editor

2015-08-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Review published with the changes I made, tested, and committed.

I am not convinced that writing all 3 font attributes is needed, which is good 
since existing user files do not have all 3.  But safer for future.  Part of my 
preference to avoid user file when not needed (because only config matches 
default) is because user files are an occasional point of failure.  But we 
should fix bugs noted in TODOs and on tracker.

--
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue1175004] Export more libreadline API functions

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

Simon: See Issue 24266 about recovering after interrupting the search mode.

Also, I think Issue 1744456 wraps a different part of the Readline API 
(rl_callback_ for non-blocking interface) to the patch here (rl_add_defun for 
adding a custom “key binding” or something). So the two patches could be 
considered independently.

--
nosy: +vadmium

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Mark: Serhiy is asking that we not make the change to maintenance releases, 2.7 
and 3.4, without further discussion and agreement.  He is correct to do so.  I 
reread PEP 434 and it specifically says  The PEP would apply to ..., but not 
necessarily to possible major re-writes such as switching to themed widgets ... 
.  'Not necessarily' means 'only permitted with further discussion.  Further 
discussion should continue on #24759 which is specifically about this issue.

--
versions:  -Python 2.7, Python 3.4

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



[issue24759] Idle: require ttk (and tcl/tk 8.5)

2015-08-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Re-reading PEP 434, I was mistaken to apply this patch to 2.7 and 3.4 without 
further discussion.  The PEP says The PEP would apply to minor ..., but not 
necessarily to possible major re-writes such as switching to themed widgets ... 
. 

Nick, should I post something on python-ideas or pydev, or continue here (moved 
from #24750) about making the switch also in 2.7 and 3.4?

I believe it would be best overall to at upgrade Idle 2.7, but I will not cry 
if we stop patching it now. Ditto for 3.4, which will soon get security fixes 
only anyway.  I am ok with using ttk starting with 3.5.

--
nosy: +ncoghlan
resolution: fixed - 
stage: resolved - 
title: Idle: require 8.5 / ttk - Idle: require ttk (and tcl/tk 8.5)

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



[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread eryksun

eryksun added the comment:

64-bit 3.5.0b4 works for me in Windows 7. Try loading _tkinter.pyd in 
[Dependency Walker][1]. Or try loading the dependent DLLs directly via ctypes:

import os
import _ctypes

dlls_path = os.path.dirname(_ctypes.__file__)
for d in ('tcl86t.dll', 'tk86t.dll'):
path = os.path.join(dlls_path, d)
try:
_ctypes.LoadLibrary(path)
except OSError:
print('failed:', path)

[1]: http://dependencywalker.com

--
nosy: +eryksun

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



[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread Steve Dower

Steve Dower added the comment:

Correct. I'll fix this on Monday or Tuesday this week.

--
assignee:  - steve.dower

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



[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread Steve Dower

Steve Dower added the comment:

Until then, if you find and install the VC distributable for VS 2015 then 
you'll have the files you need. On my phone now so I don't have the link handy

--

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



[issue16346] maximum recursion installing readline package

2015-08-01 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
title: readline problem - maximum recursion installing readline package

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



[issue24727] Expand readline module

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

Suggest you integrate your rl_forced_update_display() wrapper and documentation 
with the existing patches in Issue 23067.

Regarding the reading_line() flag, your use case seems a bit racy to me. Can’t 
the other thread start reading a line after reading_line() returns false and 
before your print() statement happens?

--
dependencies: +Export readline forced_update_display
nosy: +vadmium

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-01 Thread Alex Grönholm

Alex Grönholm added the comment:

I agree with Stefan and Yury. As for the tests, Yury seemed to have those in 
his patches -- I'll take a look and see if they're directly applicable.

For Python 3.5 and earlier, there is a workaround to awaiting for concurrent 
Futures, but it requires the use of the undocumented wrap_future() function. It 
is the fact that it's undocumented that bothers me.

--

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



[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread eryksun

eryksun added the comment:

Not finding python35.dll is normal since there's no activation context from 
python.exe. The vcruntime140 library is statically linked to avoid having to 
distribute vcruntime140.dll. See issue 24476. This needs to be changed in the 
TCL/Tk project files as well.

--

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



[issue24773] Add local time disambiguation flag to datetime

2015-08-01 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


Added file: http://bugs.python.org/file40096/ltdf-2.patch

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



[issue24774] inconsistency in http.server.test

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

Patch looks okay to me, although another option could be to move the argument 
parsing back into the test() function, where it was originally.

BTW I don’t think the 3.3 branch is open to fixes like this any more.

--
nosy: +vadmium
stage:  - patch review
versions:  -Python 3.3

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

On Idle-sig, in 'ttk appearance' Mark posted before and after screenshots of 
Preferences Font tab for Windows, Linux, and Mac
http://www.tkdocs.com/images/idle_cfgfont_ttk.png
Glyph, who I never knew read Idle-sig, calls the after shots great (I think he 
has a Mac, which sees the most improvement).

--

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-01 Thread Mark Roseman

Mark Roseman added the comment:

Serhiy, I appreciate what you're saying, but special casing to handle both ttk 
and non-ttk cases seems not feasible given the amount of resources available to 
enhance/maintain IDLE. Additionally, part of the rationale for making these 
changes is to simplify the code by leveraging things in ttk that aren't in 
'classic' Tkinter.

Would you suggest:
(a) keep two versions of the IDLE code in the distro (one a snapshot)
(b) require 8.5 Tcl/Tk be installed on a system before IDLE can be used
(c) leave IDLE with its current (embarrassing) UI
(d) drop IDLE from Python altogether

--

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



[issue24745] Better default font for editor

2015-08-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 55e5f7766d2c by Terry Jan Reedy in branch '2.7':
Issue 24745: Switch from Courier to platform-sensitive TkFixedFont as default
https://hg.python.org/cpython/rev/55e5f7766d2c

New changeset 5c992189414f by Terry Jan Reedy in branch '3.4':
Issue 24745: Switch from Courier to platform-sensitive TkFixedFont as default
https://hg.python.org/cpython/rev/5c992189414f

New changeset 90c02a0bec08 by Terry Jan Reedy in branch '3.5':
Issue 24745: Merge with 3.4
https://hg.python.org/cpython/rev/90c02a0bec08

New changeset 3a731756f9cc by Terry Jan Reedy in branch 'default':
Issue 24745: Merge with 3.5
https://hg.python.org/cpython/rev/3a731756f9cc

--
nosy: +python-dev

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



[issue24759] Idle: require ttk (and tcl/tk 8.5)

2015-08-01 Thread Mark Roseman

Mark Roseman added the comment:

Got it re: 2.7/3.4. So the only stumbling block left to 8.5/ttk in 3.5 would be 
the current Mac build that is ok with Tcl/Tk 8.4...?

--

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



[issue24776] Improve Fonts/Tabs UX for IDLE

2015-08-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree that this tab needs an overhall.
Existing issues would be part of this:
17642 Font resizing hot keys (not sure about this)
14440 Use multiple alphabets in example (definitely)

Other ideas that I remember:
* Enlarge dialog box as needed (it already expands horizontally with big fonts).
* Put indent box across top with unobtrusive spinbox or pulldown box to right.
* For font names, use the same sort of listbox as used with completions, where 
one can type initial chars of name in entry box and selection bar moves down to 
first entry that matches. 
* Put example box to right of selection box.

--
nosy: +markroseman
versions: +Python 3.5

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



[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-01 Thread Pierre Quentel

Pierre Quentel added the comment:

Yes, I will be able to review the patch next week

2015-07-31 18:13 GMT+02:00 STINNER Victor rep...@bugs.python.org:


 STINNER Victor added the comment:

 @Pierre Quentel: Hi! Are you still working on CGI? Can you please review
 this patch? Thanks.

 --

 Previous large change in the cgi module: issue #4953. Pierre helped a lot
 on this one.

 --
 nosy: +quentel

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue24764
 ___


--

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



[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-08-01 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

I am sorry but I still don't get how things are organized here, so pinging this 
up. What is the next step? Should I wait for another review?

--

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



[issue24692] types.coroutines() idempotence documentation

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

I think you are right that it would be typically used as a decorator. Patch v2 
changes it to be defined as a decorator.

Not sure what the second part of your comment is referring to. The existing 
text about lack of __await__() maybe? You still have to have something (such as 
“asyncio”) drive the top-level coroutine. So that is a third thing users have 
to do with them. Passing a coroutine to “await” does not magically make it go, 
it just becomes a subordinate of the outer coroutine.

--
Added file: http://bugs.python.org/file40092/coro-idempotent.v2.patch

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



[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread Adam Bartoš

New submission from Adam Bartoš:

I found out that I cannot import tkinter in Python 3.5.0b4 on 64-bit Windows 
Vista. Trying to import _tkinter results in ImportError: DLL load failed. On 
the other hand I have no problem importing _ctypes whose .pyd file is at the 
same location as _tkinter.pyd.

--
components: Tkinter, Windows
messages: 247802
nosy: Drekin, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Cannot import _tkinter in Python 3.5 on Windows
type: behavior
versions: Python 3.5

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



[issue24772] Smaller viewport shifts the expand left menu character into the text

2015-08-01 Thread karl

New submission from karl:

Adding the following to basic.css:

```css
dl {
margin-bottom: 15px;
word-wrap: break-word;
}
```

will solve the issue.

See https://github.com/webcompat/web-bugs/issues/1479

--
assignee: docs@python
components: Documentation
messages: 247803
nosy: docs@python, karlcow
priority: normal
severity: normal
status: open
title: Smaller viewport shifts the expand left menu character into the text

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-01 Thread STINNER Victor

STINNER Victor added the comment:

I'm not sure that it's a good idea to start adding special cases in Task
class which is already very complex.

Instead we may add a way to register custom awaitable objects?

--

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



[issue7291] urllib2 cannot handle https with proxy requiring auth

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

For the record, a while ago I think I made a patch implementing my 
HTTPConnection.detach() proposal. I can probably dig it up if anyone is 
interested.

However I gave up on fixing this bug in “urllib.request”. As far as I 
understand it, the framework does not distinguish the 407 Proxy Authentication 
Required error of the initial proxy CONNECT request from any potential 407 
response from a tunnelled connection. Perhaps a special case could be made; I 
think there are already lots of special cases. But the maze of urlopen() 
handlers is already too complicated and I decided this was too hard to bother 
working on. Sorry :)

--
stage:  - needs patch

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-01 Thread Alex Grönholm

Alex Grönholm added the comment:

I think concurrent.futures.Future warrants adding support for in Task. It 
predates asyncio and is generic enough. Can you elaborate on what other types 
you would want to support as awaitables in Task?

--

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