[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Mark Dickinson added the comment:

How about simply 'inverse hyperbolic cosine', etc.  I think that's more likely 
to be immediately obvious to readers.

--

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Mark Dickinson added the comment:

and the 'radians' bit is obviously nonsense.

--

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



[issue14174] argparse.REMAINDER fails to parse remainder correctly

2014-07-02 Thread paul j3

paul j3 added the comment:

Here's a possible solution to the problem (assuming there really is one):

- redefine REMAINDER so it matches a '((?:A[AO]*)?)' pattern (where O is a 
string that looks like an optional flag, A an argument string).  I've added the 
condition that the first match (if any) must be an A.  It ends up being closer 
to the pattern for PARSER.

I included a patch from issue 15112, which delays the consumption of a 
positional that matches with 0 strings.

In the sample case for this issue, results with this patch are:

args = parser.parse_args(['app', '--config', 'bar'])
# Namespace(app='app', app_args=[], config='bar')

args = parser.parse_args(['--config', 'bar', 'app'])
# Namespace(app='app', app_args=[], config='bar')

args = parser.parse_args(['app', 'args', '--config', 'bar'])
# Namespace(app='app', app_args=['args', '--config', 'bar'], config=None)

In the last case, 'app_args' gets the rest of the strings because the first is 
a plain 'args'.  I believe this is consistent with the intuition expressed in 
this issue.

I've added one test case to test_argparse.TestNargsRemainder.  This is a 
TestCase that is similar to the above example.

argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')]
failures = ['', '-z', '-z Z']
successes = [
('X', NS(x='X', y=[], z=None)),
('-z Z X', NS(x='X', y=[], z='Z')),
('X A B -z Z', NS(x='X', y=['A', 'B', '-z', 'Z'], z=None)),
('X Y --foo', NS(x='X', y=['Y', '--foo'], z=None)),
('X -z Z A B', NS(x='X', y=['A', 'B'], z='Z')), # new case
]

This patch runs test_argparse fine.  But there is a slight possibility that 
this patch will cause backward compatibility problems.  Some user might expect 
y=['-z','Z',...].  But that expectation has not been enshrined the 
test_argparse.

It may require a slight change to the documentation as well.

--
keywords: +patch
Added file: http://bugs.python.org/file35824/issue14174_1.patch

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



[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-02 Thread Charles-François Natali

Charles-François Natali added the comment:

There's probably a special mechanism due to vserver which makes the
kernel kill the process instead of failing with EPERM, but it's really
surprising.

What happens if you try the following:
$ python -c from resource import *; _, hard =
getrlimit(RLIMIT_NOFILE); setrlimit(RLIMIT_NOFILE, (hard, hard))

You could run the process under strace to see what's going on: you'll
likely just see the reception of a signal though. Maybe dmesg would
show interesting logs.

--

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Kevin Davies

Kevin Davies added the comment:

Unfortunately I'm not currently set up with Mercurial and I'm not sure 
that it makes sense to get that going just for this.

On 07/01/2014 06:47 PM, Ezio Melotti wrote:
 Ezio Melotti added the comment:

 Do you want to propose a patch?
 https://docs.python.org/3/library/math.html#hyperbolic-functions should be 
 updated as well.

 --
 assignee:  - docs@python
 components: +Documentation
 keywords: +easy
 nosy: +docs@python, ezio.melotti, mark.dickinson, rhettinger, stutzbach
 stage:  - needs patch
 type:  - enhancement
 versions: +Python 2.7, Python 3.4, Python 3.5

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


--

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Mark Dickinson added the comment:

Here's a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file35825/acosh_docstring.patch

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Mark Dickinson added the comment:

Ezio:

 https://docs.python.org/3/library/math.html#hyperbolic-functions should be 
 updated as well.

It looks fine to me.  What do you think should be changed?

--

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Kevin Davies

Kevin Davies added the comment:

Yes, 'inverse' is probably more obvious to understand than 'area', 
although it doesn't tie into the 'a' of 'acosh', etc.

On 07/01/2014 08:24 PM, Mark Dickinson wrote:
 Mark Dickinson added the comment:

 How about simply 'inverse hyperbolic cosine', etc.  I think that's more 
 likely to be immediately obvious to readers.

 --

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


--

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
assignee: docs@python - mark.dickinson

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



[issue8585] zipimporter.find_module is untested

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

I've just reworked Berker's patch as it no longer applied.  On Windows 7 before 
and after applying the patch both test runs gave me 49 tests, 2 skipped.  Can 
we have a commit review please.

--
nosy: +BreamoreBoy
Added file: http://bugs.python.org/file35826/Issue8585.patch

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



[issue16474] More code coverage for imp module

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

Is it worth applying the patch as the imp module is deprecated since version 
3.4?

--
nosy: +BreamoreBoy

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Mark Dickinson added the comment:

Kevin: does the attached patch look okay to you?

--

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Mark Dickinson added the comment:

Updated patch, fixing an accidental double space in the previous one.

--
Added file: http://bugs.python.org/file35827/acosh_docstring_v2.patch

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



[issue16611] Cookie.py does not parse httponly or secure cookie flags

2014-07-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0ba6ebd90b9d by Berker Peksag in branch '2.7':
Issue #19870: BaseCookie now parses 'secure' and 'httponly' flags.
http://hg.python.org/cpython/rev/0ba6ebd90b9d

--

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



[issue19870] Backport Cookie fix to 2.7 (httponly / secure flag)

2014-07-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0ba6ebd90b9d by Berker Peksag in branch '2.7':
Issue #19870: BaseCookie now parses 'secure' and 'httponly' flags.
http://hg.python.org/cpython/rev/0ba6ebd90b9d

--
nosy: +python-dev

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



[issue19870] Backport Cookie fix to 2.7 (httponly / secure flag)

2014-07-02 Thread Berker Peksag

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


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

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
stage: needs patch - patch review
type: enhancement - behavior

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



[issue12600] Add example of using load_tests to parameterise Test Cases

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

Any volunteers to do this?  I'd do it myself but by the time somebody explains 
the detail, it'd probably be easier just to write a patch.  

@Robert just FTR do you know the issue number for the use of __str__ by the 
stdlib [which isn't easily overridable - there is a separate issue on that] 
which you mention in msg177328?

--
nosy: +BreamoreBoy

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



[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-02 Thread Tymoteusz Paul

Changes by Tymoteusz Paul puc...@gmail.com:


--
versions: +Python 3.2

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



[issue12876] Make Test Error : ImportError: No module named _sha256

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

Are we still interested in a 2.7.1 build issue?  Note that regrtest is aimed at 
core developers only.

--
components: +Build -Tests
nosy: +BreamoreBoy

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



[issue12876] Make Test Error : ImportError: No module named _sha256

2014-07-02 Thread Encolpe DEGOUTE

Changes by Encolpe DEGOUTE encolpe.dego...@free.fr:


--
nosy:  -encolpe

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



[issue8585] zipimporter.find_module is untested

2014-07-02 Thread Claudiu Popa

Changes by Claudiu Popa pcmantic...@gmail.com:


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

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



[issue21903] ctypes documentation MessageBoxA example produces error

2014-07-02 Thread Dan O'Donovan

New submission from Dan O'Donovan:

There is an example in the ctypes python3 documentation for producing a native 
Windows MessageBoxA 

https://docs.python.org/3.3/library/ctypes.html#ctypes.PYFUNCTYPE

Try as I might, I cannot get this example to run under python 3 (it is in the 
python3 documentation) - it always produces an error

Traceback (most recent call last):
  File stdin, line 1, in module
ctypes.ArgumentError: argument 2: class 'TypeError': wrong type

I apologise for not attaching a fix, I have tried and cannot find one.

--
assignee: docs@python
components: Documentation
messages: 222088
nosy: Dan.O'Donovan, docs@python
priority: normal
severity: normal
status: open
title: ctypes documentation MessageBoxA example produces error
type: behavior
versions: Python 3.3, Python 3.4

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



[issue21903] ctypes documentation MessageBoxA example produces error

2014-07-02 Thread Dan O'Donovan

Dan O'Donovan added the comment:

Additional note, this code snippet does work in python 2. There is a note that 
all snippets are tested with 'doctest' so I have added the 'tests' tag to this 
ticket.

--
components: +Tests

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Ezio Melotti

Ezio Melotti added the comment:

 https://docs.python.org/3/library/math.html#hyperbolic-functions should be 
 updated as well.

 It looks fine to me.  What do you think should be changed?

I just meant to say that the docs and the docstrings should be kept in sync 
(especially if they are short like in this case).  If the definition in the 
docs is better it could be used for the docstrings; if something gets improved 
in the docstring that is not already in the docs it should be added to the docs 
as well.  If either one is fine there's no need to update it.

--

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



[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-02 Thread Kevin Davies

Kevin Davies added the comment:

Mark: The patch looks good.  Thanks!

--

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



[issue16474] More code coverage for imp module

2014-07-02 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Well, I've closed it as out-of-date.

--
resolution:  - out of date
stage:  - resolved

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



[issue12600] Add example of using load_tests to parameterise Test Cases

2014-07-02 Thread Jean-Paul Calderone

Changes by Jean-Paul Calderone jean-p...@hybridcluster.com:


--
nosy:  -exarkun

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



[issue21903] ctypes documentation MessageBoxA example produces error

2014-07-02 Thread Dan O'Donovan

Dan O'Donovan added the comment:

Ok, this fail is happening because we're using python3 unicode strings to call 
the ANSI MessageBoxA function. A possible fix;

Encode strings before passing the MessageBoxA (ctypes.txt.diff attached)

Alternatively, calls could be made to the unicode MessageBoxW function, but 
someone who knows about ctypes / Win32 magic numbers would have to look at that.

(Inspiration take from this stack overflow question 
http://stackoverflow.com/questions/18164994/the-ctypes-wraps-messageboxa-example-didnt-work-in-python33)

--
keywords: +patch
Added file: http://bugs.python.org/file35828/ctypes.txt.diff

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



[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-07-02 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

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



[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden

New submission from Steve Holden:

When repeated use of a nonlocal variable is made (e.g. to define multiple 
functions in a loop) ideally the closure should reflect the value of the local 
variable at the time of use. This should at least be explicitly documented if 
the behavior is considered not to be a bug.

The code sample attached shows that the closures produced operate differently 
inside and outside the enclosing function.

Without an explicit nonlocal declaration the closure should not be able to 
affect the nonlocal variable's value (which anyway hardly makes sense once the 
enclosing namespace has been destroyed), so I think it's possible to argue that 
this behavior is a bug, but I'd value comments from experienced developers.

--
files: bugreport.py
keywords: needs review
messages: 222094
nosy: holdenweb
priority: normal
severity: normal
status: open
title: Multiple closures accessing the same non-local variable always see the 
same value
type: behavior
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file35829/bugreport.py

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



[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread R. David Murray

R. David Murray added the comment:

Yeah, closures can be a bit counter-intuitive.  Assuming *I'm* understanding 
this correctly, the closure captures a pointer to the local variable, not the 
value of the local variable, and thus keeps it alive.  (That is, the namespace 
is not destroyed until all closures referencing it have gone away.)

https://docs.python.org/3/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result

--
nosy: +r.david.murray
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue1425127] os.remove OSError: [Errno 13] Permission denied

2014-07-02 Thread Joram Agten

Joram Agten added the comment:

I think this c win32 issue describes a similar problem
http://stackoverflow.com/questions/3764072/c-win32-how-to-wait-for-a-pending-delete-to-complete

--

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



[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden

Steve Holden added the comment:

Indeed the issue is that the pointer is to the local variable rather than its 
value at time of closure defnition. Not being familiar with the way cells are 
used, I am unsure as to how the closure keeps the whole namespace alive (that 
would seem to require a frame rather than just a simple cell).

--

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



[issue15722] PEP 3121, 384 Refactoring applied to decimal module

2014-07-02 Thread Stefan Krah

Stefan Krah added the comment:

In order to avoid the significant slowdown:  Could we create a new
kind of method (METH_STATE) and change ceval to pass a state struct
that contains the thread and the module state as the first parameter
if the METH_STATE flag is present?

--

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



[issue21905] RuntimeError in pickle.whichmodule when sys.modules if mutated

2014-07-02 Thread Olivier Grisel

New submission from Olivier Grisel:

`pickle.whichmodule` performs an iteration over `sys.modules` and tries to 
perform `getattr` calls on those modules. Unfortunately some modules such as 
those from the `six.moves` dynamic module can trigger imports when calling 
`getattr` on them, hence mutating the `sys.modules` dict and causing a 
`RuntimeError: dictionary changed size during iteration`.

This would also render `pickle.whichmodule` more thread-safe and cause 
concurrent thread perform new module imports and `whichmodule` calls.

The attach patch protect the iterator by copying the dict items into a fixed 
list.

I could write a tests involving dynamic module definitions as done in 
`six.moves` but it sounds very complicated for such a trivial fix.

--
components: Library (Lib)
files: pickle_whichmodule.patch
keywords: patch
messages: 222099
nosy: Olivier.Grisel
priority: normal
severity: normal
status: open
title: RuntimeError in pickle.whichmodule  when sys.modules if mutated
type: crash
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35830/pickle_whichmodule.patch

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



[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread R. David Murray

R. David Murray added the comment:

I forgot that cells were independent objects.  You are probably right about it 
just keeping the cell alive, but I never did finish looking through how that 
code worked when I did look at it.

--

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



[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-02 Thread Andy Maier

Andy Maier added the comment:

That is indeed true; i just verified that by creating a new clone repository. 
Sorry for the extra work.

When I created the bug yesterday, I had my repository clone updated to 2.7 
and the .hgignore definitely did not have the entries. I even saw all the 
downloaded doc tools in the status window of my hg client (which is what caused 
me to attempt to fix this in the first place).

I did do a commit to my local repository clone but did not push that (I would 
not have the rights anyway).

If anyone has an explanation on whyt I saw, I'd be grateful.

Andy

--

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



[issue16599] unittest: Access test result from tearDown

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

The solution suggested in msg176909 seems accepted all around so can we please 
close this.

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4

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



[issue16784] Int tests enhancement and refactoring

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

is there anything left to do here?

--
nosy: +BreamoreBoy

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



[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-02 Thread R. David Murray

R. David Murray added the comment:

Are you sure your checkout was updated to 2.7?  If you had checked out 2.7, 
built the docs, then checked out 3.4 and done an hg status, you would see the 
Doc files as untracked.  If you were really checked out to 2.7 you shouldn't 
have.  I doubt there's any way to figure out what went wrong unless you can 
reproduce it.  Regardless, though, you are having a Mercurial issue here, not a 
Python one :)

--

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



[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

Presumably the changes made in the default branch referred to in msg179037 will 
have automatically been carried forward to 3.4 and 3.5.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden

Steve Holden added the comment:

I believe (though my belief is untrammeled by anything as useful as knowledge 
of the code: my diagnostic skills are largely psychic) that the cell 
essentially takes over the reference from the local namespace of the 
about-to-terminate lexically surrounding function.

This would appear to be a logical time to create closure cells, as there is 
effectively no need to create them for functions that will be destroyed. So I 
imagine any remaining function objects accessible from the return expression 
will be fixed up at that point. This has the rather unpleasant side effect of 
capturing the value on surrounding function return rather than closure function 
creation.

The behavior exhibited, in my opinion, shows that there would be strong 
advantages to creating the closures dynamically, even though I can understand 
that pathological cases might require much work. It might have to be 
benchmarked before a decision, I suppose. I couldn't say off-hand how many 
people are dynamically trying to create multiple closures from a single 
namespace. It seems to me that the principle of least surprise would suggest a 
change be adopted, but I may be the only one who's surprised.

I have documented this issue in more detail on my blog at

  http://holdenweb.blogspot.co.uk/2014/07/closures-arent-easy.html

and will report back if anything of substance emerges. Otherwise I'll just 
leave this closed. Thanks for your comment and consideration.

--

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



[issue16968] Fix test discovery for test_concurrent_futures.py

2014-07-02 Thread Zachary Ware

Zachary Ware added the comment:

Since then, Senthil Kumaran converted test_urllib2_localnet (and another urllib 
test or two) to unittest.main, using this:


threads_key = None

def setUpModule():
# Store the threading_setup in a key and ensure that it is cleaned up
# in the tearDown
global threads_key
threads_key = support.threading_setup()

def tearDownModule():
if threads_key:
support.threading_cleanup(threads_key)

if __name__ == __main__:
unittest.main()


Since nobody has said anything against that in the two months since it was 
done, that's what I was going to go with when I got back to this; 
support.reap_children() can just be called in tearDownModule.  If you'd like to 
provide a patch, Mark, please do so!

--
versions: +Python 3.5 -Python 3.3

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



[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread R. David Murray

R. David Murray added the comment:

This is a specific instance of the general principle that a python variable is 
a 'named' location that holds a pointer to an arbitrary python object.  The 
'name' in this case is the variable name that appears in multiple scopes (which 
is what triggers the creation of the cell object...I have no idea at what point 
in the process it is created).  To create a *new* cell object at closure 
creation time (which is essentially what you are advocating if I understand 
correctly) would, I think, change the semantics of Python's scoping rules.  It 
would mean that the behavior would be different depending on whether or not 
'nonlocal' was specified...if it is nonlocal, the behavior *has* to be the 
current behavior.

--

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



[issue12876] Make Test Error : ImportError: No module named _sha256

2014-07-02 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
resolution:  - out of date
status: open - closed

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



[issue16474] More code coverage for imp module

2014-07-02 Thread Berker Peksag

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


--
status: open - closed

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



[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.4.1 on Windows 7 64bit.

2014-07-02 Thread Torrin

New submission from Torrin:

md5sum.py uses at least 1 undefined object in Python 3.4.1.  I only tried this 
on Windows.  I have no idea if it is a problem on any other OS.


C:\C:\Python27\python.exe --version
Python 2.7.6

C:\C:\Python34\python.exe --version
Python 3.4.1

C:\C:\Python34\python.exe C:\Python34\Tools\Scripts\md5sum.py 
C:\Python34\python.exe
Traceback (most recent call last):
  File C:\Python34\Tools\Scripts\md5sum.py, line 90, in module
sys.exit(main(sys.argv[1:], sys.stdout))
  File C:\Python34\Tools\Scripts\md5sum.py, line 87, in main
return sum(args, out)
  File C:\Python34\Tools\Scripts\md5sum.py, line 27, in sum
if files and isinstance(files[-1], file):
NameError: name 'file' is not defined

Here is why . . .

C:\C:\Python27\python.exe -c print(file)
type 'file'

C:\C:\Python34\python.exe -c print(file)
Traceback (most recent call last):
  File string, line 1, in module
NameError: name 'file' is not defined

So file is defined in 2.7.6 but not in 3.4.1.

--
components: Demos and Tools
messages: 222109
nosy: torrin
priority: normal
severity: normal
status: open
title: Tools\Scripts\md5sum.py doesn't work in Python 3.4.1 on Windows 7 64bit.
versions: Python 3.4

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



[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-02 Thread SilentGhost

SilentGhost added the comment:

I guess it's only the evidence that it isn't being used.

--
nosy: +SilentGhost
title: Tools\Scripts\md5sum.py doesn't work in Python 3.4.1 on Windows 7 64bit. 
- Tools\Scripts\md5sum.py doesn't work in Python 3.x
versions: +Python 3.5

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



[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-02 Thread Andy Maier

Andy Maier added the comment:

 Regardless, though, you are having a Mercurial issue here, not a Python one :)

That seems to be the case ... I don't think I can reproduce it.

All fine then.
Thanks, David!

--

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



[issue14097] Improve the introduction page of the tutorial

2014-07-02 Thread Andy Maier

Andy Maier added the comment:

 Andy: in future, please use the 'review' link to post reviews,...

Will do ... I just now discovered the Start Review link (I'm new here, so 
thanks for telling me...)

Andy

--

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



[issue14097] Improve the introduction page of the tutorial

2014-07-02 Thread Zachary Ware

Zachary Ware added the comment:

You're both welcome :)

--

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



[issue21090] File read silently stops after EIO I/O error

2014-07-02 Thread Charles-François Natali

Charles-François Natali added the comment:

LGTM.

--

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



[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2014-07-02 Thread Brett Cannon

Brett Cannon added the comment:

I got overruled on the deprecation idea due to utility code like walk_packages 
that pkgutil contains.

--

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



[issue8585] zipimporter.find_module is untested

2014-07-02 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - berker.peksag

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



[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-02 Thread R. David Murray

R. David Murray added the comment:

Well, at least one person *tried* to use it :)

This is not a windows only problem, I can reproduce it on linux.  Obviously we 
don't have tests for this tool.

--
keywords: +easy
nosy: +r.david.murray

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



[issue21890] wsgiref.simple_server doesn't accept empty bytes before start_response is called

2014-07-02 Thread PJ Eby

PJ Eby added the comment:

Please see this paragraph of the spec (my emphasis added):

(Note: the application must invoke the start_response() callable **before the 
iterable yields its first body string**, so that the server can send the 
headers before any body content. However, this invocation may be performed by 
the iterable's first iteration, so servers must not assume that 
start_response() has been called before they begin iterating over the iterable.)

The paragraph you quoted says that start_response() has to buffer headers until 
a non-empty string is yielded.  It does *not* say that strings can be yielded 
prior to calling start_response().  Indeed, the paragraph I quote above states 
the opposite: you can't call start_response() before yielding your first body 
string (whether empty or not).

This is a known issue with the spec, but it's an issue with the *spec*, not the 
implementation.  WSGI 1.0 is known to be unusable as a truly async API, for 
this and other reasons.

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

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



[issue21907] Update Windows build batch scripts

2014-07-02 Thread Zachary Ware

New submission from Zachary Ware:

I am aware of a few open issues with the build scripts provided for Windows 
(both the Tools/buildbot scripts and the .bat files provided in PCbuild), such 
as #9973 and #9822, and there are some other issues that bother me but that I 
haven't opened issues for.  Here's a patch which takes care of all of the 
issues I'm aware of, by almost completely rewriting most of the scripts.

An overview of the changes:

- Tools/buildbot/external*.bat are dead, replaced by PCbuild/get_externals.bat. 
 Since those scripts have been suggested for use by normal users by 
PCbuild/readme.txt and the devguide, stubs for Tools/buildbot/external.bat and 
external-amd64.bat still exist, which display a message suggesting 
PCbuild/get_externals.bat and then pass all arguments on to that script.

- PCbuild/get_externals.bat is a complete rewrite of 
Tools/buildbot/external-common.bat, and is written for users rather than 
buildbots.  It takes '-c/--clean' or '--clean-only' options, which will gently 
remove^W^W nuke from orbit all existing external library sources.

- PCbuild/build.bat has been updated to set up the environment itself, and to 
allow arguments to be passed to MSbuild, such as /m (though anything 
containing [ =,] (and possibly other characters) will require quotes to pass 
through properly, due to batch's wonderful argument handling abilities).  It 
has also grown an '-e' option, to pull in external libs using get_externals.bat.

- Tools/buildbot/build.bat has been updated to use PCbuild/build.bat, and 
Tool/buildbot/build-amd64.bat has been updated to use Tools/buildbot/build.bat.

- PCbuild/env.bat has been updated to allow for non-standard VS install 
locations, but really, it's obsolete with build.bat setting the environment 
itself.  I would prefer to eliminate PCbuild/build_env.bat and PCbuild/env.bat, 
but I don't know whether they're an integral part of other people's workflow 
and don't want to mess that up if they are.  There doesn't seem to be any harm 
from running the build with the environment set up twice.

- Tools/buildbot/clean.bat has been updated as I suggested in #9973, it has a 
set list of kill_python exes to try if they exist, then uses `hg purge` to 
clean *everything* out.  Tools/buildbot/clean-amd64.bat is now just a stub 
calling Tools/buildbot/clean.bat.

- Tools/buildbot/buildmsi.bat has a few updates, but I can't properly test them 
(having not yet managed to get an MSI built at all).  The script is currently 
unused anyway, as far as I know.

- Tools/buildbot/test[-amd64].bat have been updated to use 
Tools/scripts/run_tests.py, just like the UNIX buildbots.  run_tests.py has 
been updated to use subprocess.call instead of os.execv on Windows.

- All scripts have been made cwd-agnostic, by which I mean they should run the 
same way no matter where they are called from.  Also, every effort is made to 
not pollute the environment (even with VS setup).  They should also be a bit 
more robust against paths with spaces, but I make no guarantees about that.

- PCbuild/readme.txt has been updated to suggest PCbuild/get_externals.bat 
instead of Tools/buildbot/external*.bat, and has an added Quick Start Guide 
at the top.  A patch for the devguide will follow.

I think these changes make things simpler, with fewer places to update when 
options are changed, compilers upgraded, libraries updated, etc.  With this 
change, the simplest way to build on Windows becomes PCbuild\build.bat -e (or 
add -d for debug).  This is still not exactly what I want eventually (see 
#16895, which is now long out of date :), but is a solid step in that direction.

Most of these changes could be backported to 3.4, and at least a good portion 
of those to 2.7.  I'm not exactly sure how worth it that would be, though.

Thoughts?

--
assignee: zach.ware
components: Build, Windows
files: better_bats.diff
keywords: buildbot, patch
messages: 222118
nosy: loewis, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Update Windows build batch scripts
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35831/better_bats.diff

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



[issue21907] Update Windows build batch scripts

2014-07-02 Thread Zachary Ware

Zachary Ware added the comment:

Here's the devguide patch.

--
Added file: http://bugs.python.org/file35832/devguide_update.diff

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



[issue21908] Grammatical error in 3.4 tutorial

2014-07-02 Thread Jeremy Fusco

New submission from Jeremy Fusco:

https://docs.python.org/3/tutorial/controlflow.html

Sentence states 'most such' where either would suffice.

current: In most such cases, however, it is convenient to use the enumerate() 
function, see Looping Techniques

Proposed: In most cases

--
assignee: docs@python
components: Documentation
messages: 222120
nosy: Jeremy.Fusco, docs@python
priority: normal
severity: normal
status: open
title: Grammatical error in 3.4 tutorial
type: enhancement
versions: Python 3.4

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



[issue16473] quopri module minor difference in decoding quoted-printable text

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

I'll take this on if I can.  Is binascii available on all platforms, as if it 
is the quopri code could be simplified slightly along with the test code?

--
nosy: +BreamoreBoy
title: Minor difference in decoding quoted-printable text - quopri module 
minor difference in decoding quoted-printable text

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



[issue16473] quopri module minor difference in decoding quoted-printable text

2014-07-02 Thread R. David Murray

R. David Murray added the comment:

The first problem is determining the best error recovery algorithms by 
reading through the RFCs and considering use cases.

--

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



[issue21907] Update Windows build batch scripts

2014-07-02 Thread Steve Dower

Steve Dower added the comment:

Looks pretty good. I'm happy to see more move into PCBuild - ideally, people 
building a Python release should never have to look anywhere else.

buildmsi.bat can probably go away completely if the buildbots aren't using it. 
3.5 will eventually have a .wixproj to build the MSI and there'll be a 
buildrelease.bat or similar under tools/ to keep the single entry point.

As part of the VC14 change there'll be changes to the batch files, but as far 
as entry points go they'll still be there. I want to move most of the 
functionality into an MSBuild script (currently pcbuild.proj in my sandbox) 
since that is generally more flexible than cmd.exe, but until then this looks 
like a great improvement. Not quite the 'make' equivalent you have in #16895, 
but that will be easy to write when make (\w+) translates into msbuild 
pcbuild.proj /t:\1.

I don't see any value in backporting to 2.7. I've got my own scripts for that 
which make doing a release very straightforward, and I'm happy to keep it that 
way. That said, the easier we make it for people to build from source, the 
sooner we can stop doing binary releases for 2.7.

Consider me +0.5 on taking this change, but it's only less than +1 because I'm 
already working on the next major iteration and so *I* don't need them.

--

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



[issue21090] File read silently stops after EIO I/O error

2014-07-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 652b62213072 by Victor Stinner in branch '3.4':
Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
http://hg.python.org/cpython/rev/652b62213072

New changeset 440279cec378 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21090: io.FileIO.readall() does not ignore I/O errors
http://hg.python.org/cpython/rev/440279cec378

--
nosy: +python-dev

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



[issue21908] Grammatical error in 3.4 tutorial

2014-07-02 Thread R. David Murray

R. David Murray added the comment:

It is correct English as written.  If you said just 'most cases', it would be 
ambiguous (most cases of using...something not quite clear from context, it 
could be range, or looping, or...), whereas if you said 'such cases', that 
would be wrong, since not all cases where you could use range and an index are 
served by using enumerate.  'most such' correctly refers specifically to the 
preceding example, and qualifies it that not all such cases can use enumerate.  
(See what I did there? :)

--
nosy: +r.david.murray
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue21090] File read silently stops after EIO I/O error

2014-07-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1492a42b8308 by Victor Stinner in branch '2.7':
Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
http://hg.python.org/cpython/rev/1492a42b8308

--

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



[issue21908] Grammatical error in 3.4 tutorial

2014-07-02 Thread Jeremy Fusco

Jeremy Fusco added the comment:

I do, however I feel I'm not the only one that would be thrown by this wording. 
Perhaps wording such as 'In cases like the above it is more convenient to 
utilize the enumerate()'.

Thanks for the quick response!

--

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



[issue13985] Menu.tk_popup : menu doesn't disapear when main window is iconified.

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

@marc please accept our apologies for having missed this.

Can someone comment on this please.

--
nosy: +BreamoreBoy

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



[issue14069] In extensions (?...) the lookbehind assertion cannot choose between the beginning of string and a letter

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

@py.user please accept our apologies for having missed this.

@Ezio can you comment on this please.

--
nosy: +BreamoreBoy

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



[issue13938] 2to3 fails to convert types.StringTypes appropriately

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

A short patch LGTM.  Can we have a commit review please.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue13554] Tkinter doesn't use higher resolution app icon

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a comment on this please.

--
nosy: +BreamoreBoy, gpolo

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



[issue16095] urllib2 failing with squid proxy and digest authentication

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have an update on this please.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2

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



[issue15134] urllib.request.thishost() fails on OSX 10.7

2014-07-02 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +orsenthil
type:  - behavior
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

@Richard I assume that you'll be following this up.

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3

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



[issue14734] Use binascii.b2a_qp/a2b_qp in email package header handling?

2014-07-02 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
versions: +Python 3.5 -Python 3.4

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



[issue15549] openssl version in windows builds does not support renegotiation

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

@Cory the latest version of openssl is 1.0.1g for Python 2.7.7.  Please see PEP 
466 and issue 21462

--
nosy: +BreamoreBoy

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



[issue21890] wsgiref.simple_server doesn't accept empty bytes before start_response is called

2014-07-02 Thread Robin Schoonover

Robin Schoonover added the comment:

Fair enough, I misled myself.

However, and I feel like I'm getting really picky here, but it still doesn't 
fulfill the paragraph I quoted:

def application(environ, start_response):
start_response('200 OK',
   [('Content-type', 'text/plain')])
yield b''

try:
# produce an exception tuple, so we can re-call s_r
raise RuntimeError
except RuntimeError:
# Headers shouldn't have been sent, but they were
# so this will throw:
start_response('200 OK',
   [('Content-type', 'text/plain')],
   sys.exc_info())
yield b'error data or whatever'

But if async support a foregone conclusion anyway, is it worth bothering 
complying with that odd requirement?

--

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



[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2014-07-02 Thread akira

akira added the comment:

 ID s.check_output(pyflakes c:\programs\python34\lib\turtle.py)
 hangs indefinitely, no output

It might be unrelated to the issue but \t is a tab; a raw-string literal 
should be used instead:

   from subprocess import check_output
   check_output(rpyflakes c:\programs\python34\lib\turtle.py)

--
nosy: +akira

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



[issue11776] Constructor signatures missing in types module documentation

2014-07-02 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy:  -techtonik
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue16566] Structure._anonymous_ should not allow strings

2014-07-02 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - resolved
status: open - closed

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



[issue16095] urllib2 failing with squid proxy and digest authentication

2014-07-02 Thread Pietro Battiston

Pietro Battiston added the comment:

The bug is still present in 2.7.7 and 3.4.1.

By the way, under python 3 the workaround takes the form


class MyHTTPPasswordMgr(urllib.request.HTTPPasswordMgr):
def find_user_password(self, realm, authuri):
return a, b

Finally, notice the wrong behaviour of is_suburi() mentioned in 
http://bugs.python.org/msg1 is still present (and I still suspect it has 
something to do with this).

--

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



[issue19066] os.execv fails with spaced names on Windows

2014-07-02 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - duplicate
status: open - closed

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



[issue21890] wsgiref.simple_server doesn't accept empty bytes before start_response is called

2014-07-02 Thread PJ Eby

PJ Eby added the comment:

You're right, it shouldn't send the headers until a non-empty string
occurs.  I don't see any problem with treating it as a bug, and fixing it.
Your patch will also allow non-compliant behavior, though.  It seems to me
it would be better to fix the logic in write() to not call send_headers()
if len(data)==0.  That way, it will still error with write() before
start_response() in the non-compliant case, but fix the compliance error.
Feel free to reopen/retitle this issue for that.

--

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



[issue19024] Document asterisk (*), splat or star operator

2014-07-02 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I have started indexing symbol uses on other issue and will continue after 
GSOC. I am closing this as there is nothing specific to do.

--
resolution:  - wont fix
stage: needs patch - resolved
status: open - closed

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



[issue21090] File read silently stops after EIO I/O error

2014-07-02 Thread STINNER Victor

STINNER Victor added the comment:

For Python 2, file.read() looks wrong: if only checks ferror() if fread() 
returns 0, whereas Py_UniversalNewlineFread() can call fread() more than once, 
and according to fread() manual page, fread() result can be different than 0 on 
error.

If an error occurs, or the end of the file is reached, the return value is a 
short item count (or zero).
http://linux.die.net/man/3/fread

Attached fileobject.c rewrites error handling in fileobject.c. The main change 
if that ferror() is called even if fread() does not return 0.

--
Added file: http://bugs.python.org/file35833/fileobject.patch

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



[issue11389] unittest: no way to control verbosity of doctests from cmd

2014-07-02 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - TextTestRunner methods are not documented

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



[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2014-07-02 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue21897] frame.f_locals causes segfault on Python =3.4.1

2014-07-02 Thread Masami HIRATA

Masami HIRATA added the comment:

Thanks, pitrou.

Your patch seems ok to me.

$ python3.4.1_with_patch -m unittest
.
--
Ran 1 test in 0.001s

It seems that this issue is same as 
https://bitbucket.org/hpk42/pytest/issue/528/test-causes-segfault .

--

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



[issue21897] frame.f_locals causes segfault on Python =3.4.1

2014-07-02 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Here is a patch with tests.

--
keywords: +patch
nosy: +benjamin.peterson
stage:  - patch review
versions: +Python 3.5
Added file: http://bugs.python.org/file35834/f_locals_clear.patch

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



[issue21890] wsgiref.simple_server sends headers on empty bytes

2014-07-02 Thread Robin Schoonover

Robin Schoonover added the comment:

I agree, the current patch is too permissive.

Both a server I wrote a while ago, and most other complaint servers deal with 
the problem the exact same way as that patch, and that extra permissiveness led 
to my misinterpretation when analyzing why I had made that original change.

In any case, I've attached an updated patch.

--
resolution: not a bug - 
status: closed - open
title: wsgiref.simple_server doesn't accept empty bytes before start_response 
is called - wsgiref.simple_server sends headers on empty bytes
Added file: http://bugs.python.org/file35835/wsgiref-empty-byte-2.patch

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



[issue2057] difflib: add patch capability

2014-07-02 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I would like a simple patcher for three reasons.

1. hg, at least as I see it exposed through tortoisehg workbenck, will not 
apply a patch if there is already an uncommitted change. (But perhaps someone 
will tell me that there is a 'do it anyway' option.)

Sometimes when working on a patch, I want to quickly try out ant then revert 
another patch that I know does not conflict with the current one.

2. The hg patcher does not give error messages (other than 'chunk failed'). So 
to do a backport, for instance, I re-edit the file instead of correcting the 
diff.s

3. Not everything is in hg or equivalent.

--

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



[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2014-07-02 Thread Terry J. Reedy

Terry J. Reedy added the comment:

That has been pointed out to me. I need to repost with the results after 
correcting the commands (there is still a problem).

--

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



[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-07-02 Thread Florent Xicluna

Florent Xicluna added the comment:

The patch proposed by Christian addresses the issue. Good to merge.

--

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



[issue7423] nested generator expression produces strange results

2014-07-02 Thread Steve Holden

Steve Holden added the comment:

In my experience the devs are pretty well in touch with the user base (though 
they don't always acknowledge its input). If you leave a programming language 
at the first sign of  wart I fear yo may eventually run out of languages.

--
nosy: +holdenweb

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



[issue21890] wsgiref.simple_server sends headers on empty bytes

2014-07-02 Thread Robin Schoonover

Changes by Robin Schoonover ro...@cornhooves.org:


Added file: http://bugs.python.org/file35836/wsgiref-empty-byte-3.patch

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



[issue21755] test_importlib.test_locks fails --without-threads

2014-07-02 Thread Berker Peksag

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


--
assignee:  - berker.peksag
versions:  -Python 3.4

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



[issue21755] test_importlib.test_locks fails --without-threads

2014-07-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b88525a8c01d by Berker Peksag in branch 'default':
Issue #21755: Skip {Frozen,Source}_DeadlockAvoidanceTests tests when
http://hg.python.org/cpython/rev/b88525a8c01d

--
nosy: +python-dev

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



[issue21755] test_importlib.test_locks fails --without-threads

2014-07-02 Thread Berker Peksag

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


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

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



[issue21755] test_importlib.test_locks fails --without-threads

2014-07-02 Thread Berker Peksag

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


--
nosy: +r.david.murray

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



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-02 Thread Som Veettil

Som Veettil added the comment:

i had similar issue with python 2.7.. works fine with fix provided by vijay 
(luckycusp)
msg107935 - (view) - http://bugs.python.org/msg107935

thanks a lot.

--
nosy: +som_veettil

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



  1   2   >