From 520d8cea9e82a5f104894ca5828784163e093f91 2011-10-04 17:46:53 From: Thomas Kluyver Date: 2011-10-04 17:46:53 Subject: [PATCH] Set default session parameter for HistoryManager.get_range() --- diff --git a/IPython/core/history.py b/IPython/core/history.py index 024aa9d..0b23604 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -396,7 +396,7 @@ class HistoryManager(HistoryAccessor): line = input_hist[i] yield (0, i, line) - def get_range(self, session, start=1, stop=None, raw=True,output=False): + def get_range(self, session=0, start=1, stop=None, raw=True,output=False): """Retrieve input by session. Parameters