Two Python modules require each other's contents - can that work?

后端 未结 2 782
陌清茗
陌清茗 2020-11-28 07:44

I have a Bottle webserver module with the following line:

from foobar.formtools import auto_process_form_insert

And the foobar.formto

2条回答
  •  甜味超标
    2020-11-28 08:21

    Don't do from ... import .... Just do import ... and reference its objects using the module name.

提交回复
热议问题