File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2222,15 +2222,18 @@ def helphelp(self):
2222
2222
2223
2223
* Calling help() with no arguments starts an interactive help session.
2224
2224
2225
- * Calling help(x) will have one of two behaviors depending on the type
2226
- of the argument:
2225
+ * The behavior of help(x) depends on x's type:
2227
2226
2228
2227
* If x is a string, help(x) provides information about the given
2229
2228
topic. For example, help("class") will provide information about
2230
2229
the "class" keyword, and help("math.sqrt") will provide
2231
2230
information about the "math.sqrt" function.
2232
2231
2233
- * If x is not a string, help(x) prints information about x's type.
2232
+ * If x is a class or a built-in type, help(x) provides information
2233
+ about that type. For example, help(str) will provide information
2234
+ about the str type.
2235
+
2236
+ * For all other objects, help(x) prints information about x's type.
2234
2237
For example, help(20) will provide information about the int type.
2235
2238
""" ))
2236
2239
You can’t perform that action at this time.
0 commit comments