[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 is not listed as a current issue I suspect the error is due to 
the install being on windows 10 Tech Preview.
Does anyone know how to fix this error? 
Thanks
G.

--
messages: 242598
nosy: gavstar
priority: normal
severity: normal
status: open
title: Fatal error in launcher: Job information querying failed
versions: Python 2.7

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



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

2015-05-05 Thread Paul Moore

Changes by Paul Moore p.f.mo...@gmail.com:


--
nosy: +paul.moore

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



[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 in Windows 10? I couldn't find anything specific 
from a web search.

--

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



[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
Y-coordinate.
x: int
X-coordinate.
]
[
n: int
]


I'm surprised people are adding new arguments to a function like 
curses.window.getstr().

--

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



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

--

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



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue20303
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rdmur...@bitdance.com:


--
nosy: +doko

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



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

2015-05-05 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
components: +Windows
nosy: +dstufft, steve.dower, tim.golden, vinay.sajip, zach.ware

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



[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 gu...@python.org wrote:

 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, May 2, 2015 at 6:52 PM, Benjamin Peterson rep...@bugs.python.org
 wrote:


 Benjamin Peterson added the comment:

 It certainly would be nice to have documentation.

 --

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




 --
 --Guido van Rossum (python.org/~guido)


--

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



[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, May 2, 2015 at 6:52 PM, Benjamin Peterson rep...@bugs.python.org
wrote:


 Benjamin Peterson added the comment:

 It certainly would be nice to have documentation.

 --

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


--

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



[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\Gavpy
Job information querying failed

C:\Users\Gav

on platform windows 10 tech preview 64bit.
as administrator.

--

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



[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: patch review - resolved

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



[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 ericsnowcurren...@gmail.com
date:Tue May 05 21:29:31 2015 -0600
summary: Remove an unnecessary flag.

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

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue9517
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org wrote:


 Benjamin Peterson added the comment:

 a65f685ba8c0

 --
 resolution:  - fixed
 status: open - closed

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


--

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



[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 rep...@bugs.python.org 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 PEP 492 (issue
 #24017: async/await)?

 Later push the second part for __future__.

 --

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


--

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



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

2015-05-05 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
dependencies: +Missing *-unpacking generalizations

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



[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 to me why we use that option just in 
the case of framework builds (I suspect it may no longer be necessary) but the 
fact is that we have been and currently still do.  And, in any case, the GCC 
description of -fno-common 
(https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html) suggests that there 
may be valid reasons to use it on some platforms or that other compilers might 
behave this way by default.  A simple way to produce the error on Linux is:

./configure OPT=-fno-common  make

[...]
gcc -pthread   -o Programs/_freeze_importlib Programs/_freeze_importlib.o 
Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o 
Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o 
Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o 
Parser/parsetok.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o 
Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o 
Objects/bytesobject.o Objects/cellobject.o Objects/classobject.o 
Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o 
Objects/enumobject.o Objects/exceptions.o Objects/genobject.o 
Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o 
Objects/funcobject.o Objects/iterobject.o Objects/listobject.o 
Objects/longobject.o Objects/dictobject.o Objects/memoryobject.o 
Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o 
Objects/object.o Objects/obmalloc.o Objects/capsule.o Objects/rangeobject.o 
Objects/setobject.o Objects/sliceo
 bject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o 
Objects/unicodeobject.o Objects/unicodectype.o Objects/weakrefobject.o 
Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o 
Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o 
Python/dynamic_annotations.o Python/errors.o Python/frozenmain.o 
Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o 
Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o 
Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o 
Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o 
Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o 
Python/pystate.o Python/pythonrun.o Python/pytime.o Python/random.o 
Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o 
Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o 
Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/dynload
 _shlib.o   Python/thread.o Modules/config.o Modules/getpath.o Modules/main.o 
Modules/gcmodule.o  Modules/_threadmodule.o  Modules/signalmodule.o  
Modules/posixmodule.o  Modules/errnomodule.o  Modules/pwdmodule.o  
Modules/_sre.o  Modules/_codecsmodule.o  Modules/_weakref.o  
Modules/_functoolsmodule.o  Modules/_operator.o  Modules/_collectionsmodule.o  
Modules/itertoolsmodule.o  Modules/atexitmodule.o  Modules/_stat.o  
Modules/timemodule.o  Modules/_localemodule.o  Modules/_iomodule.o 
Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o 
Modules/textio.o Modules/stringio.o  Modules/zipimport.o  
Modules/faulthandler.o  Modules/_tracemalloc.o Modules/hashtable.o  
Modules/symtablemodule.o  Modules/xxsubtype.o -lpthread -ldl  -lutil   -lm
Python/pylifecycle.o:(.bss+0x20): multiple definition of `Py_FrozenFlag'
Programs/_freeze_importlib.o:(.data+0x0): first defined here
collect2: error: ld returned 1 exit status
Makefile:710: recipe for target 'Programs/_freeze_importlib' failed
make: *** [Programs/_freeze_importlib] Error 1

The OS X version of ld helpfully lists the modules:

duplicate symbol _Py_FrozenFlag in:
Programs/_freeze_importlib.o
Python/pylifecycle.o

I'm also not sure why the Py_FrozenFlag definition was added to 
_freeze_importlib.c in the first place.  Reverting it with the following patch 
seems to solve the problem in the few configurations I tried (OS X framework, 
OS X non-shared, Linux non-shared, Linux shared).

diff Programs/_freeze_importlib.c
--- a/Programs/_freeze_importlib.c  Tue May 05 12:04:35 2015 -0700
+++ b/Programs/_freeze_importlib.c  Tue May 05 17:10:39 2015 -0700
@@ -12,8 +12,6 @@
 #include unistd.h
 #endif

-int Py_FrozenFlag = 1;  /* Suppress errors from getpath.c */
-
 /* To avoid a circular dependency on frozen.o, we create our own structure
of frozen modules instead, left deliberately blank so as to avoid
unintentional import of a stale version of _frozen_importlib. */

--
nosy: +ned.deily
resolution: fixed - 
stage: resolved - needs patch
status: closed - open

___
Python tracker rep...@bugs.python.org

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

2015-05-05 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
priority: normal - release blocker

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



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

--

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



[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
assignee: twouters - benjamin.peterson

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



[issue2292] Missing *-unpacking generalizations

2015-05-05 Thread Benjamin Peterson

Benjamin Peterson added the comment:

a65f685ba8c0

--
resolution:  - fixed
status: open - closed

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



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

--

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



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

2015-05-05 Thread Ned Deily

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


--
nosy: +lukasz.langa

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



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

--
components: Library (Lib)
messages: 242638
nosy: giflw
priority: normal
severity: normal
status: open
title: [configparser] Add section/option delimiter to ExtendedInterpolation
type: enhancement
versions: Python 3.5, Python 3.6

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24017
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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;;
# -u libsys_s pulls in all symbols in libsys
Darwin/*)
-   LINKFORSHARED=$extra_undefs -framework CoreFoundation
+   LINKFORSHARED=-framework CoreFoundation

# Issue #18075: the default maximum stack size (8MBytes) is too
# small for the default recursion limit. Increase the stack size

--

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



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

 
Traceback (most recent call last):
  File /Users/projetmbc/test.py, line 14, in module
test = PPath(dir, test.txt)
  File /anaconda/lib/python3.4/pathlib.py, line 907, in __new__
self = cls._from_parts(args, init=False)
  File /anaconda/lib/python3.4/pathlib.py, line 589, in _from_parts
drv, root, parts = self._parse_args(args)
  File /anaconda/lib/python3.4/pathlib.py, line 582, in _parse_args
return cls._flavour.parse_parts(parts)
AttributeError: type object 'PPath' has no attribute '_flavour'

This breaks the sub-classing from Python point of view.

There is an ugly hack to sub-class Path but it's a bit unpythonic.

--
messages: 242643
nosy: projetmbc
priority: normal
severity: normal
status: open
title: Direct sub-classing of pathless.Path
type: behavior
versions: Python 3.4

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24122
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 merged in on top of them. @Thomas: which Monday were you
 shooting for? I had hoped yesterday...

I suppose I can just do it.

--

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue22906
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

diff configure.ac
--- a/configure.ac  Tue May 05 12:04:35 2015 -0700
+++ b/configure.ac  Tue May 05 16:47:34 2015 -0700
@@ -2101,9 +2101,6 @@
 AC_MSG_CHECKING(for --enable-framework)
 if test $enable_framework
 then
-   BASECFLAGS=$BASECFLAGS -fno-common -dynamic
-   # -F. is needed to allow linking to the framework while
-   # in the build location.
AC_DEFINE(WITH_NEXT_FRAMEWORK, 1,
  [Define if you want to produce an OpenStep/Rhapsody framework
  (shared library plus accessory files).])

Also, there seems to be a unused reference to $extra_undefs left over in 
configure.ac from the removed Mac toolbox support:

--- a/configure.ac  Tue May 05 12:04:35 2015 -0700
+++ b/configure.ac  Tue May 05 18:20:21 2015 -0700
@@ -2346,8 +2346,6 @@
Linux*|GNU*) LINKFORSHARED=-Xlinker -export-dynamic;;
# -u libsys_s pulls in all symbols in libsys
Darwin/*)
-   LINKFORSHARED=$extra_undefs -framework CoreFoundation
-
# Issue #18075: the default maximum stack size (8MBytes) is too
# small for the default recursion limit. Increase the stack size
# to ensure that tests don't crash

--
assignee: ned.deily
components: Build, Macintosh
messages: 242636
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: patch review
status: open
title: Remove -fno-common compile option from OS X framework builds?
versions: Python 3.5

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



[issue24132] Direct sub-classing of pathless.Path

2015-05-05 Thread Ned Deily

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


--
nosy: +pitrou

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24119
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-05-05 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
assignee:  - doko

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24119
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.   However, it would solve the problem of values to 
use in the init flag, and would remove the caveat that you shouldn't use 
UTF8=ENABLE in an explicit enable call, so perhaps it is best after all.

Do you have any interest in updating the patch?  I won't be able to get back to 
it until this weekend.

--

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



[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

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



[issue24088] yield expression confusion

2015-05-05 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
resolution:  - fixed
status: open - closed

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24088
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue24125
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24018] add a Generator ABC

2015-05-05 Thread Łukasz Langa

Łukasz Langa added the comment:

Yup, will do.

--

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24128
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue24088
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://docs.python.org/2/library/functions.html
https://docs.python.org/2/library/itertools.html
https://docs.python.org/2/library/functools.html

At the same time docs.python.org is forwarded to Python 3 version 
https://docs.python.org/3/

I believe that all the documentation links should be forwarded to the current 
version that is Python 3.

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 242613
nosy: docs@python, levkivskyi
priority: normal
severity: normal
status: open
title: Documentation links are forwarded to Python 2
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

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



[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 automatically forwarded to the Python 2 versions, namely to:
 https://docs.python.org/2/library/functions.html
 https://docs.python.org/2/library/itertools.html
 https://docs.python.org/2/library/functools.html
 
 At the same time docs.python.org is forwarded to Python 3 version 
 https://docs.python.org/3/
 
 I believe that all the documentation links should be forwarded to the current 
 version that is Python 3.

This is intentional. All new links to Python documentation
should include the version number. To keep existing old
links to the documentation working, they redirect to the
Python 2 version of the documentation.

--
nosy: +lemburg

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24128
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2015-05-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch that converts 3 functions in the _json module to Argument 
Clinic. All other functions doesn't fit with Argument Clinic.

--
Added file: http://bugs.python.org/file39292/json_clinic.patch

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



[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
$ ls -ld /usr/local/lib/python3.5/config-3.5*
ls: cannot access /usr/local/lib/python3.5/config-3.5*: No such file or 
directory

Installing the default branch patched at changeset bfea101f9402:
$ make distclean  ./configure
$ grep LIBPL= Makefile
LIBPL=  /usr/local/lib/python3.5/config-$(VERSION)$(ABIFLAGS)

$ make all
$ sudo make install
$ ls -ld /usr/local/lib/python3.5/config-3.5*
drwxr-xr-x 2 root root 4.0K May  5 10:32 
/usr/local/lib/python3.5/config-3.5dm/

FWIW the regression was introduced by the change to LIBPL in Makefile.pre.in 
made by changeset 3d3db6d11e8b.

--

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



[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', 'rU')
 f.newlines
 f.readline()
'foo\n'
 f.newlines
 f.readline()
'bar\n'
 f.newlines
'\r\n'

On the other hand, the newlines attribute gets set after the first call to 
readline() on a file with Unix-style line endings.

Also, surprisingly, calling tell() after the first readline() is enough to 
update the newlines attribute:

 f=open('test_crlf', 'rU')
 f.newlines
 f.readline()
'foo\n'
 f.newlines
 f.tell()
77
 f.newlines
'\r\n'

Are these behaviours intended? If so, they should probably be documented.

--
components: IO
messages: 242593
nosy: arekfu
priority: normal
severity: normal
status: open
title: newlines attribute does not get set after calling readline()
type: behavior
versions: Python 2.7

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



[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, closer to what 
happened with PEP 394 (which provides guidance to redistributors on symlink 
definitions, without making any changes to upstream CPython itself).

--

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24122
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.
]
n: int = 1023
/

[clinic start generated code]*/

Generated code is:

static PyObject *
_curses_window_getstr(PyCursesWindowObject *self, PyObject *args)
{
PyObject *return_value = NULL;
int group_left_1 = 0;
int y = 0;
int x = 0;
int n = 1023;

switch (PyTuple_GET_SIZE(args)) {
case 1:
if (!PyArg_ParseTuple(args, i:getstr, n))
goto exit;
break;
case 3:
if (!PyArg_ParseTuple(args, iii:getstr, y, x, n))
goto exit;
group_left_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, _curses.window.getstr requires 1 
to 3 arguments);
goto exit;
}
return_value = _curses_window_getstr_impl(self, group_left_1, y, x, n);

exit:
return return_value;
}

Expected generated code:

static PyObject *
_curses_window_getstr(PyCursesWindowObject *self, PyObject *args)
{
PyObject *return_value = NULL;
int group_left_1 = 0;
int y = 0;
int x = 0;
int n = 1023;

switch (PyTuple_GET_SIZE(args)) {
case 0:
case 1:
if (!PyArg_ParseTuple(args, |i:getstr, n))
goto exit;
break;
case 2:
case 3:
if (!PyArg_ParseTuple(args, ii|i:getstr, y, x, n))
goto exit;
group_left_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, _curses.window.getstr requires 0 
to 3 arguments);
goto exit;
}
return_value = _curses_window_getstr_impl(self, group_left_1, y, x, n);

exit:
return return_value;
}

This bug looks similar to issue24051.

--

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue20171
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24124] Two versions of instructions for installing Python modules

2015-05-05 Thread Ned Deily

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


--
nosy: +ncoghlan

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



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

2015-05-05 Thread Ned Deily

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


--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24120
___
___
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-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 namespace of 
the class definition becomes the attribute dictionary of the class. Names 
defined at the class scope are not visible in methods.

However, the following code (taken from 
http://lackingrhoticity.blogspot.ch/2008/08/4-python-variable-binding-oddities.html):

x = xtop
y = ytop
def func():
x = xlocal
y = ylocal
class C:
print(x)
print(y)
y = 1
func()

prints

xlocal
ytop

In case of normal rules for name resolution it should rise UnboundLocalError.

I suggest replacing the mentioned statement with the following:

A class definition is an executable statement that may use and define names. 
Free variables follow the normal rules for name resolution, bound variables are 
looked up in the global namespace. The namespace of the class definition 
becomes the attribute dictionary of the class. Names defined at the class scope 
are not visible in methods.

or a similar one.

--
assignee: docs@python
components: Documentation
messages: 242619
nosy: docs@python, levkivskyi
priority: normal
severity: normal
status: open
title: Incorrect (misleading) statement in the execution model documentation
type: behavior
versions: Python 3.4, Python 3.5

___
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



[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 rep...@bugs.python.org
http://bugs.python.org/issue24128
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 addressing this obvious first response :-).

--
nosy: +nikratio

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



[issue24114] ctypes.utils uninitialized variable 'path'

2015-05-05 Thread Ned Deily

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


--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
stage:  - patch review
type: crash - 

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



[issue24111] Valgrind suppression file should be updated

2015-05-05 Thread Ned Deily

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


--
nosy: +haypo
versions: +Python 3.5

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



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

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



[issue1294959] Problems with /usr/lib64 builds.

2015-05-05 Thread Mark Lawrence

Mark Lawrence added the comment:

Also see #15631

--

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue18369
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue23840).

--
Added file: http://bugs.python.org/file39295/mywork.patch

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



[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 rep...@bugs.python.org
http://bugs.python.org/issue20171
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11874] argparse assertion failure with brackets in metavars

2015-05-05 Thread Ned Deily

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


--
stage:  - patch review
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue24089] argparse crashes with AssertionError

2015-05-05 Thread Ned Deily

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


--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - argparse assertion failure with brackets in metavars

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



[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 have UTF8 enabled based on the init's flag. I've 
seen our IMAP library as a wrapper around protocol itself. Whereas the user 
must be aware of required steps needed to proceed. In this case enabling UTF8 
support is just the next command the client can, but doesn't have to sent 
directly, but only in AUTH state.

--

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



[issue11874] argparse assertion failure with brackets in metavars

2015-05-05 Thread SpaceOne

Changes by SpaceOne pyt...@florianbest.de:


--
nosy: +spaceone

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



[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-makesockaddr patches into another (fix-overrun-*), which
applies on top.

The fix-overrun patches can be applied on their own, but don't
include any tests.

The 3.5 branch has some more substantial changes which stop the
patches applying - I haven't looked into those yet.

--
Added file: 
http://bugs.python.org/file39297/enable-unterminated-2.7-2015-05-05.diff
Added file: http://bugs.python.org/file39298/fix-overrun-2.7-2015-05-05.diff
Added file: 
http://bugs.python.org/file39299/enable-unterminated-3.2-2015-05-05.diff
Added file: http://bugs.python.org/file39300/fix-overrun-3.2-2015-05-05.diff
Added file: 
http://bugs.python.org/file39301/enable-unterminated-3.3-2015-05-05.diff
Added file: http://bugs.python.org/file39302/fix-overrun-3.3-2015-05-05.diff
Added file: 
http://bugs.python.org/file39303/enable-unterminated-3.4-2015-05-05.diff
Added file: http://bugs.python.org/file39304/fix-overrun-3.4-2015-05-05.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8372
___# HG changeset patch
# Parent  376c2d81d0e2e8ec424d4aafabfbd75e42ea3804
Allow AF_UNIX pathnames up to the maximum 108 bytes on Linux,
since it does not require sun_path to be null terminated.

diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1581,6 +1581,44 @@ class TestExceptions(unittest.TestCase):
 self.assertTrue(issubclass(socket.gaierror, socket.error))
 self.assertTrue(issubclass(socket.timeout, socket.error))
 
+@unittest.skipUnless(sys.platform.startswith('linux'), 'Linux specific test')
+class TestLinuxPathLen(unittest.TestCase):
+
+# Test AF_UNIX path length limits on Linux.
+
+UNIX_PATH_MAX = 108
+
+def setUp(self):
+self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
+self.to_unlink = []
+
+def tearDown(self):
+self.sock.close()
+for name in self.to_unlink:
+test_support.unlink(name)
+
+def pathname(self, length):
+# Return a pathname of the given length.
+path = os.path.abspath(test_support.TESTFN)
+return path + a * (length - len(path))
+
+def testPathTooLong(self):
+# Check we can't bind to a path longer than the assumed maximum.
+path = self.pathname(self.UNIX_PATH_MAX + 1)
+with self.assertRaisesRegexp(socket.error, AF_UNIX path too long):
+self.sock.bind(path)
+self.to_unlink.append(path)
+
+def testMaxPathLen(self):
+# Test binding to a path of the maximum length and reading the
+# address back.  In this case, sun_path is not null terminated,
+# and makesockaddr() used to read past the end of it.
+path = self.pathname(self.UNIX_PATH_MAX)
+self.sock.bind(path)
+self.to_unlink.append(path)
+self.assertEqual(self.sock.getsockname(), path)
+os.stat(path)
+
 @unittest.skipUnless(sys.platform == 'linux', 'Linux specific test')
 class TestLinuxAbstractNamespace(unittest.TestCase):
 
@@ -1793,6 +1831,7 @@ def test_main():
 NetworkConnectionBehaviourTest,
 ])
 tests.append(BasicSocketPairTest)
+tests.append(TestLinuxPathLen)
 tests.append(TestLinuxAbstractNamespace)
 tests.extend([TIPCTest, TIPCThreadableTest])
 
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1251,27 +1251,16 @@ getsockaddrarg(PySocketSockObject *s, Py
 
 addr = (struct sockaddr_un*)addr_ret;
 #ifdef linux
-if (len  0  path[0] == 0) {
-/* Linux abstract namespace extension */
-if (len  sizeof addr-sun_path) {
-PyErr_SetString(socket_error,
-AF_UNIX path too long);
-return 0;
-}
-}
-else
-#endif /* linux */
-{
-/* regular NULL-terminated string */
-if (len = sizeof addr-sun_path) {
-PyErr_SetString(socket_error,
-AF_UNIX path too long);
-return 0;
-}
-addr-sun_path[len] = 0;
+if (len  sizeof(addr-sun_path)) {
+#else
+if (len = sizeof(addr-sun_path)) {
+#endif
+PyErr_SetString(socket_error, AF_UNIX path too long);
+return 0;
 }
 addr-sun_family = s-sock_family;
 memcpy(addr-sun_path, path, len);
+memset(addr-sun_path + len, 0, sizeof(addr-sun_path) - len);
 #if defined(PYOS_OS2)
 *len_ret = sizeof(*addr);
 #else
# HG changeset patch
# Parent  

[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 sysconfig.get_config_var('CONFIG_ARGS')   
 
 

'--prefix=/opt/python2.7' '--enable-shared'

--

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