PASTE-IT!

Holding 576M in 38783 pastes. Meet us at #paste-it.net, OFTC!
Try our Mozilla Jetpack clipboard paster and our Chrome extension!
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python
# -*- coding: utf-8 -*-

# importo el módulo para el debugging
import pdb

def hello():
    print "Funcion: hello start"
    numero = 98
    print "numero es la variable con el contenido %d" % numero
    pdb.set_trace()
    print "Funcion: hello end"
    return True

def world():
    print "Funcion: world start"
    otro_numero = 32.5
    pdb.set_trace()
    if hello():
        print "la funcion hello() devolvió True"
    print "Funcion: world end"

if __name__ == "__main__":
    texto = "mi primer variable que se crea"
    texto = texto.split()
    for palabra in texto:
        capitalize = palabra.capitalize()
        pdb.set_trace()
    pdb.set_trace()     # hago que el programa frene en esta línea
    hello()
    pdb.set_trace()     # y en esta
    world()
    print "Final del programa de prueba"
Paste by
humitos,
882 day(s) ago
03:57 16-10-2007
in syntax