documentation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • km

    documentation


    Hi all,
    i am coming from a Perl background. i am now learning python.
    suppose in Perl, to look at the perdocumentatio n page for variables in perl one can get the info by invoking perldoc perlvar. how to search for same in Python ?
    kindly enlighten,
    thanks,
    KM



  • Bruno Desthuilliers

    #2
    Re: documentation

    km wrote:[color=blue]
    > Hi all,
    > i am coming from a Perl background. i am now learning python.
    > suppose in Perl, to look at the perdocumentatio n page for variables in perl one can get the info by invoking perldoc perlvar. how to search for same in Python ?
    > kindly enlighten,
    > thanks,
    > KM
    >[/color]

    Python 2.3.2 (#1, Oct 27 2003, 01:23:54)
    [GCC 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)] on linux2
    Type "help", "copyright" , "credits" or "license" for more information.[color=blue][color=green][color=darkred]
    >>> def myFun():[/color][/color][/color]
    .... """ print 42 and return None """
    .... print 42
    ....[color=blue][color=green][color=darkred]
    >>> help(myFun)[/color][/color][/color]

    HTH
    Bruno

    Comment

    Working...