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 Lib/idlelib/AutoComplete
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:
https://github.com/ipython/ipython/blob/master/IP
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 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 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:
https://bugs.launchp
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/+
Mark Lawrence writes:
> On 31/07/2014 19:55, Akira Li wrote:
>> Steven D'Aprano 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
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
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
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
*cou
On 7/31/2014 3:19 PM, Mark Lawrence wrote:
On 31/07/2014 19:55, Akira Li wrote:
Steven D'Aprano 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
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 inte
On 31/07/2014 19:55, Akira Li wrote:
Steven D'Aprano 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?
L
Steven D'Aprano 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 `help('modules')` is i
On Thu, Jul 31, 2014 at 9:55 PM, Roy Smith wrote:
> In article <53da1d5a$0$29974$c3e8da3$54964...@news.astraweb.com>,
> 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:
>>
>
In article <53da1d5a$0$29974$c3e8da3$54964...@news.astraweb.com>,
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
On Wed, 30 Jul 2014 21:22:18 +0800, Leo Jay wrote:
> On Wed, Jul 30, 2014 at 3:43 PM, 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.
>>
>>
> If you don
On Wed, Jul 30, 2014 at 2:43 AM, 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 wrote a modified dir(), which I inject into builtins in interactive
ses
On Jul 30, 2014 4:37 AM, "Robert Kern" 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 11:22 PM, Leo Jay wrote:
> On Wed, Jul 30, 2014 at 3:43 PM, 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.
>>
>
> If you don't ac
On Wed, Jul 30, 2014 at 3:43 PM, 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.
>
If you don't actually import it, how can you know it could be imported?
No
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 get_mod
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 =
On Wed, Jul 30, 2014 at 5:43 PM, Steven D'Aprano 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
importlib.machinery.all_suffixes() rather than hard-
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')
24 matches
Mail list logo