OSUrobotics / rosh_core

Fork of defunct rosh_core
http://wiki.ros.org/rosh_core
3 stars 2 forks source link

Use __dir__ instead of _getAttributeNames() #15

Open takluyver opened 9 years ago

takluyver commented 9 years ago

I see in namespace.py you're using _getAttributeNames() to make dynamic attributes tab-completable in IPython. This is a heads up that we're considering getting rid of the use of that method (ipython/ipython#8081). Since Python 2.6, there is a standard __dir__() method which objects can define for the same purpose.

dlaz commented 9 years ago

Thanks for the heads up, seems simple enough. A quick test suggests it won't be much work.