On 01/08/2014 16:41, Steven D'Aprano wrote:
On Fri, 01 Aug 2014 14:39:09 +0100, Robert Kern wrote:
Take a look at what has already been implemented in IPython:
https://github.com/ipython/ipython/blob/master/IPython/core/
completerlib.py#L208
Awesome! Thank you!
Is
Akira Li wrote:
Look at how `help('modules')` is implemented. Though it crashes on my
system.
Have you reported this at bugs.python.org or is there already an issue
for the problem that you see?
It is this issue for python2.7:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836
On 2014-08-02 09:33, Heinz Schmitz wrote:
Akira Li wrote:
Look at how `help('modules')` is implemented. Though it crashes on my
system.
Have you reported this at bugs.python.org or is there already an issue
for the problem that you see?
It is this issue for python2.7:
On 8/2/2014 8:13 AM, Robert Kern wrote:
On 2014-08-02 09:33, Heinz Schmitz wrote:
Akira Li wrote:
Look at how `help('modules')` is implemented. Though it crashes on my
system.
Have you reported this at bugs.python.org or is there already an issue
for the problem that you see?
It is this
On Friday, 1 August 2014 16:41:41 UTC+1, Steven D'Aprano wrote:
On Fri, 01 Aug 2014 14:39:09 +0100, Robert Kern wrote:
Take a look at what has already been implemented in IPython:
https://github.com/ipython/ipython/blob/master/IPython/core/
completerlib.py#L208
On 02/08/2014 22:13, jonnicol...@googlemail.com wrote:
On Friday, 1 August 2014 16:41:41 UTC+1, Steven D'Aprano wrote:
On Fri, 01 Aug 2014 14:39:09 +0100, Robert Kern wrote:
Take a look at what has already been implemented in IPython:
On 2014-07-31 11:41, Steven D'Aprano wrote:
On Wed, 30 Jul 2014 21:22:18 +0800, Leo Jay wrote:
On Wed, Jul 30, 2014 at 3:43 PM, Steven D'Aprano st...@pearwood.info
wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but
On Fri, 01 Aug 2014 14:39:09 +0100, Robert Kern wrote:
Take a look at what has already been implemented in IPython:
https://github.com/ipython/ipython/blob/master/IPython/core/
completerlib.py#L208
Awesome! Thank you!
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
Mark Lawrence breamore...@yahoo.co.uk writes:
On 31/07/2014 19:55, Akira Li wrote:
Steven D'Aprano st...@pearwood.info writes:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
...
On Wed, 30 Jul 2014 21:22:18 +0800, Leo Jay wrote:
On Wed, Jul 30, 2014 at 3:43 PM, Steven D'Aprano st...@pearwood.info
wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
If
In article 53da1d5a$0$29974$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
I'm working on tab completion for module names. I have some alpha-quality
code working, so if I hit TAB after typing import ma I get this:
py import ma
macpath
On Thu, Jul 31, 2014 at 9:55 PM, Roy Smith r...@panix.com wrote:
In article 53da1d5a$0$29974$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
I'm working on tab completion for module names. I have some alpha-quality
code working, so if I hit TAB
Steven D'Aprano st...@pearwood.info writes:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
...
Is this problem already solved? Can anyone make any suggestions?
Look at how
On 31/07/2014 19:55, Akira Li wrote:
Steven D'Aprano st...@pearwood.info writes:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
...
Is this problem already solved? Can anyone make
On 7/31/2014 6:41 AM, Steven D'Aprano wrote:
I'm working on tab completion for module names. I have some alpha-quality
code working, so if I hit TAB after typing import ma I get this:
py import ma
macpath macurl2path mailbox mailcap mangle
markupbase math
This is an
On 7/31/2014 3:19 PM, Mark Lawrence wrote:
On 31/07/2014 19:55, Akira Li wrote:
Steven D'Aprano st...@pearwood.info writes:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
...
Is
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
I have a quick-and-dirty function which half does the job:
def get_modules():
extensions = ('.py', '.pyc', '.pyo', '.so', '.dll')
On Wed, Jul 30, 2014 at 5:43 PM, Steven D'Aprano st...@pearwood.info wrote:
Is this problem already solved? Can anyone make any suggestions?
I don't know of an actual solution, but I know where I'd look for one,
and that's importlib. If nothing else, you can use
Steven D'Aprano wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
I have a quick-and-dirty function which half does the job:
def get_modules():
extensions = ('.py',
On 2014-07-30 09:46, Peter Otten wrote:
Steven D'Aprano wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
I have a quick-and-dirty function which half does the job:
def
On Wed, Jul 30, 2014 at 3:43 PM, Steven D'Aprano st...@pearwood.info wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
If you don't actually import it, how can you know it could
On Wed, Jul 30, 2014 at 11:22 PM, Leo Jay python.leo...@gmail.com wrote:
On Wed, Jul 30, 2014 at 3:43 PM, Steven D'Aprano st...@pearwood.info wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could*
On Jul 30, 2014 4:37 AM, Robert Kern robert.k...@gmail.com wrote:
On 2014-07-30 09:46, Peter Otten wrote:
Steven D'Aprano wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
On Wed, Jul 30, 2014 at 2:43 AM, Steven D'Aprano st...@pearwood.info
wrote:
I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
I wrote a modified dir(), which I inject into builtins in
24 matches
Mail list logo