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/bdb.rst

    r2 r391  
    55   :synopsis: Debugger framework.
    66
     7**Source code:** :source:`Lib/bdb.py`
     8
     9--------------
     10
    711The :mod:`bdb` module handles basic debugger functions, like setting breakpoints
    812or managing execution via the debugger.
     
    1721The :mod:`bdb` module also defines two classes:
    1822
    19 .. class:: Breakpoint(self, file, line[, temporary=0[, cond=None [, funcname=None]]])
     23.. class:: Breakpoint(self, file, line, temporary=0, cond=None , funcname=None)
    2024
    2125   This class implements temporary breakpoints, ignore counts, disabling and
     
    109113      * ``"c_call"``: A C function is about to be called.
    110114      * ``"c_return"``: A C function has returned.
    111       * ``"c_exception"``: A C function has thrown an exception.
     115      * ``"c_exception"``: A C function has raised an exception.
    112116
    113117      For the Python events, specialized functions (see below) are called.  For
     
    242246   something went wrong, or ``None`` if all is well.
    243247
    244    .. method:: set_break(filename, lineno[, temporary=0[, cond[, funcname]]])
     248   .. method:: set_break(filename, lineno, temporary=0, cond=None, funcname=None)
    245249
    246250      Set a new breakpoint.  If the *lineno* line doesn't exist for the
     
    343347
    344348   Determine if there is an effective (active) breakpoint at this line of code.
    345    Return breakpoint number or 0 if none.
    346 
    347    Called only if we know there is a breakpoint at this location.  Returns the
    348    breakpoint that was triggered and a flag that indicates if it is ok to delete
    349    a temporary breakpoint.
     349   Return a tuple of the breakpoint and a boolean that indicates if it is ok
     350   to delete a temporary breakpoint.  Return ``(None, None)`` if there is no
     351   matching breakpoint.
    350352
    351353.. function:: set_trace()
    352354
    353    Starts debugging with a :class:`Bdb` instance from caller's frame.
     355   Start debugging with a :class:`Bdb` instance from caller's frame.
Note: See TracChangeset for help on using the changeset viewer.