pdgz / pyshards

Automatically exported from code.google.com/p/pyshards
0 stars 0 forks source link

Refactored cursor.py #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I did some more refactoring on cursors.ShardCursor after the Open Space. 
This version moves all the smarts into a result accumulator class.  The
new_cursor.ShardCursor isn't a drop-in replacement (it only has the select*
methods) but should give you a good start.   test_cursor.py only works if
you run it from the test/ directory and symlink ../ to pyshards (it was a
quick and dirty to test compatibility between old and new).

Diff is against the trunk.

Original issue reported on code.google.com by jackd...@gmail.com on 30 Mar 2009 at 4:55

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for your contribution.  I'll merge this in and do some additional 
refactoring
in the coming weeks.

Original comment by venable....@gmail.com on 30 Mar 2009 at 7:00

GoogleCodeExporter commented 8 years ago
I just noticed it was filed w/ a 'Defect' flag.  Not intended, that must be the 
default.

Original comment by jackd...@gmail.com on 31 Mar 2009 at 6:34

GoogleCodeExporter commented 8 years ago

Original comment by venable....@gmail.com on 28 Apr 2009 at 4:42