Re: [Python-Dev] Making submodules available when importing top one

2013-10-16 Thread Eric Snow
On Wed, Oct 16, 2013 at 10:26 AM, Facundo Batista wrote: > (all this using Python 3.4.0a3+) > > In the stdlib, I see that (as an example): > import os os.path.abspath > os.path > > > > However, for other (newer) modules: > import urllib urllib.requests.urlopen > Tracebac

Re: [Python-Dev] Making submodules available when importing top one

2013-10-16 Thread Guido van Rossum
On Wed, Oct 16, 2013 at 9:26 AM, Facundo Batista wrote: > (all this using Python 3.4.0a3+) > > In the stdlib, I see that (as an example): > > >>> import os > >>> os.path.abspath > > >>> os.path > > > > However, for other (newer) modules: > > >>> import urllib > >>> urllib.requests.urlopen > Trac

Re: [Python-Dev] Making submodules available when importing top one

2013-10-16 Thread Oleg Broytman
On Wed, Oct 16, 2013 at 01:26:11PM -0300, Facundo Batista wrote: > (all this using Python 3.4.0a3+) > > In the stdlib, I see that (as an example): > > >>> import os > >>> os.path.abspath > > >>> os.path > > > > However, for other (newer) modules: > > >>> import urllib > >>> urllib.requests

[Python-Dev] Making submodules available when importing top one

2013-10-16 Thread Facundo Batista
(all this using Python 3.4.0a3+) In the stdlib, I see that (as an example): >>> import os >>> os.path.abspath >>> os.path However, for other (newer) modules: >>> import urllib >>> urllib.requests.urlopen Traceback (most recent call last): File "", line 1, in AttributeError: 'module' objec