Re: slooow delete
John Lenton <[email protected]> Fri, 18 Mar 2005 11:22:25 -0300
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
Thank you very much for your reply. Just one small doubt remains: On Fri, 18 Mar 2005 12:18:57 +0100, Sebastien Bigaret <[email protected]> wrote: > > And, if you do this: just make sure that > > - either task.getMeal().isFault() == true > > - or that, in case it is not, that > task.getMeal().getTasks().isFault()==true > > In this last case, if it is false, then you can do the > meal.addToTasks(task) without any overhead, since this indicate > that > the fetch has already be done. is there any case where the last line would return false, instead of raising an AttributeError? -- John Lenton ([email protected]) -- Random fortune: Don't anthropomorphise computers and cars, They hate that. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click