Thanks, guys! I think I'm going with #3 at the stackoverflow link...thanks again!
On Sun, Mar 3, 2013 at 12:00 PM, <[email protected]>wrote: > Send seattle-python mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.seapig.org/mailman/listinfo/seattle-python > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of seattle-python digest..." > > > Today's Topics: > > 1. ?: Way to use help to create a list-valued variable... > (David Goldsmith) > 2. Re: ?: Way to use help to create a list-valued variable... > (Russell Hay) > 3. Re: ?: Way to use help to create a list-valued variable... > (Nathaniel Guy) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 2 Mar 2013 15:45:44 -0800 > From: David Goldsmith <[email protected]> > To: Seattle Python Interest Group <[email protected]> > Subject: [SEAPY] ?: Way to use help to create a list-valued > variable... > Message-ID: > < > caftpszoopucvbd-mnfbrqfmh3kf-+zyqpkharswezcymsud...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > ...containing, as strings, all installed modules? (I tried simply x = > help('modules') and it didn't crash, but when it got done, print x just > printed None.) If not, is there a way to do it more "elegant" than > returning a directory listing of site-packages and then filtering that for > just the .py files? Thanks! > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.seapig.org/pipermail/seattle-python/attachments/20130302/1f5db2c8/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Sat, 2 Mar 2013 15:48:17 -0800 > From: Russell Hay <[email protected]> > To: Seattle Python Interest Group <[email protected]> > Cc: Seattle Python Interest Group <[email protected]> > Subject: Re: [SEAPY] ?: Way to use help to create a list-valued > variable... > Message-ID: <[email protected]> > Content-Type: text/plain; charset="us-ascii" > > David, > > Try this: > http://pythonhosted.org/distribute/pkg_resources.html#workingset-objects > > The WorkingSet should give you all modules available as well as version. > > On Mar 2, 2013, at 3:45 PM, David Goldsmith <[email protected]> > wrote: > > > ...containing, as strings, all installed modules? (I tried simply x = > help('modules') and it didn't crash, but when it got done, print x just > printed None.) If not, is there a way to do it more "elegant" than > returning a directory listing of site-packages and then filtering that for > just the .py files? Thanks! > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.seapig.org/pipermail/seattle-python/attachments/20130302/5d6500ac/attachment-0001.html > > > > ------------------------------ > > Message: 3 > Date: Sat, 2 Mar 2013 15:55:35 -0800 > From: Nathaniel Guy <[email protected]> > To: Seattle Python Interest Group <[email protected]> > Subject: Re: [SEAPY] ?: Way to use help to create a list-valued > variable... > Message-ID: > < > caohye70kg3hu48mo0bxjdtbbi7+j936uq8i1s2yc8sff2rz...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Various other methods here as well: > > > http://stackoverflow.com/questions/8808714/how-can-i-access-the-list-of-modules-that-pythons-helpmodules-displays > > On Sat, Mar 2, 2013 at 3:48 PM, Russell Hay <[email protected]> wrote: > > > David, > > > > Try this: > > http://pythonhosted.org/distribute/pkg_resources.html#workingset-objects > > > > The WorkingSet should give you all modules available as well as version. > > > > On Mar 2, 2013, at 3:45 PM, David Goldsmith <[email protected]> > > wrote: > > > > ...containing, as strings, all installed modules? (I tried simply x = > > help('modules') and it didn't crash, but when it got done, print x just > > printed None.) If not, is there a way to do it more "elegant" than > > returning a directory listing of site-packages and then filtering that > for > > just the .py files? Thanks! > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.seapig.org/pipermail/seattle-python/attachments/20130302/24cd1620/attachment-0001.html > > > > End of seattle-python Digest, Vol 107, Issue 1 > ********************************************** > -- >From "A Letter From The Future" in "Peak Everything" by Richard Heinberg: "By the time I was an older teenager, a certain...attitude was developing among the young people...a feeling of utter contempt for anyone over a certain age--maybe 30 or 40. The adults had consumed so many resources, and now there were none left for their own children...when those adults were younger, they [were] just doing what everybody else was doing...they figured it was normal to cut down ancient forests for...phone books, pump every last gallon of oil to power their SUV's...[but] for...my generation all that was just a dim memory...We [grew up] living in darkness, with shortages of food and water, with riots in the streets, with people begging on street corners...for us, the adults were the enemy." Want to *really* understand what's *really* going on? Read "Peak Everything."
