def atol(*args):
 try:
  s = args[0]
 except IndexError:
  raise TypeError(('function requires at least 1 argument: %d given' % len(args)))
 if (type(s) == _StringType):
  return _apply(_long, args)
 else:
  raise TypeError(('argument 1: expected string, %s found' % type(s).__name__))

def atol ( * args ) : try : s = args [ 0 ] except IndexError : raise TypeError ( ( 'function requires at least 1 argument: %d given' % len ( args ) ) ) if ( type ( s ) == _StringType ) : return _apply ( _long , args ) else : raise TypeError ( ( 'argument 1: expected string, %s found' % type ( s ) . __name__ ) )
atol -> long return the long integer represented by the string s in the given base .