[issue25571] Improve the lltrace feature with the Py_Debug mode

2016-08-03 Thread A Kaptur
Changes by A Kaptur <allison.kap...@gmail.com>: -- nosy: +akaptur ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25571> ___ __

[issue24857] mock: Crash on comparing call_args with long strings

2015-09-03 Thread A Kaptur
A Kaptur added the comment: It looks like there's a related bug in call_args around __ne__: >>> m = Mock() >>> m(1,2) >>> m.call_args call(1, 2) >>> m.call_args == call(1,2) True >>> m.call_args != call(1,2) True Any reason not to define __ne__ as

[issue24857] mock: Crash on comparing call_args with long strings

2015-09-03 Thread A Kaptur
A Kaptur added the comment: Here's a simple patch + test for the original bug. I'll file the __ne__ question separately. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file40348/issue24857.patch ___ Pyt

[issue24997] mock.call_args compares as equal and not equal

2015-09-03 Thread A Kaptur
New submission from A Kaptur: mock.call_args can be both equal to and not equal to another object: >>> m = Mock() >>> m(1,2) >>> m.call_args call(1, 2) >>> m.call_args == call(1,2) True >>> m.call_args != call(1,2) True This appears t

[issue22146] Error message for __build_class__ contains typo

2014-08-05 Thread A Kaptur
New submission from A Kaptur: One of the error messages for __build_class__ has an extra underscore in the middle. -- files: build_class_typo.patch keywords: patch messages: 224874 nosy: akaptur priority: low severity: normal status: open title: Error message for __build_class__

[issue22008] Symtable's syntax warning should contain the word because

2014-07-18 Thread A Kaptur
New submission from A Kaptur: The symbol table's syntax error about unqualified exec is missing the word because. def foo(): ... exec a = 1 ... def bar(): ... print a ... File stdin, line 2 SyntaxError: unqualified exec is not allowed in function 'foo' it contains a nested

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread A Kaptur
A Kaptur added the comment: v2 of the patch incorporating the comments at http://bugs.python.org/review/21217/ -- Added file: http://bugs.python.org/file34882/issue21217-v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread A Kaptur
A Kaptur added the comment: v3 of patch, including misc/news update, docstring for function, and removing class decorator tests, since it sounds like those are better handled in http://bugs.python.org/issue1764286. -- Added file: http://bugs.python.org/file34885/issue21217-v3.patch

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread A Kaptur
A Kaptur added the comment: This patch adds tests demonstrating broken behavior inspect.getsource and inspect.getsourcelines of decorators containing lambda functions, and modifies inspect.getsourcelines to behave correctly. We use co_lnotab to extract line numbers on all objects with a code

[issue18036] How do I create a .pyc file? FAQ entry is out of date

2013-07-16 Thread A Kaptur
A Kaptur added the comment: Here is a suggestion for updated documentation in this section. I've added the description of __pycache__, included a very short description of what a .pyc file is, and moved the troubleshooting to the end of the section. I'm not sure whether the description

[issue16482] pdb.set_trace() clobbering traceback on error

2012-11-15 Thread A Kaptur
New submission from A Kaptur: pdb.set_trace() is overwriting the actual traceback when exiting with an error. See minimal recreation here: https://gist.github.com/4079971 -- messages: 175630 nosy: akaptur priority: normal severity: normal status: open title: pdb.set_trace() clobbering