+ 10
Scratching below the surface of Python modules
Playing with the calendar module got me curious about what's in it and maybe learning a few coding tricks from looking inside. The complete source code is listed here https://github.com/JUMP_LINK__&&__python__&&__JUMP_LINK/cpython/blob/3.6/Lib/calendar.py The Python Standard Library https://docs.python.org/3/library/ is a huge recource with links to the source code of all the modules I wrote this bit of code to list the components (e.g. functions, variables, constants etc.) of any standard module https://code.sololearn.com/c5XZp2CNCWxK/#py
1 Respuesta
+ 3
@James Thanks. The point wasn't how to import module methods but how to explore what's available in the modules, e.g. with the above code.