[issue44956] curses getch returns wrong value
New submission from Robert T McQuaid : This applies to Python 3.8 under Debian-11 Bullseye. Under curses getch should return the value of curses.KEY_B2 (350 decimal) when pressing the keypad 5. Instead it returns 574. The simple program following the signature block illustrates the problem. Robert T McQuaid 558 McMartin Road Mattawa Ontario P0H 1V0 phone: 705-744-6274 email: r...@fixcas.com # Put the following lines in a file bug.py # Run from a terminal with: python3 bug.py import curses as cs def report(stdscr): print('press the keypad 5') global result result=stdscr.getch() cs.initscr() cs.wrapper(report) print('KEY_B2 (decimal): '+str(cs.KEY_B2)) print('input decimal value: '+str(result)) -- components: Library (Lib) messages: 399917 nosy: arbor priority: normal severity: normal status: open title: curses getch returns wrong value versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue44956> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42681] mistake in curses documentation
New submission from Robert T McQuaid : The description of color_pair starts with curses.color_pair(color_number) It should be curses.color_pair(pair_number) -- assignee: docs@python components: Documentation messages: 383344 nosy: arbor, docs@python priority: normal severity: normal status: open title: mistake in curses documentation versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue42681> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6212] piped input
New submission from Robert T McQuaid r...@fixcas.com: # # Python 3.0.1 can read piped input when invoked with a # program name as the argument of the interpreter, but not # when invoked implicitly by the file extension. On # Windows xp the first command below runs successfully, the # second ends with a diagnostic: 'NoneType' object has no # attribute 'isatty' # # # dir | e:\python30\python test17.py # dir | test17.py # # import sys if sys.stdin.isatty(): pass -- components: IO messages: 88970 nosy: rtmq severity: normal status: open title: piped input type: behavior versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6212 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1210] imaplib does not run under Python 3
New submission from Robert T McQuaid: imaplib does not run under Python 3. The following two-line python program, named testimap.py, works when run from a Windows XP system shell prompt using Python 2.5.1, but fails with Python 3.0. It appears that the logic does not follow the distinction between characters and bytes in Python 3. import imaplib mail=imaplib.IMAP4(mail.rtmq.infosathse.com) e:\python25\python testimap.py e:\python30\python testimap.py 2f:syserr The last line produced the trace: Traceback (most recent call last): File testimap.py, line 10, in module mail=imaplib.IMAP4(mail.rtmq.infosathse.com) File e:\python30\lib\imaplib.py, line 184, in __init__ self.welcome = self._get_response() File e:\python30\lib\imaplib.py, line 962, in _get_response self._append_untagged(typ, dat) File e:\python30\lib\imaplib.py, line 800, in _append_untagged if typ in ur: TypeError: unhashable type: 'bytes' -- components: Library (Lib) messages: 56154 nosy: rtmq severity: normal status: open title: imaplib does not run under Python 3 type: crash versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1210 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1192] Python 3 documents crash Firefox
New submission from Robert T McQuaid: I downloaded python-3.0a1.msi for Windows XP and after install converted the documentation from chm format to html with the hh.exe utility in XP. The resulting files crashed Firefox version 2.0 (it slowly chokes to death in a dozen operations), but worked fine on Opera 9.21. -- components: Documentation messages: 56099 nosy: rtmq severity: minor status: open title: Python 3 documents crash Firefox type: behavior versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1192 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com