Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed in r86874.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10323
___
On 11/5/2010 4:51 PM, Raymond Hettinger wrote:
On Nov 5, 1:05 pm, Terry Reedytjre...@udel.edu wrote:
Currently, there are no promises or guarantees about the final state
of the iterator.
I interpret the current doc statement as a promise that becomes
ambiguous when step 1.
You may have
I have created an issue in roundup at http://bugs.python.org/issue10323.
I was expecting the discussion to move to that place but since it has not,
for the sake of completion I am quoting my response
to Raymond that I had posted on roundup.
@Raymond: I don't have a particular use case where I
Raymond Hettinger wrote:
If the RightAnswer(tm) is obvious to you, I would
like to hear it.
It isnt ;)
If I had to make a choice right
now, I would choose stopping at the earlier possible
point rather than scanning to the next natural
boundary.
+1
Not because it leaves the underlying
Shashank Singh shashank.sunny.si...@gmail.com wrote:
Are there any promises made with regard to final state of the underlying
sequence that islice slices?
Currently, there are no promises or guarantees about the final state
of the iterator.
To the extent the pure Python version in the
On 11/5/2010 4:58 AM, Raymond Hettinger wrote:
Shashank Singhshashank.sunny.si...@gmail.com wrote:
Are there any promises made with regard to final state of the underlying
sequence that islice slices?
Currently, there are no promises or guarantees about the final state
of the iterator.
On Nov 5, 1:05 pm, Terry Reedy tjre...@udel.edu wrote:
Currently, there are no promises or guarantees about the final state
of the iterator.
I interpret the current doc statement as a promise that becomes
ambiguous when step 1.
You may have missed my point. I wrote the tools, the docs,
On Nov 5, 2:51 pm, Raymond Hettinger pyt...@rcn.com wrote:
You may have missed my point. I wrote the tools, the docs, and the
tests.
If you interpret a promise in text, I can assure you it was not
intended. The behavior *is* undefined because I never defined it.
I'm happy to clarify the
On Nov 5, 3:52 pm, Ian ian.g.ke...@gmail.com wrote:
On Nov 5, 2:51 pm, Raymond Hettinger pyt...@rcn.com wrote:
You may have missed my point. I wrote the tools, the docs, and the
tests.
If you interpret a promise in text, I can assure you it was not
intended. The behavior *is* undefined
in terms of the change in code
required it might break any code depending
on this seemingly incorrect behavior
--
components: Interpreter Core
messages: 120482
nosy: ned.deily, rhettinger, shashank, terry.reedy
priority: normal
severity: normal
status: open
title: Final state of underlying
Shashank shashank.sunny.si...@gmail.com added the comment:
@Raymond: I don't have a particular use case where I had a problem with this
behavior. I came across this problem when looking at this issue
http://bugs.python.org/issue6305.
An important problem that can happen with this behavior is
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: - rhettinger
components: +Documentation -Interpreter Core
priority: normal - low
versions: -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
Hi,
Apologies if this has been discussed in this list before. Google has not
been very helpful in locating any such
previous discussion.
Are there any promises made with regard to final state of the underlying
sequence that islice slices?
for example consider this
from itertools import *
c =
In article
aanlktin9fxc5wfttn=tjogk+frp14zbpbkrhqfg31...@mail.gmail.com,
Shashank Singh shashank.sunny.si...@gmail.com wrote:
Are there any promises made with regard to final state of the underlying
sequence that islice slices?
[...]
While fixing this should be rather easy in terms of the
On 11/4/2010 12:42 PM, Shashank Singh wrote:
Are there any promises made with regard to final state of the underlying
sequence that islice slices?
The one you quote below.
for example consider this
from itertools import *
c = count()
list(islice(c, 1, 3, 50))
[1]
c.next()
51
When
15 matches
Mail list logo