"Bryan Fodness" <[EMAIL PROTECTED]> wrote

I have many variables of different types, and I want to do a check in
case something like ReferencePositionX = abc occurs.

In Python its usual to tackle that using try/except.
If you get a TypeError then try type conversion.
The saying goes somethinng like:
"Its better to ask forgivness than permission"

Alan G.

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

Reply via email to