Solving the invalid name for Python module warning in PyDev

后端 未结 2 1068
执笔经年
执笔经年 2020-12-31 08:52

I encountered the Invalid name for Python module: ...filename (it\'ll not be analyzed) warning message in PyDev and I tried to resolve it by replacing -

2条回答
  •  爱一瞬间的悲伤
    2020-12-31 09:26

    See http://docs.python.org/tutorial/modules.html for information about modules.

    To find out what characters are valid, have a look at the syntax of the import statement. It shows you that a module name needs to be a valid identifier which has the following rule:

    identifier ::=  (letter|"_") (letter | digit | "_")*
    

提交回复
热议问题