Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
vcs.removeobject doex NOT error exit if trying to remove a non vcs object #234
but rather prints to the screen
In : import EzTemplate In : M=EzTemplate.Multi(rows=3,columns=3) In : M.get() Out: <vcs.template.P at 0x7f910a927bb0> In : vcs.removeobject(M) Out: 'This is not a template, graphics method, or secondary method object.'
Should we error exit?
added a commit
Aug 21, 2017
I did not even know about this function... Would you get the same result with a standard del(M)?
When I want to explicitly delete a big numpy or MV2 array (before the end of a script), I just use del(my_bulky_array) and I don't need a cdms2.removeobject. I hope using del works!