parameters: (self, arg)
return_statement: return bp
docstring: Return a breakpoint by its index in Breakpoint.bybpnumber.
  
          For invalid arg values or if the breakpoint doesn't exist,
          raise a ValueError.
docstring_summary: Return a breakpoint by its index in Breakpoint.bybpnumber.
docstring_tokens: Return a breakpoint by its index in Breakpoint . bybpnumber .
function: def get_bpbynumber(self, arg):
          """Return a breakpoint by its index in Breakpoint.bybpnumber.
  
          For invalid arg values or if the breakpoint doesn't exist,
          raise a ValueError.
          """
          if not arg:
              raise ValueError('Breakpoint number expected')
          try:
              number = int(arg)
          except ValueError:
              raise ValueError('Non-numeric breakpoint number %s' % arg) from None
          try:
              bp = Breakpoint.bpbynumber[number]
          except IndexError:
              raise ValueError('Breakpoint number %d out of range' % number) from None
          if bp is None:
              raise ValueError('Breakpoint %d already deleted' % number)
          return bp
function_tokens: def get_bpbynumber ( self , arg ) : if not arg : raise ValueError ( 'Breakpoint number expected' ) try : number = int ( arg ) except ValueError : raise ValueError ( 'Non-numeric breakpoint number %s' % arg ) from None try : bp = Breakpoint . bpbynumber [ number ] except IndexError : raise ValueError ( 'Breakpoint number %d out of range' % number ) from None if bp is None : raise ValueError ( 'Breakpoint %d already deleted' % number ) return bp