Re: [PyGreSQL] pg.DB() pseudo-cursor to reduce RAM use

2017-07-09 Thread Justin Pryzby
On Thu, Jul 06, 2017 at 02:23:37PM +0200, Christoph Zwerschke wrote: > Am 05.07.2017 um 23:12 schrieb Justin Pryzby: > >I'm hoping for some feedback on this - if the interface seems okay and the > >implementation otherwise fine, I can clean up some by pulling > >out the duplicated code from

Re: [PyGreSQL] pg.DB() pseudo-cursor to reduce RAM use

2017-07-09 Thread Christoph Zwerschke
Am 09.07.2017 um 19:07 schrieb Justin Pryzby: Could you elaborate on that ? I would like the idea of a standard function, returning its length, the same thing as ntuples(), but how would one call it ? It seems len() function only works for sequences and mappings. If you implement a __len__

Re: [PyGreSQL] pg.DB() pseudo-cursor to reduce RAM use

2017-07-09 Thread Justin Pryzby
On Thu, Jul 06, 2017 at 02:23:37PM +0200, Christoph Zwerschke wrote: > Am 05.07.2017 um 23:12 schrieb Justin Pryzby: > >I'm hoping for some feedback on this - if the interface seems okay and the > >implementation otherwise fine, I can clean up some by pulling > >out the duplicated code from