Skip to content

Commit

Permalink
Fixed bug with batches slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Sep 9, 2008
1 parent b866185 commit e9dd547
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
CHANGES
=======

1.0.1 (2008-09-09)
------------------

- Fixed bug with batches slicing.


1.0.0 (2008-02-18)
------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

setup(name='z3c.batching',
version = '1.1.0dev',
version = '1.0.1dev',
author='Zope Corporation and Contributors',
author_email='zope3-dev@zope.org',
description='Batching',
Expand Down
4 changes: 2 additions & 2 deletions src/z3c/batching/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ Slicing
[<Batch start=0, size=3>]

>>> batch.batches[:]
[<Batch start=0, size=3>, <Batch start=3, size=3>, <Batch start=6, size=3>]
[<Batch start=0, size=3>, <Batch start=3, size=3>, <Batch start=6, size=3>, <Batch start=9, size=3>]

>>> batch.batches[1:2]
[<Batch start=3, size=3>]

>>> batch.batches[1:]
[<Batch start=3, size=3>, <Batch start=6, size=3>]
[<Batch start=3, size=3>, <Batch start=6, size=3>, <Batch start=9, size=3>]

>>> batch.batches[10:]
[]

0 comments on commit e9dd547

Please sign in to comment.