Changes by A Kaptur :
--
nosy: +akaptur
___
Python tracker
<http://bugs.python.org/issue25571>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 to be a recen
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
_
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
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__
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 "", line 2
SyntaxError: unqualified exec is
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
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
<http://bugs.python.org/issue21
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
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 descr
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
11 matches
Mail list logo