Re: Python read text file columnwise

2019-01-15 Thread Juris __
from standard library: import csv csv_reader = csv.reader(file, dialect="excel-tab") for row in csv_reader: # do something with record data which is conveniently parsed to list print(row) ['2018-05-31', '16:00:00', '28.90', '81.77', '4.3'] ... ['2018-06-29', '00.42:00', '32.20', '104.61', '4.8'] BR, Juris -- https://mail.python.org/mailman/listinfo/python-list

Tracemalloc overhead when profiling

2019-01-14 Thread Juris __
cript is 72MiB (credible since tracemalloc reports 60.6MiB allocated in hot spot). But then when tracemalloc is tracing script uses almost 4x memory e.g. 280MiB. Is this expected? Any other tools for memory profiling you can recommend? Running Python 3.7.2 on x86_64 Linux system. BR, Juris --