Module Expr Str Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Num While CompareLt Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore Call NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Based on code from Python Recipes
http://code.activestate.com/recipes/499379-groupbysorted/
Licensed under the PSF License (http://docs.python.org/2/license.html)
 N/A collections peekable N/A object N/A __init__ N/A N/A self iterable N/A N/A N/A N/A self _iterable N/A iter iterable N/A N/A self _cache N/A N/A collections deque N/A __iter__ N/A N/A self N/A N/A N/A self N/A _fillcache N/A N/A self n N/A N/A N/A N/A n None N/A N/A n 1 N/A N/A N/A len N/A self _cache n N/A N/A N/A N/A N/A self _cache append N/A N/A N/A self _iterable next N/A next N/A N/A self n N/A None N/A N/A N/A N/A self _fillcache n N/A N/A n None N/A N/A result N/A N/A N/A self _cache popleft N/A N/A result N/A N/A N/A N/A self _cache popleft N/A i N/A range n N/A result N/A peek N/A N/A self n N/A None N/A N/A N/A N/A self _fillcache n N/A N/A n None N/A N/A result N/A N/A self _cache N/A 0 N/A N/A result N/A N/A N/A self _cache N/A i N/A i N/A range n N/A result N/A N/A