jolla
jolla copied to clipboard
Python Web Framework
Results
5
jolla issues
Sort by
recently updated
recently updated
newest added
Will support py3 in the future?
**init**.py 一般有三种作用,除了标记 module 外,还能: ① 留空 ② 在 **init**.py 中引入所有的模块。import all modules ③ 在 **init**.py 中引入 key function 到 package namespace。好处在于当你重构了整个代码之后仍然有办法使得 API 保持稳定。(在 reddit 里的一个讨论帖里所提到的) 实际上我最喜欢的是第②和第③种,可以简化引入的模块。 所以从这点来看的话,在 **init**.py 里: ①...