SQLite3; weird error
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Mon Oct 29 16:13:12 EDT 2007
TYR a écrit :
> On Oct 29, 11:51 am, Duncan Booth <duncan.bo... at invalid.invalid>
> wrote:
>
>>TYR <a.harrow... at gmail.com> wrote:
>>
>>>To do anything with it, you then need to create a cursor object by
>>>calling foo's method cursor (bar = foo.cursor).
>>
>>Perhaps this would work better if you actually try calling foo's method?
>>
>> bar = foo.cursor()
>>
>>Without the parentheses all you are doing is assigning the method to a
>>variable, not calling it.
>
>
> Ah. Apologies for a silly question.
>
Not so silly (considering you're somewhat new to Python, which seems
obvious here) - some languages work otherwise.
More information about the Python-list
mailing list