Changes between Initial Version and Version 1 of Ticket #21442, comment 7


Ignore:
Timestamp:
09/08/16 06:03:43 (5 years ago)
Author:
jmantysalo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21442, comment 7

    initial v1  
    11This was an interesting case. Basic "bug" is just a feature, and can be seen with
    22
     3{{{
    34sage: g = Graph(42)
    45sage: for x in g.depth_first_search(0, neighbors=lambda v: junk(v)):
    56....:     print(x)
     7}}}
    68
    79which will output `0` and only after that gives error message. So I really must re-check my code and make a doctest that will catch error like this one.