Re: how do I count spaces at the beginning of a string?

2007-05-16 Thread Norman Lorrain
On 2007-05-16 20:02:18 -0600, walterbyrd <[EMAIL PROTECTED]> said: > The strings start with whitespace, and have a '*' or an alphanumeric > character. I need to know how many whitespace characters exist at the > beginning of the string. a = ' three spaces' print len(a) -len(a.lstrip()) -- http

Vista: webbrowser module

2007-05-15 Thread Norman Lorrain
I don't have a Vista machine to test this on, but I have users reporting a problem with the following e.g. import webbrowser webbrowser.open('http://www.google.com') File "webbrowser.pyc", line 43, in open File "webbrowser.pyc", line 250, in open exceptions.WindowsError:[Errno 2] The system