Advertisement
Guest User

Untitled

a guest
May 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. >>> import TP3
  2. >>> c = TP3.Coral()
  3. >>> dir(c)
  4. ['__class__', '__cmp__', '__contains__', '__delattr__', '__delitem__', '__dict__', '__doc__', '__eq__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__str__', '__weakref__', 'agregarPeces', 'agregar_pez_ordenado_por_tamano', 'borrarPez', 'clear', 'color_plancton', 'copy', 'fromkeys', 'get', 'has_key', 'items', 'iteritems', 'iterkeys', 'itervalues', 'keys', 'mostrarEstadoCoral', 'peces', 'pop', 'popitem', 'prox', 'setdefault', 'turno', 'update', 'values']
  5. >>> c.agregarPeces(2)
  6. >>> c.mostrarEstadoCoral()
  7. DEBUG: nodo: 1,blanco 1
  8. DEBUG: total tama?o: 1
  9. DEBUG: nodo: 1,blanco 1
  10. DEBUG: nodo: 1,blanco 1
  11. DEBUG: total tama?o: 2
  12. DEBUG: nodo: 2,blanco 2
  13. Total tama?o 1: 2
  14. DEBUG: nodo: 2,blanco 2
  15. DEBUG: total tama?o: 1
  16. DEBUG: nodo: 2,blanco 2
  17. DEBUG: nodo: 2,blanco 2
  18. DEBUG: total tama?o: 2
  19. DEBUG: nodo: 3,blanco 3
  20. Total tama?o 2: 2
  21. DEBUG: nodo: 3,blanco 3
  22. DEBUG: total tama?o: 1
  23. DEBUG: nodo: 3,blanco 3
  24. DEBUG: nodo: 3,blanco 3
  25. DEBUG: total tama?o: 2
  26. DEBUG: nodo: None
  27. Traceback (most recent call last):
  28. File "<stdin>", line 1, in <module>
  29. File "TP3.py", line 149, in mostrarEstadoCoral
  30. print "DEBUG: nodo:",nodo,nodo.contenido.tamano
  31. AttributeError: 'NoneType' object has no attribute 'contenido'
  32. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement