Windows, IDLE, __doc_, other

Lie Ryan lie.1296 at gmail.com
Mon Dec 21 16:15:06 EST 2009


On 12/22/2009 6:39 AM, W. eWatson wrote:
> Wow, did I get a bad result. I hit Ctrl-P, I think instead of Alt-P, and
> a little window came up showing it was about to print hundreds of pages.
> I can canceled it, but too late. I turned off my printer quickly and
> eventually stopped the onslaught.
>
> I couldn't get Alt-P or N to work.
>
> Another question. In interactive mode, how does one know what modules
> are active? Is there a way to list them with a simple command?

What do you mean by "active"? All loaded modules, whether it is in your 
namespace or not? Then sys.modules.
Else if you want all names in your namespace, dir() would do, though 
it'll show other things as well.



More information about the Python-list mailing list