Warning

Most of the documentation was written prior to version 0.5 and needs to be updated. This work has now started for version 0.7 and we aim to have it completed before version 0.8 is available.

history()

Friendly keeps a record of all warnings and exceptions raised during an interactive session. We can get a list of these at any time using history().

[1]: history()
0. DeprecationWarning: Indiana, February 6, 1897
1. IndexError: list index out of range

Note that each recorded item is shown with an index, starting at 0. If we want Friendly to forget about the last recorded item, we can use history.pop(). If we want Friendly to remove one particular item, we can use history.pop(index). Finally, if we want Friendly to forget about all recorded items so far, we can use history.clear().