New submission from exploiterv <exploit...@gmail.com>:
Python Returns NoneType when convert a string to a list and using sort() method # Example Code : >>> string = "python" >>> new_list = list(string.splitlines()) >>> new_list ['python'] >>> type(new_list) <class 'list'> >>> print(type(new_list.sort())) <class 'NoneType'> >>> new_list ['python'] >>> new = new_list.sort() >>> new >>> type(new) <class 'NoneType'> >>> ---------- assignee: terry.reedy components: IDLE, Interpreter Core messages: 346851 nosy: exploiterv, terry.reedy priority: normal severity: normal status: open title: Python Returns NoneType when convert a string to a list and using sort() method type: compile error versions: Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37443> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com