Question: Create a bash script that produces a catalog of all functions in a set of Python source files named on the command line. The output

Create a bash script that produces a catalog of all functions in a set of Python source files named on the command line.

The output will be a sequence of lines of the form:

function_name file_name:line_number

Suppose for example that the file example.py had on line 7:

def foo(l):

Then for that line, the output of your script would say:

foo filename.py:7

The output should be sorted by the function name.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!