Hi Richard,
Thank you for your reply and explanations.
The solution you suggest works perfectly, you just need to write multScalaire like a String in the hasattr test :
if hasattr(v1, 'multScalaire'):instead of
if hasattr(v1, multScalaire):
Best regards,
Philippe