jalazbe
jalazbe

Reputation: 2005

pycharm find functions with same name

I am using pycharm to debug python code written by different authors.

The code is functional, there are no classes in use.

I was looking for a function usage and I have found out that name of the function is repeated on different modules of the project with different results.

It works because the use they import the file file.py and then reference the funciton as the following:

import file
(...)
aux = file.function_name(parameters)

Is there a way to find function name coincidences?

Upvotes: 1

Views: 407

Answers (1)

Marcel Wilson
Marcel Wilson

Reputation: 4572

Assuming you know the name of the function in question:

  1. Use the 'Find in Path' function.
    • Edit > Find > Find in Path
    • or Right Click folder in project > Find in Path
  2. Then search for a definition of the function you're looking for.

You can see my example I have the same function name in two different modules. enter image description here

Upvotes: 1

Related Questions