[issue22936] traceback module has no way to show locals

2015-08-25 Thread Robert Collins

Robert Collins added the comment:

This itself is fixed.

--
resolution:  - fixed
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-20 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +n

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins

Robert Collins added the comment:

And the unittest patch.

--
Added file: http://bugs.python.org/file38348/issue-22936-5.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


Added file: http://bugs.python.org/file38349/issue-22936-5.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins

Robert Collins added the comment:

No worries. BTW there is one more patch needed to close this issue - adding the 
feature to unittest. I'm working that up now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


Removed file: http://bugs.python.org/file38348/issue-22936-5.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Mark Lawrence

Mark Lawrence added the comment:

msg237320 ...so I'm *NOT* entirely convinced...? :)

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Ezio Melotti

Ezio Melotti added the comment:

In the patch you made some args kw-only.
Isn't that backward incompatible in case someone was passing them by position?

--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Nick Coghlan

Nick Coghlan added the comment:

It's only the new APIs just introduced in issue #17911 that changed to kwonly 
arguments.

We missed that they should really be kwonly in the original review, but it 
become more obvious in this patch, as it added a second feature toggle to 
indicate whether or not to capture the locals.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Ezio Melotti

Ezio Melotti added the comment:

You are right -- I didn't notice the versionadded in the docs.
Sorry for the noise.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b4a26b28f5b3 by Robert Collins in branch 'default':
Issue #22936: Allow showing local variables in unittest errors.
https://hg.python.org/cpython/rev/b4a26b28f5b3

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-05 Thread Nick Coghlan

Nick Coghlan added the comment:

I just filed issue #23597 as a potential further follow-up to this, which would 
be to also add support for displaying local variables directly to the logging 
module.

However, that has some additional security implications, so I'm entirely 
convinced it's a good idea yet. See the new RFE for more details.

--
dependencies: +traceback: add a new thin class storing a traceback without 
storing local variables

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-04 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


Removed file: http://bugs.python.org/file38332/issue-22936-3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-04 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


Added file: http://bugs.python.org/file38333/issue-22936-3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-04 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


Added file: http://bugs.python.org/file38336/issue-22936-4.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-04 Thread Robert Collins

Robert Collins added the comment:

And now updated to HEAD as 17911 has been committed.

--
Added file: http://bugs.python.org/file38332/issue-22936-3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Latest patch (issue-22936-4.patch) looks good to me!

--
nosy: +ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-03-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 50741316dd3a by Robert Collins in branch 'default':
Issue #22936: Make it possible to show local variables in tracebacks.
https://hg.python.org/cpython/rev/50741316dd3a

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-02-03 Thread Robert Collins

Robert Collins added the comment:

updated with the latest 17911 patch basis.

--
Added file: http://bugs.python.org/file38008/issue-22936-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2015-01-26 Thread Robert Collins

Robert Collins added the comment:

First cut implementation. I'm sure there is lots we can add, but this will make 
things nicer in and of itself.

Thanks for the pointer to cgitb, I've skimmed it and its definitely much more 
comprehensive. I'm not entirely sure about the best way to glue it and the new 
traceback API together; or even if thats needed.

--
keywords: +patch
Added file: http://bugs.python.org/file37875/issue-22936-1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2014-11-28 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


--
nosy: +cvrebert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2014-11-26 Thread Guido van Rossum

Guido van Rossum added the comment:

Check out the cgitb stdlib module.

--
nosy: +gvanrossum

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2014-11-24 Thread Robert Collins

New submission from Robert Collins:

From https://github.com/testing-cabal/testtools/issues/111 - any code that is 
data dependent can be hard to diagnose from a backtrace alone. Many unittest 
and server environments address this by doing custom tracebacks that include 
locals.

To address this in unittest, we need to add a similar capacity to traceback, 
and then use it from unittest (as we can't just depend on a module from PyPI in 
the stdlib).

--
components: Library (Lib)
messages: 231628
nosy: rbcollins
priority: normal
severity: normal
status: open
title: traceback module has no way to show locals
versions: Python 3.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2014-11-24 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


--
type:  - enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22936] traceback module has no way to show locals

2014-11-24 Thread Robert Collins

Robert Collins added the comment:

See http://bugs.python.org/issue22936 for the unittest aspect of this.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com