How to check source code of a python method?

前端 未结 5 1645
遥遥无期
遥遥无期 2021-01-12 09:14

To be short, suppose I have a string \'next\',

next = \"123rpq\"

and I can apply a str method .isdigit()

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-12 09:40

    The isdigit() method you are talking about is a builtin method of a builtin datatype. Meaning, the source of this method is written in C, not Python. If you really wish to see the source code of it, then I suggest you go to http://python.org and download the source code of Python.

提交回复
热议问题