Results of executing hyperlink in script

Cameron Laird claird at
Thu Jan 29 03:02:22 CET 2009

In article <mailman.8233.1233184499.3487.python-list at>,
MRAB  <google at> wrote:
>Muddy Coder wrote:
>You could put quotes around the URL:
>os.startfile('"%s"' % URL)
>os.system('start "%s"' % URL)
>if "&" has a special meaning to the command-line.

In fact, no, happiness does NOT result in these contexts with
another layer of quoting.
works fine even if URL embeds special characters, and does not
work at all if URL is itself quoted.

  os.system("start ...")

just gives a variety of unuseful results if URL embeds special

More information about the Python-list mailing list