For introspection purpose, how I could locate upper() function in Python's source code?
Asked
Active
Viewed 30 times
0
-
1Note that these methods on built-in types, depending on the implementation you're using, probably are not written in Python. – jonrsharpe Jun 16 '16 at 09:35
-
1`upper` is a python method of `str` which is builtin Type. Builtin Types are generally written in `C` and source for builtin types cannot be accessed from compiled python. You can look at source code for implementation. – Harwee Jun 16 '16 at 09:37