Re: [Tutor] Module webbrowser.os

2016-11-02 Thread Steven D'Aprano
On Wed, Nov 02, 2016 at 09:16:56AM +, Alan Gauld via Tutor wrote: > On 02/11/16 06:44, Palanikumar Gopalakrishnan wrote: > > webbrowser.os(umask) > > > > But It retruns the following error > > > > *Traceback (most recent call last): File "", line 1, in > > NameError: name 'umask' is not

Re: [Tutor] Module webbrowser.os

2016-11-02 Thread Steven D'Aprano
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,

Re: [Tutor] Module webbrowser.os

2016-11-02 Thread Alan Gauld via Tutor
On 02/11/16 06:44, Palanikumar Gopalakrishnan wrote: > After that i want to experiment with webbrowser.os module, But dont know > how to execute it. webbrowser.os seems to just be a link to the standard os module. So you should read the docs for os...and use the os module directly. > So I use

Re: [Tutor] implementing sed - termination error

2016-11-02 Thread Peter Otten
bruce wrote: > Hi > > Running a test on a linux box, with python. > > Trying to do a search/replace over a file, for a given string, and > replacing the string with a chunk of text that has multiple lines. > > From the cmdline, using sed, no prob. however, implementing sed, runs > into issues,

[Tutor] Module webbrowser.os

2016-11-02 Thread Palanikumar Gopalakrishnan
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, But dont know how to execute it.So I use dir(webbrowser.os) to find some details. Then i tried the