Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22775
___
___
Python-bugs-list
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
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):
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
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
___
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
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
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
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
___
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
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
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
___
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
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
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
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
___
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
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
___
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:
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
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
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)
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
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
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
priority: normal - high
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22609
___
___
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
101 - 126 of 126 matches
Mail list logo