[Tutor] Module webbrowser.os
Steven D'Aprano
steve at pearwood.info
Wed Nov 2 07:36:40 EDT 2016
On Wed, Nov 02, 2016 at 12:14:50PM +0530, Palanikumar Gopalakrishnan wrote:
> Hi Guys,
> I recently tested with some code , which open browser
>
> import webbrowser
> webbrowser.open("https://www.google.com")
>
> After that i want to experiment with webbrowser.os module,
webbrowser.os is just the os module.
https://docs.python.org/2/library/os.html
https://docs.python.org/3/library/os.html
When a module imports another module, say:
import os
then "os" becomes a top level name, available as webbrowser.os. But you
shouldn't use it. Just do "import os" and then use "os" on its own.
--
Steve
More information about the Tutor
mailing list