[issue21625] Make help() beginner helpful when no PAGER or LESS variable
Nagarajan added the comment: I would request us to think about a couple more options while this is under consideration... Do we want to also add the flags -X and -F to the less options? The -X flag gets less to show its output inline, instead of a separate screen. The advantage here is that users can now see the last viewed help page right above the prompt even after quitting help. It helps immensely to be able to see the help and write statements based on the help. The minor downside is that the last statements typed on the python prompt have now scrolled farther up. The -F (or --quit-if-one-screen) flag exits helps automatically if the help contents fit less than one screen-full. This is only useful when used in conjunction with the -X flag. If we do decide to use the -X flag, then this flag becomes an obvious choice. If we do choose to use these flags, the less command now becomes less "-P?e(END) .(q to exit help) " -X --quit-if-one-screen --quit-at-eof -- nosy: +nagarajan ___ Python tracker <https://bugs.python.org/issue21625> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40081] List sorting
New submission from Sivasundar Nagarajan : Good day. Hope you are safe and wish the same with the present situation. Need you help please in understanding the below function of Python. Steps - 1. tried assigning the below values in the list and named it as a 2.if I print, it prints in the same sequence. 3.Tried assigning it to b by the command a.sort() 4.Tried printing b and it gave null. 5.But printed a now, and the values were sorted. Please help me understand if we have any logic with in a list to sort the values after an iteration. Please apologize if I had missed some basics and uncovered it. >>> a = [1,4,3,2,4,5,3,2] >>> a [1, 4, 3, 2, 4, 5, 3, 2] >>> print (a) [1, 4, 3, 2, 4, 5, 3, 2] >>> b = a.sort() >>> b >>> print (a) [1, 2, 2, 3, 3, 4, 4, 5] >>> -- assignee: terry.reedy components: IDLE messages: 365129 nosy: Sivasundar Nagarajan, terry.reedy priority: normal severity: normal status: open title: List sorting type: resource usage versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue40081> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31598] pyping 0.0.5 package crashed on ZeroDivisionError: float division by zero
New submission from Saravanan Nagarajan: r = pyping.ping(hostip) File "build/bdist.linux-x86_64/egg/pyping/core.py", line 426, in ping return p.run(count) File "build/bdist.linux-x86_64/egg/pyping/core.py", line 288, in run self.print_exit() File "build/bdist.linux-x86_64/egg/pyping/core.py", line 208, in print_exit lost_rate = float(lost_count) / self.send_count * 100.0 ZeroDivisionError: float division by zero -- components: Extension Modules messages: 303066 nosy: saravanan1987 priority: normal severity: normal status: open title: pyping 0.0.5 package crashed on ZeroDivisionError: float division by zero type: crash versions: Python 2.7 ___ Python tracker <https://bugs.python.org/issue31598> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com