[issue23955] Add python.ini file for embedded/applocal installs

2015-05-05 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 23857 was the one where I thought there might be an overlap with a design consideration on Linux (related to coming up with a conventional for backporting PEP 476 as a CPython redistributor). However, I've now suggested a different path forward there, clos

[issue20303] Argument Clinic: optional groups

2015-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I tried to make a workaround with using default value instead of optional group, but for the following declaration an incorrect code is generated: /*[clinic input] _curses.window.getstr [ y: int Y-coordinate. x: int X-coordinate.

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Installing the april 20 pre-release Python 3.5.0a4: $ tar xJf Python-3.5.0a4.tar.xz $ cd Python-3.5.0a4 && ./configure $ grep "LIBPL=" Makefile LIBPL= NONE/lib/python3.5/config-$(VERSION)$(ABIFLAGS) $ make all $ sudo make install

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: > FWIW the regression was introduced by the change to LIBPL in Makefile.pre.in > made by changeset 3d3db6d11e8b. Ooops, the regression was made by changeset 84328374ea01. -- ___ Python tracker

[issue24126] newlines attribute does not get set after calling readline()

2015-05-05 Thread Davide Mancusi
New submission from Davide Mancusi: I have a text file with Windows-style line terminators (\r\n) which I open in universal newlines mode. I would expect the newlines attribute to be set after the first call to the readline() method, but apparently this is not the case: >>> f=open('test_crlf',

[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2015-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated to the tip. Unfortunately, Argument Clinic now generates incorrect parsing code for some functions. Tests are failed. -- Added file: http://bugs.python.org/file39293/curses_clinic_2.patch ___ Python tracker

[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2015-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed signatures generated with macro in _curses_panel. -- Added file: http://bugs.python.org/file39294/curses_clinic_3.patch ___ Python tracker

[issue24126] newlines attribute does not get set after calling readline()

2015-05-05 Thread Davide Mancusi
Davide Mancusi added the comment: For completeness, here is some versioning information: $ python Python 2.7 (r27:82500, Mar 23 2015, 16:46:39) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sysconfig >>> print

[issue20303] Argument Clinic: optional groups

2015-05-05 Thread Larry Hastings
Larry Hastings added the comment: Yes, when I implemented optional groups, I didn't realize that sometimes people mixed them with optional arguments (with default values). Clinic doesn't cope well when you mix the two. Does this work? /*[clinic input] _curses.window.getstr [ y: int

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-05 Thread gavstar
New submission from gavstar: Hi All; After a fresh install of Python 2.7 I receive the following error: Fatal error in launcher: Job information querying failed when I type "pip" into the command line. a google search finds this error in relation to wine but I'm not using wine. As this error i

[issue20303] Argument Clinic: optional groups

2015-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Does this work? No, Argument Clinic just rejects this (as in msg208478). Perhaps a half of functions that need optional groups, need also support of default argument or other optional group. -- ___ Python track

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-05 Thread R. David Murray
Changes by R. David Murray : -- components: +Windows nosy: +dstufft, steve.dower, tim.golden, vinay.sajip, zach.ware ___ Python tracker ___ __

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-05 Thread Paul Moore
Changes by Paul Moore : -- nosy: +paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-05 Thread Tim Golden
Tim Golden added the comment: To eliminate pip from the equation, can you just try running: "py" on its own command line? Also: what platform are you on? Win7? Win8.1? 32-bit or 64-bit? Are you running in an unusually restrictive user environment? -- _

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-05 Thread Paul Moore
Paul Moore added the comment: Install is noted as being on Windows 10 tech preview. I don't have a Windows 10 installation present, but the similar issues reported in Wine seem to be related to limited support in Wine for Windows job objects. Have there been any changes to Job object support i

[issue24119] Carry comments with the AST

2015-05-05 Thread Brett Cannon
Brett Cannon added the comment: Another option is to provide a tool in 'tokenize' or 'ast' which will take the source and some comment regex and then attach the found comment metadata to the AST. -- ___ Python tracker

[issue24119] Carry comments with the AST

2015-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or a separate AST node -> comment mapping. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-l

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-05 Thread Matthias Klose
Changes by Matthias Klose : -- assignee: -> doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-05-05 Thread David D. Riddle
David D. Riddle added the comment: Here is another patch. I fixed a bug in GetLineTestsBadData.test_getline and refactored the code. I think everything is good now. As for the ResourceWarnings they are not caused by linecache. The problem is with tokenize.open (See http://bugs.python.org/issue

[issue18369] X509 cert class for ssl module

2015-05-05 Thread Mark Lawrence
Mark Lawrence added the comment: Presumably too late for 3.5 so do we bump this to 3.6? Alternatively could the Derek Wilson patch make 3.5, there's nearly three weeks until beta 1 is due on 24th May according to https://www.python.org/dev/peps/pep-0478/ ? -- nosy: +BreamoreBoy _

[issue18369] X509 cert class for ssl module

2015-05-05 Thread Christian Heimes
Christian Heimes added the comment: I've a mostly working prototype at https://github.com/tiran/cpython/tree/feature/x509cert . It's missing documentation, more tests and I have to port it to argument clinic. -- ___ Python tracker

[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2015-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: issue20178-cyptes-01.patch is outdated due to changes in Argument Clinic and ctypes. Here is updated and extended patch. -- nosy: +serhiy.storchaka stage: needs patch -> patch review Added file: http://bugs.python.org/file39296/issue20178-cyptes-02.pa

[issue1294959] Problems with /usr/lib64 builds.

2015-05-05 Thread Mark Lawrence
Mark Lawrence added the comment: Also see #15631 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue24088] yield expression confusion

2015-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset b87d96e0708e by Guido van Rossum in branch '3.4': Issue 24088: Clarify semantics of yield expression. https://hg.python.org/cpython/rev/b87d96e0708e -- nosy: +python-dev ___ Python tracker

[issue24088] yield expression confusion

2015-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e59d82d3d09 by Guido van Rossum in branch 'default': Issue 24088: Clarify semantics of yield expression (merge from 3.4). https://hg.python.org/cpython/rev/6e59d82d3d09 -- ___ Python tracker

[issue24088] yield expression confusion

2015-05-05 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24018] add a Generator ABC

2015-05-05 Thread Łukasz Langa
Łukasz Langa added the comment: Yup, will do. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24125] Fix for #23865 breaks docutils

2015-05-05 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: The patch fixes the issue, thanks Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24128] Documentation links are forwarded to Python 2

2015-05-05 Thread levkivskyi
New submission from levkivskyi: Links to Python library documentation such as: http://docs.python.org/library/functions.html http://docs.python.org/library/itertools.html http://docs.python.org/library/functools.html etc. are automatically forwarded to the Python 2 versions, namely to: https://do

[issue24128] Documentation links are forwarded to Python 2

2015-05-05 Thread R. David Murray
R. David Murray added the comment: I believe that this is intentional, so that old "deep" links do not break. Georg can say for sure. -- nosy: +georg.brandl, r.david.murray ___ Python tracker

[issue24128] Documentation links are forwarded to Python 2

2015-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.05.2015 21:24, levkivskyi wrote: > > Links to Python library documentation such as: > http://docs.python.org/library/functions.html > http://docs.python.org/library/itertools.html > http://docs.python.org/library/functools.html > etc. > are automatical

[issue24128] Documentation links are forwarded to Python 2

2015-05-05 Thread levkivskyi
levkivskyi added the comment: Is it possible to check whether the Python 3 version exists and redirect to it and if not (like for http://docs.python.org/library/fpformat.html) then redirect to Python 2 ? -- ___ Python tracker

[issue24128] Documentation links are forwarded to Python 2

2015-05-05 Thread R. David Murray
R. David Murray added the comment: That would defeat the purpose. Existing links are intending to point to python2, not python3. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue24124] Two versions of instructions for installing Python modules

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue24120] pathlib.(r)glob stops on PermissionDenied exception

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue18713] Clearly document the use of PYTHONIOENCODING to set surrogateescape

2015-05-05 Thread Nikolaus Rath
Nikolaus Rath added the comment: The first thing that would come to my mind when reading Nick's proposed document (without first reading this bug report) is "So why the heck is this not the default?". It would probably save a lot of people a lot of anger if there was also a brief explanation

[issue24114] ctypes.utils uninitialized variable 'path'

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge stage: -> patch review type: crash -> ___ Python tracker ___ __

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

2015-05-05 Thread levkivskyi
New submission from levkivskyi: The documentation on execution model https://docs.python.org/3/reference/executionmodel.html contains the statement """ A class definition is an executable statement that may use and define names. These references follow the normal rules for name resolution. The

[issue24111] Valgrind suppression file should be updated

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +haypo versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11874] argparse assertion failure with brackets in metavars

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- stage: -> patch review versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue24089] argparse crashes with AssertionError

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> argparse assertion failure with brackets in metavars ___ Python tracker ___

[issue11874] argparse assertion failure with brackets in metavars

2015-05-05 Thread SpaceOne
Changes by SpaceOne : -- nosy: +spaceone ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2015-05-05 Thread Maciej Szulik
Maciej Szulik added the comment: David I did the review and there's one thing that worries me the most, actually two: 1. changing the usual meaning of None in the IMAP's __init__ method, where None has the same meaning as True, where I think it should be the opposite. 2. I'm not sure we want to

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2015-05-05 Thread David Watson
David Watson added the comment: I've rebased the patches onto all the currently released branches, but since there are now so many variations required, I've bundled the pass-unterminated and test patches into a single set (enable-unterminated-*), and the return-unterminated and addrlen-makesockad

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2015-05-05 Thread R. David Murray
R. David Murray added the comment: Well, the problem with that is that we then have to parse the capability to see if it is utf8 that is being enabled. I don't like that as an API, it feels fragile. Since capabilities cannot later be disabled, there's no functional reason to keep it separate

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29512e2015d9 by doko in branch '3.4': - Issue #24122, fix quoting for LIBPL https://hg.python.org/cpython/rev/29512e2015d9 -- nosy: +python-dev ___ Python tracker

[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, but the docs don't need to be committed in time for beta 1. The source code should go in ASAP, especially since the PEP 492 changes will have to be merged in on top of them. @Thomas: which Monday were you shooting for? I had hoped yesterday... On Sat, Ma

[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Guido van Rossum
Guido van Rossum added the comment: (To clarify, the PEP itself probably serves as enough documentation in the interim.) On Tue, May 5, 2015 at 4:47 PM, Guido van Rossum wrote: > Yeah, but the docs don't need to be committed in time for beta 1. The > source code should go in ASAP, especially s

[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Tue, May 5, 2015, at 19:48, Guido van Rossum wrote: > > Guido van Rossum added the comment: > > Yeah, but the docs don't need to be committed in time for beta 1. The > source code should go in ASAP, especially since the PEP 492 changes will > have to be m

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- dependencies: +Missing *-unpacking generalizations ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-05 Thread Yury Selivanov
Yury Selivanov added the comment: I'll upload the most recent patch soon. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: twouters -> benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: a65f685ba8c0 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-05 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to push the first part of the implementation (without __future__) just to unblock the implementation of the PEP 492 (issue #24017: async/await)? Later push the second part for __future__. -- __

[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Benjamin! On May 5, 2015 5:17 PM, "Benjamin Peterson" wrote: > > Benjamin Peterson added the comment: > > a65f685ba8c0 > > -- > resolution: -> fixed > status: open -> closed > > ___ > Python tracker >

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-05 Thread Guido van Rossum
Guido van Rossum added the comment: Well that would break a lot of code... On May 5, 2015 5:18 PM, "STINNER Victor" wrote: > > STINNER Victor added the comment: > > Would it be possible to push the first part of the implementation (without > __future__) just to unblock the implementation of the

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-05 Thread Chris Angelico
Chris Angelico added the comment: Stinner, not sure what you mean by first part / second part. Is there a way for me to withdraw the first two versions of the patch and just keep #37646? -- ___ Python tracker

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-05 Thread gavstar
gavstar added the comment: Hi Tim.golden; py in its own command line gives.. " Microsoft Windows [Version 10.0.10074] (c) 2015 Microsoft Corporation. All rights reserved. C:\Users\Gav>py Job information querying failed C:\Users\Gav> " on platform windows 10 tech preview 64bit. as administrator

[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-05 Thread Ned Deily
Ned Deily added the comment: This checkin also breaks OS X framework builds. For some reason, framework builds are compiled with the gcc -fno-common option. The code in configure.ac to add that option dates back to the initial OS X framework support (c3c87ce4afdc from 2001). It's not clear

[issue24130] Remove -fno-common compile option from OS X framework builds?

2015-05-05 Thread Ned Deily
New submission from Ned Deily: As noted in msg242635 of issue23911, for some reason configure.ac adds the gcc -fno-common option for OS X framework builds. Is this still necessary? I'm guessing it might be vestigial code left over from the Mac toolbox support in Python 2 that was removed in

[issue24130] Remove -fno-common compile option from OS X framework builds?

2015-05-05 Thread Ned Deily
Ned Deily added the comment: Sorry, that second patch should have been: diff -configure.ac --- a/configure.ac Tue May 05 12:04:35 2015 -0700 +++ b/configure.ac Tue May 05 18:22:39 2015 -0700 @@ -2346,7 +2346,7 @@ Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; #

[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue24131] [configparser] Add section/option delimiter to ExtendedInterpolation

2015-05-05 Thread Guilherme
New submission from Guilherme: Using configparser.ExtendedInterpolation one can interpolate ${section:option}. It would be nice to have a parameter on ExtendedInterpolation __init__ to change the delimiter, thus one can use ${section/option} instead (using '/' instead of ':', for example). --

[issue24131] [configparser] Add section/option delimiter to ExtendedInterpolation

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-05 Thread Eric Snow
Eric Snow added the comment: Thanks for pointing this out, Ned. Early on I ran into a problem when running _freeze_importlib without the flag set. However, I expect that it was not necessary after a certain point (e.g. once I had a valid _importlib_external.h). I'll remove the flag as sugge

[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-05 Thread Eric Snow
Eric Snow added the comment: changeset: 95887:3bea670c9830 user:Eric Snow date:Tue May 05 21:29:31 2015 -0600 summary: Remove an unnecessary flag. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed __

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f65174aef9ea by Berker Peksag in branch 'default': Issue #9517: Move script_helper to the support package. https://hg.python.org/cpython/rev/f65174aef9ea -- nosy: +python-dev ___ Python tracker

[issue24132] Direct sub-classing of pathless.Path

2015-05-05 Thread Christophe BAL
New submission from Christophe BAL: Hello. I have noticed a problem with the following code. from pathlib import Path class PPath(Path): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) test = PPath("dir", "test.txt") This gives the following error message.

[issue24132] Direct sub-classing of pathless.Path

2015-05-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue24132] Direct sub-classing of pathlib.Path

2015-05-05 Thread Christophe BAL
Changes by Christophe BAL : -- title: Direct sub-classing of pathless.Path -> Direct sub-classing of pathlib.Path ___ Python tracker ___

[issue23865] Fix possible leaks in close methods

2015-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe340c2a220e by Serhiy Storchaka in branch '2.7': Issue #24125: Saved error's line and column numbers when an error is occured https://hg.python.org/cpython/rev/fe340c2a220e New changeset 7f8cd879687b by Serhiy Storchaka in branch '3.4': Issue #2412

[issue24125] Fix for #23865 breaks docutils

2015-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe340c2a220e by Serhiy Storchaka in branch '2.7': Issue #24125: Saved error's line and column numbers when an error is occured https://hg.python.org/cpython/rev/fe340c2a220e New changeset 7f8cd879687b by Serhiy Storchaka in branch '3.4': Issue #2412

[issue24009] Get rid of rare format units in PyArg_Parse*

2015-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset d65233f630e1 by Serhiy Storchaka in branch 'default': Issue #24009: Got rid of using rare "y#" format unit in TextIOWrapper.tell(). https://hg.python.org/cpython/rev/d65233f630e1 -- nosy: +python-dev ___