[Tutor] Design Question

Mike Hansen Mike.Hansen at atmel.com
Fri Jun 1 21:55:43 CEST 2007


> -----Original Message-----
> From: tutor-bounces at python.org 
> [mailto:tutor-bounces at python.org] On Behalf Of Alan Gauld
> Sent: Friday, June 01, 2007 12:24 PM
> To: tutor at python.org
> Subject: Re: [Tutor] Design Question
> > remove_question(self,question) -- returns True if the question
> > was removed, False otherwise
> 
> Doesn't sound like, better to use a question style name like
> is_removed(question)
> 

Would it be better to have remove_question remove the question or raise
an exception if it can't remove the question? Then you'd put the call to
remove question in a try except block.

Mike


More information about the Tutor mailing list