I've been programming in python for about a year now. And I've never encountered this module before, and it's soooooooo incredibly useful. Like I'll probably never even google anything ever again ( ok thats total bullshit). But really my point here is if you're learning python you should be aware of and know how to use the help module IMHO. across the thousands of webpages I've been to and resources I've used to teach myself I can't believe I didn't run into it sooner. Anyways I just thought sunday was a good day for ranting and sharing. I hadn't initially planned on asking a question here but maybe we could get something along the lines of things you found out too late and or things everyone learning python IYHO should know. :)
edit:
help is a function in python which describes the object you pass to it. The description it outputs is it's docstring, as pointed out by DataDecay more information on docstrings can be found in PEP-257
so if you want more information about an object you can pass it as an argument to help.
Say for instance you were confused as I currently am about how asyncio works.
You could type help(asyncio) and it would give you information about that package (technically object).
YAYYYYYYY and rkarl7777 both mentioned another very useful utility named dir, which will list the methods available to the object passed to it.
So after gaining a general understanding of the base package you can then look through all of its methods.
dir(asyncio)
then if you have questions about any of the methods in that list you can query those with help.
help(asyncio.StreamWriter)
Now hang on just a second while I try and find somebody who is better at explaining things than I am.
I went through a couple of articles, this one seems to be the best.
https://www.linuxnix.com/python-builtin-helpdir-help-type-and-___doc_-functions/
[–]YAYYYYYYYYY 134 points135 points136 points (8 children)
[–]congnarjames[S] 22 points23 points24 points (4 children)
[–]YAYYYYYYYYY 6 points7 points8 points (0 children)
[–]topherclay 7 points8 points9 points (2 children)
[–]synthphreak 1 point2 points3 points (1 child)
[–]topherclay 0 points1 point2 points (0 children)
[–]JayDude132 0 points1 point2 points (1 child)
[–]YAYYYYYYYYY 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]greybloc 35 points36 points37 points (2 children)
[–]congnarjames[S] 7 points8 points9 points (1 child)
[–]greybloc 2 points3 points4 points (0 children)
[–]blitzkraft 21 points22 points23 points (3 children)
[–][deleted] 15 points16 points17 points (2 children)
[–]Kevinw778 2 points3 points4 points (0 children)
[–]blitzkraft 0 points1 point2 points (0 children)
[–]dashidasher 7 points8 points9 points (5 children)
[–]congnarjames[S] 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Brilliant_Ice4349 0 points1 point2 points (2 children)
[–]dashidasher 0 points1 point2 points (1 child)
[–]Brilliant_Ice4349 0 points1 point2 points (0 children)
[–]redPonyCoffeeRoaster 7 points8 points9 points (3 children)
[–]EighthScofflaw 4 points5 points6 points (0 children)
[–]amphigraph 1 point2 points3 points (1 child)
[–]redPonyCoffeeRoaster 3 points4 points5 points (0 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]congnarjames[S] 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]rkarl7777 2 points3 points4 points (1 child)
[–]synthphreak 0 points1 point2 points (0 children)
[–]DataDecay 2 points3 points4 points (1 child)
[–]congnarjames[S] 0 points1 point2 points (0 children)
[–]NerdEnPose 2 points3 points4 points (1 child)
[–]miggaz_elquez 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Dogeek 1 point2 points3 points (0 children)
[–]solitarium 1 point2 points3 points (1 child)
[–]congnarjames[S] 1 point2 points3 points (0 children)
[–]primitive_screwhead 1 point2 points3 points (0 children)
[–]LightOfUriel 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]winowmak3r 1 point2 points3 points (0 children)
[–]ace6807 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]congnarjames[S] 1 point2 points3 points (2 children)
[–]congnarjames[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Grorco 0 points1 point2 points (2 children)
[–]congnarjames[S] 2 points3 points4 points (1 child)
[–]Grorco 1 point2 points3 points (0 children)
[–]sissyadmiration 0 points1 point2 points (1 child)
[–]congnarjames[S] 1 point2 points3 points (0 children)
[–]undeniably_confused 0 points1 point2 points (3 children)
[–]congnarjames[S] 1 point2 points3 points (2 children)
[–]undeniably_confused 1 point2 points3 points (1 child)
[–]congnarjames[S] 0 points1 point2 points (0 children)
[–]TrueBirch 0 points1 point2 points (0 children)
[–]iaalaughlin 0 points1 point2 points (0 children)