|
|
|
|
|
by mvATM99
420 days ago
|
|
Good list. Some of these i knew already, but the typing overloading and keyword/positional-only arguments were new to me. One personal favorite of mine is __all__ for use in __init__.py files. It specifies which items are imported whenever uses from x import *. Especially useful when you have other people working on your codebase with the tendency to always import everything, which is rarely a good idea. |
|