[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-31 Thread Raymond Hettinger

Raymond Hettinger added the comment:

There isn't much defense against an overly literal reading of the docs.  Both 
``s.pop([i])`` and ``s.pop(i=-1)`` fail (the latter because pop doesn't take 
key word arguments and the docstring calls it index.  Also, you would have to 
define *s* and *i*. 

FWIW, there is already a note to the effect, The optional argument i defaults 
to -1, so that by default the last item is removed and returned.

The [optional_arg] notation is used in a number of places in the docs and 
docstrings.  It is also common with other languages as well and it is used in 
third-party Python references as well.  Eric's initial suggestion of 
``s.pop(i)`` is simply wrong and would make the docs worse.

As a starting point, realize that the docs have worked well for a lot of people 
for a long time so there should be a reluctance to change them on a single 
misreading.

The tutorial also includes the same notation, (see 
https://docs.python.org/3/tutorial/datastructures.html#more-on-lists ) and as 
far as I can tell, this has never been an issue.

One other thought, the most common way to call pop() is without an argument 
(usually, if you use an argument, it is a performance bug).  We want to make 
sure the docs don't suggest otherwise.

Unless there is some strong objection, I recommend leaving the docs as-is.

--

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



[issue24340] co_stacksize estimate can be highly off

2015-05-31 Thread Armin Rigo

New submission from Armin Rigo:

The computation of `co_stacksize' by the compiler is known to give only an 
upper bound estimate.  http://bugs.python.org/issue1754094 is an example of 
fixing a leak where every repetition of a statement makes `co_stacksize' 
bigger by 1.  However, in the whole 3.x series (from at least 3.2), the 
following simple code, which at runtime requires about 4 or 5 stack slots, 
leaks 14(!) slots for every `try:' block.  Maybe this should be improved to 
reduce the extreme size of the leak.

def g():
try: pass
except ImportError as e: pass
try: pass
except ImportError as e: pass
try: pass
except ImportError as e: pass
...

i.e. any function that is big enough to contain 6 try: blocks in sequence will 
have its stack size overestimated by about 70.

--
components: Interpreter Core
messages: 244552
nosy: arigo
priority: normal
severity: normal
status: open
title: co_stacksize estimate can be highly off

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



[issue24341] Test suite emits many DeprecationWarnings about sys.exc_clear() when -3 is enabled

2015-05-31 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

$ ./python -3 -We -bb -m test.regrtest -uall -W test___all__ test_threading
[1/2] test___all__
[2/2] test_threading
Unhandled exception in thread started by bound method Thread.__bootstrap of 
Thread(Thread-1, stopped -1326462144)
Traceback (most recent call last):
  File /home/serhiy/py/cpython2.7/Lib/threading.py, line 783, in __bootstrap
self.__bootstrap_inner()
  File /home/serhiy/py/cpython2.7/Lib/threading.py, line 855, in 
__bootstrap_inner
Unhandled exception in thread started by bound method Thread.__bootstrap of 
Thread(Thread-2, stopped -1376818368)
Traceback (most recent call last):
self.__exc_clear()
DeprecationWarning: sys.exc_clear() not supported in 3.x; use except clauses
  File /home/serhiy/py/cpython2.7/Lib/threading.py, line 783, in __bootstrap
Unhandled exception in thread started by bound method Thread.__bootstrap 
of Thread(Thread-3, stopped -1309676736)
Traceback (most recent call last):
  File /home/serhiy/py/cpython2.7/Lib/threading.py, line 783, in __bootstrap
self.__bootstrap_inner()
  File /home/serhiy/py/cpython2.7/Lib/threading.py, line 855, in 
__bootstrap_inner
self.__bootstrap_inner()
self.__exc_clear()
DeprecationWarning: sys.exc_clear() not supported in 3.x; use except clauses
  File /home/serhiy/py/cpython2.7/Lib/threading.py, line 855, in 
__bootstrap_inner
Unhandled exception in thread started by bound method Thread.__bootstrap of 
Thread(Thread-4, stopped -1326462144)

--
components: Tests
messages: 244553
nosy: amaury.forgeotdarc, jyasskin, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Test suite emits many DeprecationWarnings about sys.exc_clear() when -3 
is enabled
type: behavior
versions: Python 2.7

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



[issue19543] Add -3 warnings for codec convenience method changes

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5c8c123943cf by Tal Einat in branch 'default':
Issue #19543: Implementation of isclose as per PEP 485
https://hg.python.org/cpython/rev/5c8c123943cf

--

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



[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-31 Thread Eric V. Smith

Eric V. Smith added the comment:

I don't feel particularly strongly about it. It's mildly more confusing in the 
3.x docs than 2.7 because it's the only use in that section of an optional 
argument.

I disagree that s.pop(i) is wrong, since it agrees with the Results column. 
But I agree it's not an improvement and we shouldn't encourage it.

--

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



[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-31 Thread Raymond Hettinger

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


--
assignee: docs@python - rhettinger
nosy: +rhettinger

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



[issue24180] PEP 492: Documentation

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3eb817e19090 by Yury Selivanov in branch '3.5':
Issue 24180: Document sys.(set|get)_coroutine_wrapper
https://hg.python.org/cpython/rev/3eb817e19090

New changeset ca489c50fbd1 by Yury Selivanov in branch 'default':
Issue 24180: Document sys.(set|get)_coroutine_wrapper
https://hg.python.org/cpython/rev/ca489c50fbd1

--

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



[issue20404] Delayed exception using non-text encodings with TextIOWrapper

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf6e782a7f94 by Serhiy Storchaka in branch '2.7':
Issue #19543: Emit deprecation warning for known non-text encodings.
https://hg.python.org/cpython/rev/cf6e782a7f94

--

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



[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2015-05-31 Thread Marc Jofre

Marc Jofre added the comment:

Hi all,

I did more tests, identifying that the main issue I have resides in another 
script (multiprocessing), when using nuitka compiler.

I will get back to you with more info when I solve the multiprocessing issue.

The command prompt dump is:

data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042954F8
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042954F8
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042954F8
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x04291A20
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x04291B10
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042917C8
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x04291930
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042954F8
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042954F8
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042919A8
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x04291930
data: HTTP/1.0 200 OK 
self.stdout: socket._fileobject object at 0x042954F8
data: HTTP/1.0 500 INTERNAL SERVER ERROR 
self.stdout: socket._fileobject object at 0x042954F8

--

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



[issue19543] Add -3 warnings for codec convenience method changes

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0347f6e14ad6 by Tal Einat in branch '3.5':
Issue #19543: Implementation of isclose as per PEP 485
https://hg.python.org/cpython/rev/0347f6e14ad6

--

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



[issue24180] PEP 492: Documentation

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8a185bb62a25 by Yury Selivanov in branch '3.5':
Issue 24180: Mention sys.(get|set)_coroutine_wrapper in whatsnew
https://hg.python.org/cpython/rev/8a185bb62a25

New changeset 10f92b4d55ed by Yury Selivanov in branch 'default':
Issue 24180: Mention sys.(get|set)_coroutine_wrapper in whatsnew
https://hg.python.org/cpython/rev/10f92b4d55ed

--

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



[issue24270] PEP 485 (math.isclose) implementation

2015-05-31 Thread Tal Einat

Tal Einat added the comment:

I've just committed this into 3.5 and 3.6.

(I accidentally included the wrong issue number in the commit message, so the 
bot hasn't posted here about it. Sorry!)

--

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



[issue24004] avoid explicit generator type check in asyncio

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8296f0119f20 by Yury Selivanov in branch '3.5':
Issue 24004: Fix DeprecationWarning in a unittest
https://hg.python.org/cpython/rev/8296f0119f20

New changeset 60f5091cbfbf by Yury Selivanov in branch 'default':
Issue 24004: Fix DeprecationWarning in a unittest
https://hg.python.org/cpython/rev/60f5091cbfbf

--

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



[issue24004] avoid explicit generator type check in asyncio

2015-05-31 Thread Yury Selivanov

Yury Selivanov added the comment:

Thanks, Martin!

--

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



[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf6e782a7f94 by Serhiy Storchaka in branch '2.7':
Issue #19543: Emit deprecation warning for known non-text encodings.
https://hg.python.org/cpython/rev/cf6e782a7f94

--

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



[issue19543] Add -3 warnings for codec convenience method changes

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf6e782a7f94 by Serhiy Storchaka in branch '2.7':
Issue #19543: Emit deprecation warning for known non-text encodings.
https://hg.python.org/cpython/rev/cf6e782a7f94

--
nosy: +python-dev

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



[issue19543] Add -3 warnings for codec convenience method changes

2015-05-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Committed patch covers a large part of this issue, but not all.

Following patch emits py3k warning for unicode.decode(). For now unicode(u'a', 
'ascii') is forbidden, but u'a'.decode('ascii') is allowed in 2.7.

The risk of false positive in this patch is lower than in emitting warning on 
str.encode(), but is larger than in just committed patch.

--
Added file: http://bugs.python.org/file39576/issue19543_unicode_decode.patch

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



[issue24270] PEP 485 (math.isclose) implementation

2015-05-31 Thread Christopher Barker

Christopher Barker added the comment:

I wrote:
I will update the PEP to indicate that it is float-only, or complex for the 
cmath implementation (thanks, Tal!).

Done:

https://github.com/PythonCHB/close_pep/blob/master/pep-0485.txt

Hopefully pushed to the official PEP repo soon.

--

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



[issue24338] In argparse adding wrong arguments makes malformed namespace

2015-05-31 Thread Matthias Bussonnier

Matthias Bussonnier added the comment:

Minimal changes to the repr seem to work.
I can submit a proper patch.

class N2(Namespace):

def __repr__(self):
type_name = type(self).__name__
arg_strings = []
unarg={}
for arg in self._get_args():
arg_strings.append(repr(arg))
for name, value in self._get_kwargs():
if name.isidentifier():
arg_strings.append('%s=%r' % (name, value))
else:
unarg[name] = value
if unarg:
r_unarg = ', **%s' %(repr(unarg))
else:
r_unarg = ''
return '%s(%s%s)' % (type_name, ', '.join(arg_strings), r_unarg)

 N2(a=1, b=2, **{single ' quote :', 'double  quote':''})
N = N2(a=1, b=2, **{single ' quote :', 'double  quote':''})

--

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Martin Panter

Martin Panter added the comment:

Here is a patch with just the test case for 2.7, although I don’t have a strong 
opinion on whether it needs to be added or not.

--
Added file: http://bugs.python.org/file39577/context-kw-2.7.patch

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



[issue19543] Add -3 warnings for codec convenience method changes

2015-05-31 Thread Nick Coghlan

Nick Coghlan added the comment:

The last two commit notifications were intended for issue #24270.

--

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



[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-31 Thread Raymond Hettinger

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


--
resolution:  - not a bug
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24323
___
___
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-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a0a699b828e7 by Yury Selivanov in branch '3.5':
Issue 24017: Add a test for CoroWrapper and 'async def' coroutines
https://hg.python.org/cpython/rev/a0a699b828e7

New changeset 89521ac669f0 by Yury Selivanov in branch 'default':
Issue 24017: Add a test for CoroWrapper and 'async def' coroutines
https://hg.python.org/cpython/rev/89521ac669f0

--

___
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



[issue24342] coroutine wrapper recursion

2015-05-31 Thread Yury Selivanov

New submission from Yury Selivanov:

Consider following piece of code:

async def foo():
return 'spam'

def wrapper(coro):
async def wrap(coro):
print('before')
try:
return await coro
finally:
print('after')
return wrap(coro)

import sys
sys.set_coroutine_wrapper(wrapper)
print(foo().send(None))


Current python will crash with a RuntimeError: maximum recursion depth 
exceeded, because  wrap is itself a coroutine, so ceval will call wrapper 
recursively.

There are three options here:

1. Leave things as is;

2. Add a flag in tstate that coroutine_wrapper is executing, and raise a 
RuntimeError if it's reentering;

3. Add a flag in tstate (see 2) and skip wrapping when reentering (i.e. return 
what was passed to the wrapper).

The attached patch implements (2).  It also makes PyEval*CoroWrapper methods 
private.

I, myself, vote for option 2.

--
assignee: yselivanov
components: Interpreter Core
files: coro_wrapper.patch
keywords: patch
messages: 244569
nosy: gvanrossum, haypo, ncoghlan, yselivanov
priority: normal
severity: normal
status: open
title: coroutine wrapper recursion
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39578/coro_wrapper.patch

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



[issue24342] coroutine wrapper reentrancy

2015-05-31 Thread Yury Selivanov

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


--
stage:  - patch review
title: coroutine wrapper recursion - coroutine wrapper reentrancy
type:  - behavior

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



[issue24338] In argparse adding wrong arguments makes malformed namespace

2015-05-31 Thread Matthias Bussonnier

Matthias Bussonnier added the comment:

Maybe the __repr__ of _AttributeHolder should be changed so that invalid args 
are shown as unpacked dict in the signature ?

Something that would :

 argparse.Namespace(**{'foo bar':1})
argparse.Namespace(**{'foo bar':1})

--
nosy: +mbussonn

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



[issue24293] Windows installer unreadable with std/custom themes

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c7210097ac90 by Steve Dower in branch '3.5':
Issue #24293: Adds mapping from explicit colours to system colours to correctly 
handle user themes.
https://hg.python.org/cpython/rev/c7210097ac90

--

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



[issue24317] Change installer Customize default to match quick settings

2015-05-31 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
resolution:  - fixed
stage:  - resolved

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24317
___
___
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-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0708aabefb55 by Yury Selivanov in branch '3.4':
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
https://hg.python.org/cpython/rev/0708aabefb55

New changeset 1dc232783012 by Yury Selivanov in branch '3.5':
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
https://hg.python.org/cpython/rev/1dc232783012

New changeset 2e7c45560c38 by Yury Selivanov in branch 'default':
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
https://hg.python.org/cpython/rev/2e7c45560c38

--

___
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



[issue24338] In argparse adding wrong arguments makes malformed namespace

2015-05-31 Thread py.user

py.user added the comment:

Serhiy Storchaka wrote:
 for example the use of such popular options as -0 or -@

Ok.

What about inconsistent conversion dashes to underscores?

 import argparse
 
 parser = argparse.ArgumentParser(prefix_chars='@')
 _ = parser.add_argument('--x-one-two-three@')
 _ = parser.add_argument('@@y-one-two-three@')
 args = parser.parse_args(['abc'])
 args
Namespace(--x-one-two-three@='abc', y_one_two_three@=None)


We set dash as non-option char, but it continues to convert to underscore while 
another option char doesn't convert.

--
status: pending - open

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



[issue24317] Change installer Customize default to match quick settings

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5bc396eb4e56 by Steve Dower in branch '3.5':
Issue #24317: Makes Customize page default to installing per-user, and 
switching to All Users enable CompileAll.
https://hg.python.org/cpython/rev/5bc396eb4e56

--
nosy: +python-dev

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



[issue24293] Windows installer unreadable with std/custom themes

2015-05-31 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


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

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



[issue24317] Change installer Customize default to match quick settings

2015-05-31 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
status: open - closed

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



[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid - process mapping.

2015-05-31 Thread Yury Selivanov

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


--
nosy: +jnoller

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



[issue24293] Windows installer unreadable with std/custom themes

2015-05-31 Thread Steve Dower

Steve Dower added the comment:

Reopening this because the lack of a background colour means that the progress 
text accumulates while installed. I'll get to this sooner or later, but b2 is 
probably going to have this issue.

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

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



[issue24340] co_stacksize estimate can be highly off

2015-05-31 Thread Yury Selivanov

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


--
nosy: +yselivanov

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



[issue24284] Inconsistency in startswith/endswith

2015-05-31 Thread Serhiy Storchaka

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


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

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



[issue24284] Inconsistency in startswith/endswith

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a82498f424fe by Serhiy Storchaka in branch '3.5':
Issue #24284: The startswith and endswith methods of the str class no longer
https://hg.python.org/cpython/rev/a82498f424fe

New changeset 04162e06323f by Serhiy Storchaka in branch 'default':
Issue #24284: The startswith and endswith methods of the str class no longer
https://hg.python.org/cpython/rev/04162e06323f

--
nosy: +python-dev

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



[issue24335] Provide __list__(self) along the lines of __str__(self)

2015-05-31 Thread Rohith PR

New submission from Rohith PR:

It would be cleaner to do list(obj) than obj.to_list() (Eg: in numpy).

PS: this is the first time that I'm contributing to python. If this feature 
request is accepted can I work on it myself?

--
messages: 244522
nosy: Rohith.PR
priority: normal
severity: normal
status: open
title: Provide __list__(self) along the lines of __str__(self)
type: enhancement
versions: Python 3.6

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



[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2015-05-31 Thread Berker Peksag

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


--
nosy: +berker.peksag

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Ethan Furman

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


--
nosy: +ethan.furman

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



[issue24264] imageop Unsafe Arithmetic

2015-05-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your report John.

--
assignee:  - serhiy.storchaka
resolution:  - fixed
stage:  - resolved
status: open - closed

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




[issue24264] imageop Unsafe Arithmetic

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset de0ccaaf2e64 by Serhiy Storchaka in branch '2.7':
Issue #24264: Fixed buffer overflow in the imageop module.
https://hg.python.org/cpython/rev/de0ccaaf2e64

--
nosy: +python-dev

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Martin Panter

New submission from Martin Panter:

This patch allows many context managers to accept keyword arguments called 
“func” and “self”. Current behaviour:

 with TestCase().subTest(func=blaua): pass
... 
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python3.4/contextlib.py, line 126, in helper
return _GeneratorContextManager(func, *args, **kwds)
TypeError: __init__() got multiple values for argument 'func'

--
files: context-kw.patch
keywords: patch
messages: 244523
nosy: vadmium
priority: normal
severity: normal
stage: patch review
status: open
title: Allow arbitrary keywords to @contextmanager functions
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39571/context-kw.patch

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



[issue24004] avoid explicit generator type check in asyncio

2015-05-31 Thread Martin Panter

Martin Panter added the comment:

Yury, your last change causes DeprecationWarning:

[ 38/398] test_asyncio
/media/disk/home/proj/python/cpython/Lib/test/test_asyncio/test_pep492.py:119: 
DeprecationWarning: Please use assertEqual instead.
  self.assertEquals(coro.send(None), 'spam')

--
nosy: +vadmium

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



[issue24335] Provide __list__(self) along the lines of __str__(self)

2015-05-31 Thread Ethan Furman

Ethan Furman added the comment:

If somebody wants their class to support being turned into a list, the obvious 
answer is to have that class support iteration, and there are already three 
ways to do that:

  - supply an __iter__ that returns a separate iterator

  - supply an __iter__/__next__ that makes instances of the class be their own 
iterators

  - supply a __getitem__ that works with ints (0, 1, 2, ...) to return the 
values.

If numpy objects do not already support any of those three methods it probably 
means there isn't just one way to want to iterate through them, but you'll have 
to take that up with the numpy folks.

In the future you should discuss enhancement ideas on the Python Ideas list 
first.

Your contributions are welcome, but you'll need to sign the Contributors 
License Agreement first (found at 
https://www.python.org/psf/contrib/contrib-form/).

If I have misunderstood what you intended, please provide more context and an 
example.

--
nosy: +ethan.furman
resolution:  - rejected
stage:  - resolved
status: open - closed

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Martin Panter

Martin Panter added the comment:

Sorry here’s a better version that adapts some monkey-patching in the test 
suite (test_with).

--
Added file: http://bugs.python.org/file39572/context-kw.v2.patch

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



[issue24284] Inconsistency in startswith/endswith

2015-05-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Martin.

--
assignee:  - serhiy.storchaka
versions: +Python 3.6

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



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6ee122fac1e8 by Serhiy Storchaka in branch '2.7':
Fixed the array module in unicode disabled build (regression of issue20014).
https://hg.python.org/cpython/rev/6ee122fac1e8

--

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Serhiy Storchaka

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


--
components: +Library (Lib)
nosy: +serhiy.storchaka

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Martin Panter

Martin Panter added the comment:

But maybe it wouldn’t hurt adding the test case in test_contextlib to Python 2.

--
versions: +Python 2.7

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



[issue16991] Add OrderedDict written in C

2015-05-31 Thread Stefan Krah

Stefan Krah added the comment:

Opening again. I have too many questions. :)

--
nosy: +skrah
status: pending - open

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Raymond Hettinger

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


--
assignee:  - ncoghlan
nosy: +ncoghlan

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



[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-31 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

The changed test passes on 3.4 branch, but fails on 2.7 branch:

$ python2.7 -m test.test_audioop
test_add (__main__.TestAudioop) ... ok
test_adpcm2lin (__main__.TestAudioop) ... ok
test_alaw2lin (__main__.TestAudioop) ... ok
test_avg (__main__.TestAudioop) ... ok
test_avgpp (__main__.TestAudioop) ... ok
test_bias (__main__.TestAudioop) ... ok
test_cross (__main__.TestAudioop) ... ok
test_findfactor (__main__.TestAudioop) ... ok
test_findfit (__main__.TestAudioop) ... ok
test_findmax (__main__.TestAudioop) ... ok
test_getsample (__main__.TestAudioop) ... ok
test_issue7673 (__main__.TestAudioop) ... ok
test_lin2adpcm (__main__.TestAudioop) ... ok
test_lin2alaw (__main__.TestAudioop) ... ok
test_lin2lin (__main__.TestAudioop) ... ok
test_lin2ulaw (__main__.TestAudioop) ... ok
test_max (__main__.TestAudioop) ... ok
test_maxpp (__main__.TestAudioop) ... ok
test_minmax (__main__.TestAudioop) ... ok
test_mul (__main__.TestAudioop) ... ok
test_negativelen (__main__.TestAudioop) ... ok
test_ratecv (__main__.TestAudioop) ... ERROR
test_reverse (__main__.TestAudioop) ... ok
test_rms (__main__.TestAudioop) ... ok
test_tomono (__main__.TestAudioop) ... ok
test_tostereo (__main__.TestAudioop) ... ok
test_ulaw2lin (__main__.TestAudioop) ... ok
test_wrongsize (__main__.TestAudioop) ... ok

==
ERROR: test_ratecv (__main__.TestAudioop)
--
Traceback (most recent call last):
  File /usr/lib64/python2.7/test/test_audioop.py, line 304, in test_ratecv
3: packs[3](0, 0x0da740, 0x36, -0x262fca,
KeyError: 3

--
Ran 28 tests in 0.009s

FAILED (errors=1)
Traceback (most recent call last):
  File /usr/lib64/python2.7/runpy.py, line 162, in _run_module_as_main
__main__, fname, loader, pkg_name)
  File /usr/lib64/python2.7/runpy.py, line 72, in _run_code
exec code in run_globals
  File /usr/lib64/python2.7/test/test_audioop.py, line 410, in module
test_main()
  File /usr/lib64/python2.7/test/test_audioop.py, line 407, in test_main
run_unittest(TestAudioop)
  File /usr/lib64/python2.7/test/test_support.py, line 1400, in run_unittest
_run_suite(suite)
  File /usr/lib64/python2.7/test/test_support.py, line 1383, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File /usr/lib64/python2.7/test/test_audioop.py, line 304, in test_ratecv
3: packs[3](0, 0x0da740, 0x36, -0x262fca,
KeyError: 3

--
nosy: +Arfrever
resolution: fixed - 
stage: resolved - 
status: closed - open

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



[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Arfrever.

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

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



[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2015-05-31 Thread Ram Rachum

Changes by Ram Rachum r...@rachum.com:


--
components: Library (Lib)
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Implement `http.client.HTTPMessage.__repr__` to make debugging easier
type: enhancement
versions: Python 3.5

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Martin Panter

Martin Panter added the comment:

New version with simpler test; thanks Serhiy.

Looking closer at the history, this actually seems to be a regression caused by 
revision e4ba097123f6 (Issue 11647). Python 2 is not affected.

--
Added file: http://bugs.python.org/file39574/context-kw.v3.patch

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



[issue24338] In argparse adding wrong arguments makes malformed namespace

2015-05-31 Thread py.user

New submission from py.user:

 import argparse
 
 parser = argparse.ArgumentParser()
 _ = parser.add_argument('foo bar')
 _ = parser.add_argument('--x --y')
 args = parser.parse_args(['abc'])
 
 args
Namespace(foo bar='abc', x __y=None)
 
 'foo bar' in dir(args)
True
 'x __y' in dir(args)
True


Passing wrong arguments silently makes a namespace which attributes are not 
accessible.

ISTM, add_argument() should raise a ValueError exception.

--
components: Library (Lib)
messages: 244534
nosy: py.user
priority: normal
severity: normal
status: open
title: In argparse adding wrong arguments makes malformed namespace
type: behavior
versions: Python 3.4, Python 3.5

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



[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2015-05-31 Thread Martin Panter

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


--
stage:  - patch review

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



[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2015-05-31 Thread Martin Panter

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


--
dependencies: +CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed
stage: needs patch - patch review

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



[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2015-05-31 Thread Martin Panter

New submission from Martin Panter:

HTTPMessage essentially has exactly the same functionality as 
email.message.Message. It has been suggested to replace it with an alias to the 
Message class; see Issue 5053. So perhaps it would be best to add __repr__() to 
the underlying Message class instead?

What information do you think should be included? The whole tostring() value? 
Specific header fields, such as Content-Type?

--
components: +email
nosy: +barry, r.david.murray, vadmium

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



[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7d6a6028b104 by Serhiy Storchaka in branch '2.7':
Fixed test_audioop for issue #24326.
https://hg.python.org/cpython/rev/7d6a6028b104

--

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



[issue23684] urlparse() documentation does not account for default scheme

2015-05-31 Thread Martin Panter

Martin Panter added the comment:

Here is a patch changing the table entries to “*scheme* argument”. Hopefully 
this is fairly obvious and doesn’t sound like it defaults to itself.

I also made the descriptions of “scheme” and “allow_fragments” more specific, 
and added some unit tests, because there didn’t seem to be any exercising them.

--
components: +Tests
keywords: +patch
stage:  - patch review
type:  - behavior
versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39573/urlparse-scheme.patch

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



[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2015-05-31 Thread Ram Rachum

Ram Rachum added the comment:

Regarding a unified `__repr__`: Sounds good. What I needed is to know whether 
there are any headers in there or not. So the number of headers, or the first 
2-3, would have solved my problem.

--

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



[issue24339] iso6937 encoding missing

2015-05-31 Thread John Helour

New submission from John Helour:

Please add encoding for the iso6937 charset. Many settopboxes (DVB-T/S) and 
relevant devices uses it for displaying EPG, videotext, etc.

I've wrote (please look at the attached file) the encoding/decoding conversion 
codec some years ago.

--
components: Library (Lib)
files: iso6937.py
messages: 244538
nosy: John Helour
priority: normal
severity: normal
status: open
title: iso6937 encoding missing
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file39575/iso6937.py

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Nick Coghlan

Nick Coghlan added the comment:

The v3 patch looks good to me, and indeed it's a regression I introduced back 
in 3.2.

I don't see much value in adding the test to the 2.7 test suite (with 
contextlib2 just a pip install away, it's very unlikely the standard library 
version will see any significant updates)

--
stage: patch review - commit review

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



[issue24339] iso6937 encoding missing

2015-05-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

New encoding can be added only in new Python release (3.6).

--
nosy: +lemburg, loewis, serhiy.storchaka
versions: +Python 3.6 -Python 2.7

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-05-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM. The patch isn't applied cleanly to 2.7. If you Martin will provide the 
patch with tests for 2.7, I don't see why not apply it.

--

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



[issue24338] In argparse adding wrong arguments makes malformed namespace

2015-05-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

They are accessible.

 getattr(args, 'foo bar')
'abc'

The limitation that argument names should be Python identifiers is too strong 
and adding it will break existing code (for example the use of such popular 
options as -0 or -@).

--
nosy: +serhiy.storchaka
resolution:  - rejected
status: open - pending

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