thanks for your replay
I got the answer by chating using IRC Help Channel
the answer if someone iterest can be found here

http://stackoverflow.com/questions/610883/how-to-know-if-an-object-has-an-attribute-in-python

thanks

On Apr 2, 7:23 pm, David Joyner <wdjoy...@gmail.com> wrote:
> This sounds like a general Python question.
> The first thought that springs to my mind is to use
> the try-except clause for handling 
> exceptions:http://docs.python.org/tutorial/errors.html
> Maybe there are better ways though.
>
> FYI, this is really a list for teachers to discuss ways
> to use Sage, not for general "support" questions. The
> list sage-support is better suited for that purpose.
>
> On Fri, Apr 2, 2010 at 1:09 PM, sage_newbie <aliaj...@gmail.com> wrote:
> > Hello ,
> > I want to ask if and object Y has no attriute X
> > how can I use
> > IF  Y has no attriute X :
> >  do something
>
> > thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sage-edu" group.
> > To post to this group, send email to sage-...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > sage-edu+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/sage-edu?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to sage-...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-edu+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en.

Reply via email to