Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/webbrowser.rst

    r2 r391  
    1 
    21:mod:`webbrowser` --- Convenient Web-browser controller
    32=======================================================
     
    87.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
    98
     9**Source code:** :source:`Lib/webbrowser.py`
     10
     11--------------
    1012
    1113The :mod:`webbrowser` module provides a high-level interface to allow displaying
     
    3335The script :program:`webbrowser` can be used as a command-line interface for the
    3436module. It accepts an URL as the argument. It accepts the following optional
    35 parameters: :option:`-n` opens the URL in a new browser window, if possible;
    36 :option:`-t` opens the URL in a new browser page ("tab"). The options are,
    37 naturally, mutually exclusive.
     37parameters: ``-n`` opens the URL in a new browser window, if possible;
     38``-t`` opens the URL in a new browser page ("tab"). The options are,
     39naturally, mutually exclusive.  Usage example::
     40
     41   python -m webbrowser -t "http://www.python.org"
    3842
    3943The following exception is defined:
     
    4751
    4852
    49 .. function:: open(url[, new=0[, autoraise=True]])
     53.. function:: open(url, new=0, autoraise=True)
    5054
    5155   Display *url* using the default browser. If *new* is 0, the *url* is opened
     
    6973   *url* in the only browser window.
    7074
    71 
    7275.. function:: open_new_tab(url)
    7376
     
    138141| ``'windows-default'`` | :class:`WindowsDefault`                 | \(2)  |
    139142+-----------------------+-----------------------------------------+-------+
    140 | ``'internet-config'`` | :class:`InternetConfig`                 | \(3)  |
    141 +-----------------------+-----------------------------------------+-------+
    142 | ``'macosx'``          | :class:`MacOSX('default')`              | \(4)  |
     143| ``'macosx'``          | :class:`MacOSX('default')`              | \(3)  |
     144+-----------------------+-----------------------------------------+-------+
     145| ``'safari'``          | :class:`MacOSX('safari')`               | \(3)  |
    143146+-----------------------+-----------------------------------------+-------+
    144147
     
    156159
    157160(3)
    158    Only on Mac OS platforms; requires the standard MacPython :mod:`ic` module.
    159 
    160 (4)
    161161   Only on Mac OS X platform.
    162162
     
    181181
    182182
    183 .. method:: controller.open(url[, new=0[, autoraise=True]])
     183.. method:: controller.open(url, new=0, autoraise=True)
    184184
    185185   Display *url* using the browser handled by this controller. If *new* is 1, a new
Note: See TracChangeset for help on using the changeset viewer.