list of methods for python shell?

后端 未结 9 1403
鱼传尺愫
鱼传尺愫 2021-02-13 21:27

You\'d have already found out by my usage of terminology that I\'m a python n00b.

straight forward question:

How can i see a list of methods for a particular obj

9条回答
  •  不思量自难忘°
    2021-02-13 21:56

    For an enhanced version of dir() check out see()!

    >>> test = [1,2,3]
    >>> see(test)
        []    in    +    +=    *    *=    <    <=    ==    !=    >    >=    hash()
        help()    iter()    len()    repr()    reversed()    str()    .append()
        .count()    .extend()    .index()    .insert()    .pop()    .remove()
        .reverse()    .sort()
    

    You can get it here:

    • http://pypi.python.org/pypi/see/0.5.4 (packaged version)
    • http://inky.github.com/see/ (home page)
    • http://github.com/inky/see/tree/master (source)

提交回复
热议问题