"\u001b[0;32m<ipython-input-6-5ce9bb5a72b4>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0minspect\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mgetsourcefile\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mmylst\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m<ipython-input-7-01e131c13b92>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0minspect\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mgetsource\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0ma\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32mc:\\Users\\mille\\Anaconda3\\lib\\inspect.py\u001b[0m in \u001b[0;36mgetsource\u001b[0;34m(object)\u001b[0m\n\u001b[1;32m 942\u001b[0m \u001b[1;32mor\u001b[0m \u001b[0mcode\u001b[0m \u001b[0mobject\u001b[0m\u001b[1;33m.\u001b[0m \u001b[0mThe\u001b[0m \u001b[0msource\u001b[0m \u001b[0mcode\u001b[0m \u001b[1;32mis\u001b[0m \u001b[0mreturned\u001b[0m \u001b[1;32mas\u001b[0m \u001b[0ma\u001b[0m \u001b[0msingle\u001b[0m \u001b[0mstring\u001b[0m\u001b[1;33m.\u001b[0m \u001b[0mAn\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m 943\u001b[0m OSError is raised if the source code cannot be retrieved.\"\"\"\n\u001b[0;32m--> 944\u001b[0;31m \u001b[0mlines\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mlnum\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mgetsourcelines\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 945\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[1;34m''\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlines\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m 946\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[0;32mc:\\Users\\mille\\Anaconda3\\lib\\inspect.py\u001b[0m in \u001b[0;36mgetsourcelines\u001b[0;34m(object)\u001b[0m\n\u001b[1;32m 929\u001b[0m raised if the source code cannot be retrieved.\"\"\"\n\u001b[1;32m 930\u001b[0m \u001b[0mobject\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0munwrap\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m--> 931\u001b[0;31m \u001b[0mlines\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mlnum\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mfindsource\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 932\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m 933\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mismodule\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[0;32mc:\\Users\\mille\\Anaconda3\\lib\\inspect.py\u001b[0m in \u001b[0;36mfindsource\u001b[0;34m(object)\u001b[0m\n\u001b[1;32m 742\u001b[0m is raised if the source code cannot be retrieved.\"\"\"\n\u001b[1;32m 743\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m--> 744\u001b[0;31m \u001b[0mfile\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mgetsourcefile\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 745\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mfile\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m 746\u001b[0m \u001b[1;31m# Invalidate cache if needed.\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\"list() -> new empty list\\nlist(iterable) -> new list initialized from iterable's items\""
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"inspect.getdoc(ax)"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"autoscroll": "json-false",
"collapsed": false,
"ein.tags": [
"worksheet-0"
],
"slideshow": {
"slide_type": "-"
}
},
"outputs": [
{
"data": {
"text/plain": [
"[('__abs__', <method-wrapper '__abs__' of int object at 0x00000000664B0310>),\n ('__add__', <method-wrapper '__add__' of int object at 0x00000000664B0310>),\n ('__and__', <method-wrapper '__and__' of int object at 0x00000000664B0310>),\n ('__bool__', <method-wrapper '__bool__' of int object at 0x00000000664B0310>),\n ('__ceil__', <function int.__ceil__>),\n ('__class__', int),\n ('__delattr__',\n <method-wrapper '__delattr__' of int object at 0x00000000664B0310>),\n ('__dir__', <function int.__dir__>),\n ('__divmod__',\n <method-wrapper '__divmod__' of int object at 0x00000000664B0310>),\n ('__doc__',\n \"int(x=0) -> integer\\nint(x, base=10) -> integer\\n\\nConvert a number or string to an integer, or return 0 if no arguments\\nare given. If x is a number, return x.__int__(). For floating point\\nnumbers, this truncates towards zero.\\n\\nIf x is not a number or if base is given, then x must be a string,\\nbytes, or bytearray instance representing an integer literal in the\\ngiven base. The literal can be preceded by '+' or '-' and be surrounded\\nby whitespace. The base defaults to 10. Valid bases are 0 and 2-36.\\nBase 0 means to interpret the base from the string as an integer literal.\\n>>> int('0b100', base=0)\\n4\"),\n ('__eq__', <method-wrapper '__eq__' of int object at 0x00000000664B0310>),\n ('__float__',\n <method-wrapper '__float__' of int object at 0x00000000664B0310>),\n ('__floor__', <function int.__floor__>),\n ('__floordiv__',\n <method-wrapper '__floordiv__' of int object at 0x00000000664B0310>),\n ('__format__', <function int.__format__>),\n ('__ge__', <method-wrapper '__ge__' of int object at 0x00000000664B0310>),\n ('__getattribute__',\n <method-wrapper '__getattribute__' of int object at 0x00000000664B0310>),\n ('__getnewargs__', <function int.__getnewargs__>),\n ('__gt__', <method-wrapper '__gt__' of int object at 0x00000000664B0310>),\n ('__hash__', <method-wrapper '__hash__' of int object at 0x00000000664B0310>),\n ('__index__',\n <method-wrapper '__index__' of int object at 0x00000000664B0310>),\n ('__init__', <method-wrapper '__init__' of int object at 0x00000000664B0310>),\n ('__int__', <method-wrapper '__int__' of int object at 0x00000000664B0310>),\n ('__invert__',\n <method-wrapper '__invert__' of int object at 0x00000000664B0310>),\n ('__le__', <method-wrapper '__le__' of int object at 0x00000000664B0310>),\n ('__lshift__',\n <method-wrapper '__lshift__' of int object at 0x00000000664B0310>),\n ('__lt__', <method-wrapper '__lt__' of int object at 0x00000000664B0310>),\n ('__mod__', <method-wrapper '__mod__' of int object at 0x00000000664B0310>),\n ('__mul__', <method-wrapper '__mul__' of int object at 0x00000000664B0310>),\n ('__ne__', <method-wrapper '__ne__' of int object at 0x00000000664B0310>),\n ('__neg__', <method-wrapper '__neg__' of int object at 0x00000000664B0310>),\n ('__new__', <function int.__new__>),\n ('__or__', <method-wrapper '__or__' of int object at 0x00000000664B0310>),\n ('__pos__', <method-wrapper '__pos__' of int object at 0x00000000664B0310>),\n ('__pow__', <method-wrapper '__pow__' of int object at 0x00000000664B0310>),\n ('__radd__', <method-wrapper '__radd__' of int object at 0x00000000664B0310>),\n ('__rand__', <method-wrapper '__rand__' of int object at 0x00000000664B0310>),\n ('__rdivmod__',\n <method-wrapper '__rdivmod__' of int object at 0x00000000664B0310>),\n ('__reduce__', <function int.__reduce__>),\n ('__reduce_ex__', <function int.__reduce_ex__>),\n ('__repr__', <method-wrapper '__repr__' of int object at 0x00000000664B0310>),\n ('__rfloordiv__',\n <method-wrapper '__rfloordiv__' of int object at 0x00000000664B0310>),\n ('__rlshift__',\n <method-wrapper '__rlshift__' of int object at 0x00000000664B0310>),\n ('__rmod__', <method-wrapper '__rmod__' of int object at 0x00000000664B0310>),\n ('__rmul__', <method-wrapper '__rmul__' of int object at 0x00000000664B0310>),\n ('__ror__', <method-wrapper '__ror__' of int object at 0x00000000664B0310>),\n ('__round__', <function int.__round__>),\n ('__rpow__', <method-wrapper '__rpow__' o
"\u001b[1;32m<ipython-input-2-05c9758a9c21>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;36m1\u001b[0m\u001b[1;33m/\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",