Module Expr Str Expr Str Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body Assign NameStore Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore NameLoad body If CompareGt NameLoad Num body AugAssignSub NameStore Num Continue Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num If CompareGtE NameLoad AttributeLoad NameLoad attr body Break
N/A N/A Save a subset of lines from an input file; start at offset and count n lines N/A default 100 lines starting from 0 N/A sys N/A argparse N/A parser N/A N/A argparse ArgumentParser description Save a subset of lines from the input file to the output file N/A N/A N/A parser add_argument input_file help path to input file N/A N/A N/A parser add_argument output_file help path to output file N/A N/A N/A parser add_argument -o --offset help line number to start from, default 0 type int default 0 N/A N/A N/A parser add_argument -l --lines help number of lines to write, default 100 type int default 100 N/A args N/A N/A parser parse_args N/A N/A N/A lines N/A int N/A N/A sys argv N/A 4 N/A N/A N/A IndexError N/A N/A lines 100 N/A i N/A open N/A args input_file N/A o N/A open N/A args output_file wb N/A offset N/A args offset N/A count 0 N/A line i N/A N/A N/A offset 0 N/A N/A offset 1 N/A N/A N/A N/A o write line N/A count 1 N/A N/A count N/A args lines N/A N/A