dir(entry) not useful on Python 3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Triaged
|
Low
|
Unassigned |
Bug Description
Python 3 removed support for the very old __members__ and __methods__ attributes, which means that dir() on an Entry is much less useful: you only see lp_attributes, lp_operations, etc., and not the actual introspected names from the web service.
The patch in https:/
I'm not sure how to square this circle. The best thing I can think of would be to either exclude self.FIND_
I suppose we could also implement conditional behaviour based on whether the global __IPYTHON__ name exists, which seems to let us detect whether we're running in IPython. That's pretty nasty, but it would limit the damage. On the other hand I suppose there's no particular reason to assume that this completion behaviour should be limited to IPython, since it's apparently implemented by the separate jedi library.