New submission from Hassan Mahroof: I am a student @ Burnley College and we were learning how to use the .write(), .close(), .readlines() and .sort().
I have a list of names within a text file which I am trying sort, These are random names generated using my Random Mind. However, when the sorted text file is created, what seems to be under certain circumstances with my list only (or words similar, This bug did not occur within my whole class till I stumbled upon it) it seems to instead of writing each term to seperate lines, it seems to connect two of the words (in this case names) on the same line. I have tried to find a pattern in this madness however being the rookie student I am I can only seem to break things aha. I have attached the 2 files which I am using and Hopefully someone can correct this cause I am confused. This is a list of the names: Robertas Hassan Bob Connor Camera Billy Maz Richard Mo ---------- components: IDLE files: SortFile2.py messages: 257644 nosy: Hassan Mahroof priority: normal severity: normal status: open title: .sort() Causing Strings to Be Listed on the same line type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file41520/SortFile2.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26028> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com