[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

[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

[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

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

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

[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

[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

[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

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

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

[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

[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

[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

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

[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

[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

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

[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

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

[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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

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

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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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',

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

[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

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

[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()

[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

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

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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

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

[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

[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

[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