[issue24883] Typo in c-api/buffer documentation

2015-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c5af3e398f0 by Benjamin Peterson in branch '3.4': 'Py_Buffer' should be 'Py_buffer' (closes #24883) https://hg.python.org/cpython/rev/0c5af3e398f0 New changeset 76892906253c by Benjamin Peterson in branch '3.5': merge 3.4 (#24883) https://hg.python

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-08-17 Thread Stefan Behnel
Stefan Behnel added the comment: I think the first two sentences can simply be removed to fix this, without loss of readability or information. -- ___ Python tracker ___ ___

[issue1635741] Interpreter seems to leak references after finalization

2015-08-17 Thread Alex Budovski
Alex Budovski added the comment: Interestingly enough, some of the leaked memory came from the finalize routine itself! Here's one example: 0:004> !heap -p -a 0x00DB144346F0 address 00db144346f0 found in _HEAP @ db0cae HEAP_ENTRY Size Prev FlagsUser

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-08-17 Thread Stefan Behnel
Stefan Behnel added the comment: The "can store arbitrary objects" sentence is now duplicated, and still way too visible. I have to read three sentences until it tells me what I need to know. -- ___ Python tracker

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-17 Thread Steve Dower
Steve Dower added the comment: I'll withdraw my current pull request and make a new one tomorrow. I prefer to check into 3.5.1 immediately, and especially since this one will be covered by the buildbots, so I'll do that first. -- ___ Python tracker

[issue24883] Typo in c-api/buffer documentation

2015-08-17 Thread TAKASE Arihiro
New submission from TAKASE Arihiro: https://docs.python.org/3/c-api/buffer.html Some links to the members of Py_buffer are not available. "~Py_Buffer" should be "~Py_buffer". The attached patch fixes it. -- assignee: docs@python components: Documentation files: bufferdoc.patch keywords:

[issue24878] Add docstrings to selected named tuples

2015-08-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24878] Add docstrings to selected named tuples

2015-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40f2bbb922e6 by Raymond Hettinger in branch 'default': Issue #24878: Add docstrings to selected namedtuples https://hg.python.org/cpython/rev/40f2bbb922e6 -- nosy: +python-dev ___ Python tracker

[issue24879] Pydoc to list data descriptors in _fields order if it exists

2015-08-17 Thread Yury Selivanov
Yury Selivanov added the comment: > Named tuples are not a type, they are a protocol. Guido has agreed that > checking for _fields is an acceptable and preferred way of finding out > whether something is a namedtuple. They are, but for protocols we usually use dunder names. "_fields" is a co

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-17 Thread Robert Collins
Robert Collins added the comment: Looks good to me. I think you should commit (or perhaps you are pending PR approval on the rc branch or something?) -- nosy: +rbcollins ___ Python tracker

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

2015-08-17 Thread Robert Collins
Robert Collins added the comment: Patch looks good to me too. I think this needs to be put forward as a PR to bitbucket right? It looks Release Critical to me. -- nosy: +rbcollins ___ Python tracker __

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-08-17 Thread Ned Deily
Ned Deily added the comment: Thanks for all of your contributions on this. I've committed a version along the lines I suggested along with Martin's example. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed type: behavior ->

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3cda8cf4d42 by Ned Deily in branch '2.7': Issue #24079: Improve description of the text and tail attributes for https://hg.python.org/cpython/rev/d3cda8cf4d42 New changeset ad0491f85050 by Ned Deily in branch '3.4': Issue #24079: Improve descriptio

[issue24879] Pydoc to list data descriptors in _fields order if it exists

2015-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Named tuples are not a type, they are a protocol. Guido has agreed that checking for _fields is an acceptable and preferred way of finding out whether something is a namedtuple.I can add a check to at least check the value of _fields is an iterable of

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-17 Thread Brett Cannon
Brett Cannon added the comment: Here is a new version of the patch with Nathaniel's and and Berker's comments addressed. -- Added file: http://bugs.python.org/file40199/issue24305.diff ___ Python tracker _

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2015-08-17 Thread Matt Spitz
Matt Spitz added the comment: On further investigation, it appears that we can't just check against the queue length, as it doesn't indicate whether threads are doing work or idle. A change here will need a counter/semaphore to keep track of the number of idle/working threads, which may have n

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2015-08-17 Thread Matt Spitz
Changes by Matt Spitz : -- title: ThreadPoolExceutor doesn't reuse threads until #threads == max_workers -> ThreadPoolExecutor doesn't reuse threads until #threads == max_workers ___ Python tracker ___

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

