[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22775 ___ ___ Python-bugs-list

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The first argument of enumerate is 'iterable' in the 2.7 docstring also. enumerate(iterable[, start]) - iterator for index, value of iterable Return an enumerate object. iterable must be another object that supportsniteration. The enumerate object yields

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Ethan Furman
Ethan Furman added the comment: Nevertheless, that is the behavior if NotImplemented is returned by a method. Here's some code to demonstrate: --8--- from collections import Counter class Spam(int): for sake of example def __radd__(self, other):

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, it's true that the message is better. If we don't want to change behaviour, we should simply catch the AttributeError and return NotImplemented from there. -- ___ Python tracker rep...@bugs.python.org

[issue22737] Provide a rejected execution model and implementations for futures.

2014-10-31 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - needs patch versions: +Python 3.5 -Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22737 ___

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread Ethan Furman
New submission from Ethan Furman: https://docs.python.org/3/library/constants.html current --- Special value which can be returned by the “rich comparison” special methods (__eq__(), __lt__(), and friends), to indicate that the comparison is not implemented with respect to the other

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Win7, current Firefox, '-c' looks the same (definitely lowercase) for 2.7,8, 3.4.2, and 3.5.0a0, I agree both that the sys.argv entry should be left as is and that 'interpret' is better than 'feed' or the current verbiage. I think 'cmd' should be left as

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26d0a17affb5 by Ethan Furman in branch 'default': issue22780: update NotImplemented description https://hg.python.org/cpython/rev/26d0a17affb5 -- nosy: +python-dev ___ Python tracker

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- stage: needs patch - resolved status: open - closed versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22780 ___

[issue22739] There is no disk in the drive error

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lachian, I am closing this because I agree with Tim. This tracker is for bug fixes (and enhancements) to the code at hg.python.org/cpython (and a couple of the sibling repositories). Bugs need to be demonstrated with a .py or .c program. This is almost

[issue22742] IDLE shows traceback when printing non-BMP character

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think Idle should consistently display astral chars with their \U escape. It sometimes does, just not always. s='\U0001f680' s '\U0001f680' str(s) '\U0001f680' repr(s) '\U0001f680' print(s) # gives error above. print(str(s)) #ditto I thought that

[issue22761] Catching StopIteraion inside list comprehension

2014-10-31 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg230248 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22761 ___

[issue22701] Write unescaped unicode characters (Japanese, Chinese, etc) in JSON module when ensure_ascii=False

2014-10-31 Thread Michael Kuss
Michael Kuss added the comment: Pardon the delay - this json dump function is embedded in a much larger script, so it took some untangling to get it running on Python 3.3, and scrub some personal identifying info from it. This script also does not work in Python 3.3: File

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The sequence parameter name is an unfortunate hold-over from olden times were many things that accepted iterables were marked as taking sequences. This was fixed in Python 3, but it can't be changed in Py2.7 because the parameter name is exposed as a

[issue22761] Catching StopIteraion inside generator expression.

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: (One copy of a message is enough; I unlinked the duplicate.) I am not sure what you mean by you initial sentence, but I do not think it is correct. In any case, next(it) for it in iters is a generator expression, not a list comprehension. The tuple call

[issue22763] load_tests chaining into discover from non-discover entry point gets top_level_dir wrong

2014-10-31 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- components: +Tests stage: - test needed versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22763 ___

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread R. David Murray
R. David Murray added the comment: I am hard pressed to come up with anything useful you can do with the argument to -c without quoting it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22738

[issue22701] Write unescaped unicode characters (Japanese, Chinese, etc) in JSON module when ensure_ascii=False

2014-10-31 Thread R. David Murray
R. David Murray added the comment: That error message indicates you've opened the output file in binary mode instead of text mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22701 ___

[issue20069] Add unit test for os.chown

2014-10-31 Thread Cormac O'Brien
Cormac O'Brien added the comment: The unit test has changed significantly since R. David Murray posted his suggestions, but I've at least moved the test over to the new format as noted in the last comment of the v5 patch. -- nosy: +cormac-obrien Added file:

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread R. David Murray
R. David Murray added the comment: We have a suggestion for a wording improvement (that does not change the sentence to which you refer) that has been accepted as better than the existing wording by a couple of committers. This improvement is actually independent of what the variable is

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread R. David Murray
R. David Murray added the comment: The replacement of the term 'special methods' and the examples with the jargon (used nowhere else in the docs that I'm aware of) of '__dunder__' makes the text very confusing. Please restore 'special methods' and the examples...you could include

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Semi-useful: print a numeric expression without spaces C:\Users\Terrypython -c print(2**50) 1125899906842624 Less useful: print a string expression without spaces or double quotes C:\Users\Terrypython -c print('*'*50)

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread R. David Murray
R. David Murray added the comment: Ah, I see. Those don't work in my shell, since the '*' gets interpreted as a globbing character. I didn't know it worked on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22738

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you attach a proposed patch and I will make a decision. FWIW, I'm very happy with the current documentation at https://docs.python.org/2.7/library/functions.html#enumerate Between the text, example, and pure python equivalent, it does a great job

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-31 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___ ___

[issue22417] PEP 476: verify HTTPS certificates by default

2014-10-31 Thread Alex Gaynor
Alex Gaynor added the comment: New version of the patch based on feedback from benjamin, should make it easier to do the 3.4 branch stuff. -- Added file: http://bugs.python.org/file37094/issue22417.diff ___ Python tracker rep...@bugs.python.org

<    1   2