Ed Leafe wrote:
> On Apr 26, 2007, at 10:14 PM, Carl Karsten wrote:
> 
>>>     I guess they should also include what happens if you specify
>>> rows="Flower", or rows=time.localtime(), but I guess I was too busy
>>> to worry about meaningless cases.
>> I'm not sure what you think I was getting at... so let me try again:
>> What should happen when rows=None?
> 
>       It should blow up, since that's a nonsensical case. You're calling a  
> method designed to return data, but telling it not to return rows?  
> What's the point?

What are you smoking? :)  rows=None is the default for getDataSet. rows 
specifies the number of rows to be returned. So if rowStart is 0, all 
rows will be returned. And if rowStart is 23, all the rest of the rows, 
starting with row 23, will be returned. This isn't explicit in the 
docstring, it is one of those things that is obvious to you and me 
because it wouldn't make sense for it to be interpreted in the other way 
"return all rows no matter what rowStart was set at".

So, setting rows=None isn't invalid, but it also doesn't mean "return no 
rows". Let's fix the docstring and move on. Carl?

-- 
pkm ~ http://paulmcnett.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to