2015-08-17 Thread A. Jesse Jiryu Davis
Changes by A. Jesse Jiryu Davis : -- nosy: +emptysquare ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-08-17 Thread Mark Roseman
Mark Roseman added the comment: Looking to get some feedback on a large chunk of new code (not yet complete), for the 'new' preferences dialog. Not so much UI things as if I've made any glaring structural errors which aren't obvious to this Python sorta-newbie. For lack of a better place, I've

[issue24790] Idle: improve stack viewer

2015-08-17 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-17 Thread Steve Dower
Steve Dower added the comment: > Why not [require administrative privileges]? Because some people want to use Python and don't have administrative permissions on their own machine (e.g. students, employees, researchers, etc.) > The standard approach is to rebuild extension for every minor > re

[issue24790] Idle: improve stack viewer

2015-08-17 Thread Can İbanoğlu
Can İbanoğlu added the comment: It does indeed, thank you very much! I have signed the Contributor Agreement and will start working on this right away. -- ___ Python tracker ___

[issue24879] Pydoc to list data descriptors in _fields order if it exists

2015-08-17 Thread Yury Selivanov
Yury Selivanov added the comment: Can this be enabled only for namedtuples? Otherwise this might be a backwards incompatible change, for example: class Foo: '''spam''' _fields = None -- nosy: +yselivanov ___ Python tracker

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.08.2015 18:24, Steve Dower wrote: > > We can't have Python run VCredist because it requires administrative > privileges and installing Python does not require those. This is actually one > of the biggest complaints about the current installer, but be

[issue24790] Idle: improve stack viewer

2015-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Welcome. I was hoping a new contributor would see the 'easy' tag. Nervous is okay as long as it leads to heighten carefulness without paralysis. I am still nervous hitting the [Commit] button. 1. Important. Sign the contributor agreement. https://www.python.o

[issue24878] Add docstrings to selected named tuples

2015-08-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file40197/ntdoc2.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: So you mean text background as opposed to widget background. I changed the background of non-user-entered shell, stdout, and stderr text in my personal highlight theme to light versions of the foreground, and like the result so much I have considered proposin

[issue24790] Idle: improve stack viewer

2015-08-17 Thread Can İbanoğlu
Can İbanoğlu added the comment: Hello, I'm very interested in tackling this issue but this will be my first contribution to Python and I'm quite nervous. I have gone over the developer guide and FAQ but I would appreciate if you could let me know if I should approach this in a certain way.

[issue24776] Improve Fonts/Tabs UX for IDLE

2015-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. Cntl/Cmd +/- font sizing works in turtledemo within sensible limits. The code could be copied. -- ___ Python tracker ___ _

[issue24877] Bad Password for file using zipfile module

2015-08-17 Thread shiva prasanth
Changes by shiva prasanth : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue24776] Improve Fonts/Tabs UX for IDLE

2015-08-17 Thread Mark Roseman
Mark Roseman added the comment: Agree about the font resizing menu items/shortcuts... your original #17642 remains open for this -- ___ Python tracker ___ __

