Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python inspect source code

#baz.py
import inspect
class foo:
      def bar():
          print 'Hello'
print(inspect.getsource(foo))
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #python #inspect #source #code
ADD COMMENT
Topic
Name
2+9 =