Tag Archive


amateur astronomy awk bash b[e] supergiant cartoon conference convert evolved star exoplanet fedora figaro fits fun galaxy iraf large magellanic cloud latex linux lmc machine learning magellanic clouds massive star matplotlib meteor mypaper paper peblo photometry planet pro-am pyraf python red supergiant scisoft skinakas observatory small magellanic cloud smc spectroscopy starlink talk ubuntu university of crete video x-ray yellow hypergiant

Python’s readlines options

A very interesting post on the different ways readline can be used in Python:

> .readlines() : reads the whole file at once and creates a list of lines

> .readline() : reads one character at the time

> .xreadlines() : reads one line at a time (for large files).