[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-08-17 Thread Mark Roseman
Mark Roseman added the comment: I am admittedly not a fan of skinnable user interfaces, especially for non-entertainment applications. It doesn't add anything to the usability, and makes support harder. It always says to me "hello, 2002 called and wants it's user interface back". I think the a

[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-08-17 Thread Mark Roseman
Mark Roseman added the comment: Yes that should be good to go -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-17 Thread Steve Dower
Steve Dower added the comment: We can't have Python run VCredist because it requires administrative privileges and installing Python does not require those. This is actually one of the biggest complaints about the current installer, but because it looks like the design and not a bug it only co

[issue24797] email.header.decode_header return type is not consistent

2015-08-17 Thread R. David Murray
R. David Murray added the comment: Right, it's provisional in 3.4. I'm working on the doc rewrite now (although I suppose there's a chance it won't get accepted for 3.5, I expect it to). Take a look at https://docs.python.org/3/library/email.policy.html. Basically, if you use EmailMessage in

[issue24797] email.header.decode_header return type is not consistent

2015-08-17 Thread Sebastian Kreft
Sebastian Kreft added the comment: And what would the new API be? There is nothing pointing to it either in the documentation https://docs.python.org/3.4/library/email.header.html or source code. -- ___ Python tracker

[issue23003] traceback.{print_exc, print_exception, format_exc, format_exception}: Potential AttributeError

2015-08-17 Thread STINNER Victor
Changes by STINNER Victor : -- superseder: -> traceback: add a new thin class storing a traceback without storing local variables ___ Python tracker ___ ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-17 Thread Cyd Haselton
Cyd Haselton added the comment: No...compiled with GCC 4.9.2 On August 17, 2015 9:39:55 AM CDT, Ryan Gonzalez wrote: > >Ryan Gonzalez added the comment: > >Wait, did you compile this with Clang? > >On August 17, 2015 9:24:50 AM CDT, Cyd Haselton > wrote: >> >>Cyd Haselton added the comment: >>

[issue24877] Bad Password for file using zipfile module

2015-08-17 Thread shiva prasanth
Changes by shiva prasanth : -- type: -> compile error versions: +Python 3.5 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list m

[issue24882] ThreadPoolExceutor doesn't reuse threads until #threads == max_workers

2015-08-17 Thread Matt Spitz
New submission from Matt Spitz: https://hg.python.org/cpython/file/3.4/Lib/concurrent/futures/thread.py#l114 ThreadPoolExecutor will keep spawning new threads, even if existing threads are waiting for new work. We should check against the queue length when deciding to spawn a new thread to avo

[issue24881] _pyio checks that `os.name == 'win32'` instead of 'nt'

2015-08-17 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.4, Python 3.6 ___ Python tracker ___ _

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-17 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Wait, did you compile this with Clang? On August 17, 2015 9:24:50 AM CDT, Cyd Haselton wrote: > >Cyd Haselton added the comment: > >Result: > >(gdb) bt >#0 0xb6a63cc8 in ?? () >#1 0xb6a5feb0 in ?? () >Backtrace stopped: previous frame identical to this frame (

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-17 Thread Cyd Haselton
Cyd Haselton added the comment: Result: (gdb) bt #0 0xb6a63cc8 in ?? () #1 0xb6a5feb0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) -- ___ Python tracker ___

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

2015-08-17 Thread Peter Landry
Peter Landry added the comment: Pradeep, that error seems to be in Barbican. This bug and patch only addresses content-length headers in MIME multipart messages. -- ___ Python tracker _

[issue24881] _pyio checks that `os.name == 'win32'` instead of 'nt'

2015-08-17 Thread Cosimo Lupo
New submission from Cosimo Lupo: the `_pyio` module at line 16 tries to check whether it is running on Windows platform, by doing: ``` if os.name == 'win32': from msvcrt import setmode as _setmode else: _setmode = None ``` However, the string returned by os.name is 'nt' and not 'win32'

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-17 Thread R. David Murray
R. David Murray added the comment: I believe you can put it in the test_doctest file, and call it using the appropriate runner from test.support from the test_main function. I haven't tried it though. -- ___ Python tracker

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-17 Thread Jairo Trad
Jairo Trad added the comment: I can write a unittest for this, where should I write it? a new test file? -- ___ Python tracker ___ ___

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: If I understand you correctly, the only advantage of using /MT is not require admin privileges for installation of the VC2015 runtime libs. Since VC2015 will be used by a lot of applications in a few months, and it's likely that MS will ship the runtime as W

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-17 Thread Steve Dower
Steve Dower added the comment: Unfortunately applocal deployment doesn't solve the versioning issue - you'll always need to use VS 2015 to build for Python 3.5. There are only a few more libraries that are affected by /MT. msvcp140.dll is the most likely one here. Doing the same /nodefaultlib

[issue24880] ctypeslib patch for regular expression for symbols to include

2015-08-17 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +theller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue24880] ctypeslib patch for regular expression for symbols to include

2015-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This appears to be an issue for an external library , although one hosted at svn.python.org. -- nosy: +ronaldoussoren ___ Python tracker _

Re: [issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-17 Thread M.-A. Lemburg
On 15.08.2015 22:41, Steve Dower wrote: > > Marc-Andre: there are a few concerns with including DLLs that aren't new with > any of the 3.5 changes. > > * depending on another CRT version is fine *if* it is available (users may > have to be told/helped to install the redistributable themselves)

[issue24880] ctypeslib patch for regular expression for symbols to include

2015-08-17 Thread Jan Wagner
New submission from Jan Wagner: There is an issue in ctypeslib that affects xml2py.py option "-r". The usage informs that "-r EXPRESSION regular expression for symbols to include". However, when the expression is evaluated, only exact name matches are actually selected. For example, -r "set" w

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

2015-08-17 Thread Pradeep
Pradeep added the comment: Hi Victor, I found similar problem at https://bugs.launchpad.net/barbican/+bug/1485452, is problem mentioned in the bug is same with mentioned bug? -- nosy: +pradeep ___ Python tracker

[issue24776] Improve Fonts/Tabs UX for IDLE

2015-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I would also like a pair of hotkeys, Cmd + and Cmd - to increase and decrease the font (this would greatly improve usability for font size changes). There is good precedent for this in other editors and terminal programs. -- ___