One liners are cool. Personally however, I would not promote one liners in Python. Python code is meant to be read. Cryptic coding is in perl's world.
Code below is intuitive and almost a three year old would understand. for line in open('C:\\switches.txt'): print line.rstrip() BTW, if the file is huge, one may want to consider using open('c:\\switches.txt', 'rb') instead. -- http://mail.python.org/mailman/listinfo/python-list