+ 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

26th May 2017, 11:48 PM
David Ashton
David Ashton - avatar
2 ответов
+ 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.
27th May 2017, 1:04 AM
David Ashton
David Ashton - avatar