Re: List of modules available for import inside Python?

2016-10-20 Thread sorimdongja
On Thursday, August 28, 2008 at 1:12:04 AM UTC-5, Michele Simionato wrote: > On Aug 28, 6:21 am, ssecorp wrote: > > Is there a way to view all the modules I have available for import > > from within Python? > > Like writing in the interpreter: > > Try: > > >>> help() > help> modules > Please wai

Re: List of modules available for import inside Python?

2008-09-10 Thread Anita Kean
On 2008-09-10, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > (snip) ... > > So to refine the question: >how can I list all modules that might be importable on my system, >without actually importing them all ? > > (How about a "pydoc2" that's well thought out, doesn't crash ... > let me ask

Re: List of modules available for import inside Python?

2008-09-10 Thread Fredrik Lundh
Michele Simionato wrote: I have just tried the following on my Ubuntu box with the system Python: ~$ python /usr/lib/python2.5/doc/tools/listmodules.py /usr/lib/python2.5/doc/tools/listmodules.py:99: DeprecationWarning: the rgbimg module is deprecated __import__(m) ** (process:24863): WARNIN

Re: List of modules available for import inside Python?

2008-09-10 Thread Michele Simionato
On Sep 10, 1:45 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >    how can I list all modules that might be importable on my system, > >    without actually importing them all ? > > I'm pretty sure I mentioned a way to do that back when this thread was > opened.  let's s

Re: List of modules available for import inside Python?

2008-09-10 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: how can I list all modules that might be importable on my system, without actually importing them all ? I'm pretty sure I mentioned a way to do that back when this thread was opened. let's see, yes, here it is: ... there's a helper script in the 2.5 source c

Re: List of modules available for import inside Python?

2008-09-10 Thread denisbz
> > A quick fix is to replace line 1854 in pydoc.py (ModuleScanner.run) with > > this one: > > >         for importer, modname, ispkg in > >         pkgutil.walk_packages(onerror=lambda name:None): > > > (the onerror argument makes it to ignore all errors) well not all, for example GLUT: Fatal Err

Re: List of modules available for import inside Python?

2008-09-07 Thread sc
Gabriel Genellina wrote: > En Sat, 06 Sep 2008 17:18:55 -0300, clurker <[EMAIL PROTECTED]> > escribió: > >> Michele Simionato wrote: >> >>> On Aug 28, 6:21 am, ssecorp <[EMAIL PROTECTED]> wrote: Is there a way to view all the modules I have available for import from within Python?

Re: List of modules available for import inside Python?

2008-09-07 Thread Gabriel Genellina
En Sat, 06 Sep 2008 17:18:55 -0300, clurker <[EMAIL PROTECTED]> escribió: > Michele Simionato wrote: > >> On Aug 28, 6:21 am, ssecorp <[EMAIL PROTECTED]> wrote: >>> Is there a way to view all the modules I have available for import >>> from within Python? >>> Like writing in the interpreter: >> >>

Re: List of modules available for import inside Python?

2008-09-06 Thread clurker
Michele Simionato wrote: > On Aug 28, 6:21 am, ssecorp <[EMAIL PROTECTED]> wrote: >> Is there a way to view all the modules I have available for import >> from within Python? >> Like writing in the interpreter: > > Try: > help() > help> modules > Please wait a moment while I gather a list o

Re: List of modules available for import inside Python?

2008-08-28 Thread mblume
Am Thu, 28 Aug 2008 11:23:01 -0700 schrieb Jason Scheirer: > > I like to direct new users to pydoc's built-in HTTP server: > > import pydoc > pydoc.gui() > (then click the 'open browser' button) > Now, this is cool ! Thanks a lot! Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: List of modules available for import inside Python?

2008-08-28 Thread Jason Scheirer
On Aug 27, 11:04 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > ssecorp wrote: > > Is there a way to view all the modules I have available for import > > from within Python? > > Like writing in the interpreter: > > import.modules > > there's a helper script in the 2.5 source code kit that locates a

Re: List of modules available for import inside Python?

2008-08-28 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Is there a way to view all the modules I have available for import from within Python? Like writing in the interpreter: import.modules Also, is there anything like Cpan for Python? Isn't the most obvious answer to the first question this link? depends on whether you

Re: List of modules available for import inside Python?

2008-08-28 Thread pruebauno
On Aug 28, 12:21 am, ssecorp <[EMAIL PROTECTED]> wrote: > Is there a way to view all the modules I have available for import > from within Python? > Like writing in the interpreter: > import.modules > > Also, is there anything like Cpan for Python? Isn't the most obvious answer to the first questi

Re: List of modules available for import inside Python?

2008-08-27 Thread Michele Simionato
On Aug 28, 6:21 am, ssecorp <[EMAIL PROTECTED]> wrote: > Is there a way to view all the modules I have available for import > from within Python? > Like writing in the interpreter: Try: >>> help() help> modules Please wait a moment while I gather a list of all available modules... -- http://mail

Re: List of modules available for import inside Python?

2008-08-27 Thread Fredrik Lundh
ssecorp wrote: Is there a way to view all the modules I have available for import from within Python? Like writing in the interpreter: import.modules there's a helper script in the 2.5 source code kit that locates all existing standard modules: http://svn.python.org/projects/python/tags/r25

Re: List of modules available for import inside Python?

2008-08-27 Thread James Mills
On Thu, Aug 28, 2008 at 2:21 PM, ssecorp <[EMAIL PROTECTED]> wrote: > Also, is there anything like Cpan for Python? Try the Python Cheese Shop / PyPi http://pypi.python.org/pypi cheers James -- -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list

Re: List of modules available for import inside Python?

2008-08-27 Thread Chris Rebert
On Wed, Aug 27, 2008 at 9:21 PM, ssecorp <[EMAIL PROTECTED]> wrote: > Is there a way to view all the modules I have available for import > from within Python? > Like writing in the interpreter: > import.modules > > > Also, is there anything like Cpan for Python? The closest thing would be PyPI (th

List of modules available for import inside Python?

2008-08-27 Thread ssecorp
Is there a way to view all the modules I have available for import from within Python? Like writing in the interpreter: import.modules Also, is there anything like Cpan for Python? -- http://mail.python.org/mailman/listinfo/python-list