Exemplo n.º 1
0
def main():
    """ Main program to test stand alone 
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')
    exit_code = call_errno_test()
    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 2
0
def main():
    """ Main program to test stand alone 
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')
    exit_code = call_errno_test()
    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 3
0
def main():
    """ Main program to test stand alone 
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')

    fig1 = make_fig('figure1')
    exit_code = browse(fig1, name='fig1', show_special_attributes=False)

    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 4
0
def main():
    """ Main program to test stand alone 
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')
    
    if 0:
        exit_code = call_viewer_test()
    else: 
        exit_code = call_viewer_small_test() 
    
    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 5
0
def main():
    """ Main program to test stand alone 
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')

    if 0:
        exit_code = call_viewer_test()
    else:
        exit_code = call_viewer_small_test()

    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 6
0
def main():
    """ Main program
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')

    my_list = range(5, 9)
    p1 = MyPoint(0.0, 0.0)
    p2 = MyPoint(-4, 1)
        
    exit_code = my_browse({'my_list': my_list, 'p1': p1, 'p2': p2},  
                          show_routine_attributes=False,
                          show_special_attributes=False)

    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 7
0
def main():
    """ Main program 
    """
    logging_basic_config('DEBUG')
    logger.info('Started unicode browser.')
    logger.info('Using unicode database: {}'.format(unicodedata.unidata_version))

    logger.debug('Generating unicode map')
    unicode_chars = {}
    
    for i in xrange(0x10000):
        unicode_chars[i] = unichr(i)
    
    logger.debug('Starting browser')
    exit_code = my_browse(unicode_chars,  
                          show_routine_attributes=False,
                          show_special_attributes=False, 
                          reset = False) # use True to reset persistent settings

    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 8
0
def main():
    """ Main program
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')

    my_list = range(5, 9)
    p1 = MyPoint(0.0, 0.0)
    p2 = MyPoint(-4, 1)

    exit_code = my_browse({
        'my_list': my_list,
        'p1': p1,
        'p2': p2
    },
                          show_callable_attributes=False,
                          show_special_attributes=False,
                          reset=True)

    logging.info('Done example')
    sys.exit(exit_code)
def main():
    """ Main program 
    """
    logging_basic_config('DEBUG')
    logger.info('Started unicode browser.')
    logger.info('Using unicode database: {}'.format(
        unicodedata.unidata_version))

    logger.debug('Generating unicode map')
    unicode_chars = {}

    for i in range(0x10000):
        unicode_chars[i] = unichr(i)

    logger.debug('Starting browser')
    exit_code = my_browse(unicode_chars,
                          show_callable_attributes=False,
                          show_special_attributes=False,
                          reset=False)  # use True to reset persistent settings

    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 10
0
def main():
    """ Main program 
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')

    # define some local variables
    lst = range(-5, 5)
    b = True
    i = 555
    f = 6.2
    c = 3.2j - 0.1
    m = -4
    n = None
    s = '44'
    z = 'zonk'

    exit_code = my_browse(locals(),
                          show_callable_attributes=False,
                          show_special_attributes=False)

    logging.info('Done example')
    sys.exit(exit_code)
Exemplo n.º 11
0
def main():
    """ Main program 
    """
    logging_basic_config('DEBUG')
    logger.info('Started example')

    # define some local variables
    lst = range(-5, 5) 
    b = True
    i = 555 
    f = 6.2 
    c = 3.2j - 0.1
    m = -4
    n = None
    s = '44'
    z = 'zonk'
            
    exit_code = my_browse(locals(),  
                          show_callable_attributes=False,
                          show_special_attributes=False)

    logging.info('Done example')
    sys.exit(exit_code)