Re: [sage-devel] Method trait_names removed from units??

2016-07-05 Thread Stan
Dear Johan, Thanks a lot, this is very helpful. And I agree that a deprecation warning would have been appropriate and also that keeping the trait_names() method active would help me at least. The problem with the _tab_completion() method is that it is not easily discoverable, as it does not

Re: [sage-devel] Method trait_names removed from units??

2016-07-05 Thread Johan S . H . Rosenkilde
Hi Stan, It seems that trait_names() was originally added as part of a mechanism for giving tab-completion to certain objects in IPython and the Notebook, and this mechanism changed. Hence what used to be trait_names() is now called _tab_completion() -- at least units.energy._tab_completion()

[sage-devel] Method trait_names removed from units??

2016-07-05 Thread Stan
Dear all, After upgrading to 7.2, I found out that things such as units.energy.trait_names() do not work any more. I used this extensively to loop through the different unit names and create variable names out of them. Why was this removed, and is there another way of doing this? I want to be