On 27/06/2008, Kent Johnson <[EMAIL PROTECTED]> wrote:
> No, the assignment
>   gram.database = {}
>  will always (at least absent any extra magic) create an instance attribute.

I think this is the OP's workaround.  Quoting:

"Shrutarshi Basu":
> I have to manually clear gram.database because
> otherwise it keeps the data from previous calls to that function.

I think the OP is asking why this step is necessary.

-- 
John.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to