First Boot

Tips and Tricks for Solaris, Dtrace, Linux, ZFS, shell, perl, awk, sed to diagnose performance issues. Few examples on perl, python, shell scripting.

Saturday, August 25, 2018

Python : List all imported modules

>>> print(help('modules'))

or

>>>help()
help>>> os
<.......>
This will list all methods/fuctions inside os module

or
>>import sys
>>print(sys.modules)
>>print(sys.path)
>>dir('__main__')



Posted by Nitin at 7:34 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Pages

  • Home
  • Privacy Policy

Blog Archive

  • ►  2020 (1)
    • ►  January (1)
  • ►  2019 (1)
    • ►  January (1)
  • ▼  2018 (11)
    • ▼  August (9)
      • Python : List all imported modules
      • Python: Listing all functions , methods from a mod...
      • Quick learn C to Assembly
      • Signal vs Interrupt
      • Process vs Thread
      • stack and heap
      • Why use pointers in C/C++
      • online compilers
      • man vs apropos
    • ►  June (1)
    • ►  February (1)
  • ►  2017 (1)
    • ►  February (1)
  • ►  2015 (1)
    • ►  March (1)
  • ►  2014 (2)
    • ►  April (1)
    • ►  January (1)
  • ►  2013 (11)
    • ►  December (3)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  February (2)
  • ►  2012 (9)
    • ►  December (2)
    • ►  October (5)
    • ►  September (2)

Search This Blog

Total Pageviews

Simple theme. Powered by Blogger.