From: Arne K. <arn...@pp...> - 2001-06-11 09:18:01
|
I have the following problem with hasattr() on visual object: when I execute this simple code: ----------------------------------------------- #file Vtest.py from visual import * thecone = cone(pos=(-3,-2,-2),axis = (0,3,0),radius=2.5, color=color.yellow) thecone.attr_exists = 'test' print 'yes', hasattr(thecone,'attr_exists') print 'no', hasattr(thecone,'attr_no_exists') ----------------------------------------------- it returns: ------------------------------------------------ arne@requin:~/python/Vpython > python Vtest.py Visual-2001-02-20 yes 1 segmentation fault --------------------------------------------------- I have installed Vpython from the cvs on Linux 2.2.18 (suse 7.1 distribution) under python2.0. -- Arne Keller Laboratoire de Photophysique Moleculaire du CNRS, Bat. 213. Universite de Paris-Sud, 91405 Orsay Cedex, France. tel.: (33) 1 69 15 82 83 -- fax. : (33) 1 69 15 67 77 |