[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s
Sam Kimbrel added the comment: Here's a patch that corrects col_offset for binops in both the ast module and in the compiler proper. I've incorporated Aivar's test into test_ast.py; if there are test suites for compile.c please let me know and I can add something there too. -- keywords: +patch nosy: +sam.kimbrel Added file: http://bugs.python.org/file34945/18374-binop-col-offset-with-test.diff ___ Python tracker <http://bugs.python.org/issue18374> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21263] test_gdb failures on os x 10.9.2
New submission from Sam Kimbrel: test_gdb fails under OS X 10.9.2 and gdb 7.6.1 (built with homebrew on Apple LLVM version 5.1 (clang-503.0.40)): FAIL: test_pycfunction (test.test_gdb.PyBtTests) Verify that "py-bt" displays invocations of PyCFunction instances -- Traceback (most recent call last): File "/Users/skimbrel/cpython/Lib/test/test_gdb.py", line 789, in test_pycfunction cmds_after_breakpoint=['bt', 'py-bt'], File "/Users/skimbrel/cpython/Lib/test/test_gdb.py", line 182, in get_stack_trace self.assertEqual(unexpected_errlines, []) AssertionError: Lists differ: ['No stack.', "Python Exception No frame is currently selected.: ", - 'Error occurred in Python command: No frame is currently selected.'] == FAIL: test_threads (test.test_gdb.PyBtTests) Verify that "py-bt" indicates threads that are waiting for the GIL -- Traceback (most recent call last): File "/Users/skimbrel/cpython/Lib/test/test_gdb.py", line 736, in test_threads self.assertIn('Waiting for the GIL', gdb_output) AssertionError: 'Waiting for the GIL' not found in 'Breakpoint 1 at 0x1001c78f0: file Python/bltinmodule.c, line 991.\n[New Thread 0x170b of process 41733]\n[New Thread 0x1803 of process 41733]\n[New Thread 0x1903 of process 41733]\n[New Thread 0x1a03 of process 41733]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:991\n991\treturn PyLong_FromVoidPtr(v);\n\nThread 5 (Thread 0x1a03 of process 41733):\nTraceback (most recent call first):\n\nThread 4 (Thread 0x1903 of process 41733):\nTraceback (most recent call first):\n\nThread 3 (Thread 0x1803 of process 41733):\nTraceback (most recent call first):\n\nThread 2 (Thread 0x170b of process 41733):\nTraceback (most recent call first):\n\nThread 1 (Thread 0x1503 of process 41733):\nTraceback (most recent call first):\n File "", line 18, in \n' -- Ran 45 tests in 19.277s FAILED (failures=2) -- assignee: ronaldoussoren components: Macintosh, Tests messages: 216551 nosy: ronaldoussoren, sam.kimbrel priority: normal severity: normal status: open title: test_gdb failures on os x 10.9.2 versions: Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue21263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6490] os.popen documentation is probably wrong
Sam Kimbrel added the comment: Yes, I think that wording works a lot better. Thanks for the touch-up. -- ___ Python tracker <http://bugs.python.org/issue6490> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6490] os.popen documentation is probably wrong
Sam Kimbrel added the comment: Updated the patch as per Martin's notes in msg203483. -- nosy: +sam.kimbrel Added file: http://bugs.python.org/file34896/6490-os-popen-docs.diff ___ Python tracker <http://bugs.python.org/issue6490> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18401] Tests for pdb import ~/.pdbrc
Sam Kimbrel added the comment: Picked up Martin's patch and added docs, misc/NEWS entry, and a test for readrc=False behavior. -- nosy: +sam.kimbrel Added file: http://bugs.python.org/file34892/18401-pdb-readrc-kwarg-with-docs-and-tests.diff ___ Python tracker <http://bugs.python.org/issue18401> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21075] fileinput should use stdin.buffer for "rb" mode
Sam Kimbrel added the comment: Patch attached that checks for 'b' in self._mode and sets self._file to sys.stdin.buffer as appropriate. -- keywords: +patch nosy: +sam.kimbrel Added file: http://bugs.python.org/file34880/21075-fileinput-stdin.diff ___ Python tracker <http://bugs.python.org/issue21075> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17078] string.Template.safe_substitute hard-wires "braces" as {}
Sam Kimbrel added the comment: Florent Xicluna already fixed this in r84888 for 3.2+; I've tested that the patch applies cleanly to 2.7 and tests pass. Someone with the commit bit should transplant that commit into 2.7 as it does not change the public API to this module. -- nosy: +sam.kimbrel ___ Python tracker <http://bugs.python.org/issue17078> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20956] tokenize module claims tokenize.tokenize returns namedtuple, but it doesn't
Sam Kimbrel added the comment: Attached patch to update 2.7 docs to refer to the plain-old-tuple returned from generate_tokens(). -- keywords: +patch nosy: +sam.kimbrel Added file: http://bugs.python.org/file34841/20956-tokenize-docs.diff ___ Python tracker <http://bugs.python.org/issue20956> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10481] subprocess PIPEs are byte streams
Sam Kimbrel added the comment: I've created a patch that updates the docs to reflect the behavior of communicate() and check_output(), which is that both the "input" argument and stdin/stdout/stderr PIPEs will convert to and from strings when self.univeral_newlines is True and must be bytes otherwise. -- keywords: +patch nosy: +sam.kimbrel Added file: http://bugs.python.org/file34834/10481-subprocess-docs.diff ___ Python tracker <http://bugs.python.org/issue10481> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com