My program requires the usage of a hash table, and an sql database; currently I would like to put the hash table part of my program (add,get,delete etc) and database part of my program(same thing) into separate python files so that I can find and edit specific parts of my code easier, my hashing part relying on my database part as they work together. However my pycharm suggests that (when I import both python files separately) that my second database program will not be used. For example
mainProgram
import hashProgam
import databaseProgram
main()
do blah blah blah blah
call function foo_bar()
run main()
hashProgram
foo_bar()
do blah blah
call function boo_lah()
databaseProgram
boo_lah()
do blah blah
the problem occurs (I assume) when my hashProgram wants to call my database program, though I dont know why that would be, because I have imported them both?
Sorry if this doesnt make sense, but I dont really know how else to word it, thank you for any help :-)