Re: __import__ Confusion

2009-02-12 Thread Benjamin Peterson
gmail.com> writes: > > Can someone explain to me what's going on here? > > >>> __import__('some.package.module', {}, {}, []) > > >>> __import__('some.package.module', {}, {}, ['']) > As documented [1], unless fromlist is not empty, the first module is returned. Use the solution at the end o

__import__ Confusion

2009-02-12 Thread scott . bronson . nelson
Can someone explain to me what's going on here? >>> __import__('some.package.module', {}, {}, []) >>> __import__('some.package.module', {}, {}, ['']) (Note that '' is two single quotes) Thanks, Scott -- http://mail.python.org/mailman/listinfo/python-list