On Tue, Oct 06, 2009 at 04:18:54AM -0700, Andrey wrote:
> 
> Hello,
> 
Hi, Andrey.

> When I write something like
> 
> from foo import b
> 
> bpython does not suggest things in foo which begin from b, and tab
> does not work. It would be nice to have this feature.
> 

For this to work, the module would have to be imported. Parsing it would not be
enough - all kinds of things could happen when the module is imported, e.g.
imagine a module such as this:

globals()['foo'] = None


So, there's no way to do this without executing code.

You could argue that this is okay, since you're going to import the module
anyway.

If you want to supply a patch for this I'll definitely consider it. I'm also
interested to hear what Andreas has to say about this.

Thanks for taking the time to write.

> 
> > 

-- 
Bob Farrell

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"bpython" group.
To post to this group, send email to bpython@googlegroups.com
To unsubscribe from this group, send email to 
bpython+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/bpython?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to