When using the interactive ipython tab completion, is there a way easily identify which of the returned values are properties
and which are methods
?
I use os
as an example below. I don't see a distinction of any kind. I know this could be done with dir
but wanted to know if there was already a way to do this in ipython. It seems that it could be a time saver.
os.
Display all 203 possibilities? (y or n)
os.EX_CANTCREAT os.confstr_names os.pardir
os.EX_CONFIG os.ctermid os.path
os.EX_DATAERR os.curdir os.pathconf
os.EX_IOERR os.defpath os.pathconf_names
os.EX_NOHOST os.devnull os.pathsep
...
I don't think it is possible with the current state of the completion mechanism. You could have a look at the enhancement proposal for the completion machinery and suggest modifications if necessary.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.