[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Andrew Brown

Andrew Brown  added the comment:

This bug trigger can be simplified down, see my attached bug_simplified.py

The problem seems to be in deque_count(). What's happening is that after the 
rotations, the 16 items reside in the last 16 slots of one block.

In deque_count()'s for loop, the block pointer is incremented regardless of 
whether the loop has another iteration to go or not. Thus, it's trying to grab 
the (nonexistant) next block, even though the for loop would have exited 
anyways.

--
nosy: +Andrew.Brown
Added file: http://bugs.python.org/file20514/bug_simplified.py

___
Python tracker 
<http://bugs.python.org/issue11004>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6641] strptime doesn't support %z format ?

2009-08-20 Thread Andrew Brown

Andrew Brown  added the comment:

I think this bug is just a doc bug. If you check 

http://docs.python.org/library/datetime.html?highlight=strptime#strftime-behavior

and 

http://docs.python.org/library/time.html?highlight=strptime#time.strptime

You can see that the first link lists %z as a valid modifier, while in
the second link  (in footnote 1) it is mentioned as deprecated.

--
nosy: +abrown

___
Python tracker 
<http://bugs.python.org/issue6641>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com