[issue2786] Names in traceback should have class names, if they're methods

2015-02-02 Thread Daniil Bondarev

Daniil Bondarev added the comment:

Made a straightforward patch for this. Probably not that pretty, so suggestions 
are welcome.

Note that some function names will become pretty long in exceptions:

>>> class A:
... def __init__(self):
... def f():
... pass
... f(1,2,3)
...
>>> A()
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 5, in __init__
TypeError: A.__init__..f() takes 0 positional arguments but 3 were given

Passing UTs from lastest snapshot.

--
keywords: +patch
nosy: +xonatius
Added file: http://bugs.python.org/file37994/full_names.patch

___
Python tracker 
<http://bugs.python.org/issue2786>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2786] Names in traceback should have class names, if they're methods

2015-02-05 Thread Daniil Bondarev

Daniil Bondarev added the comment:

As long as you think It fits into your issue, I'm ok with adding this patch to 
it (: it's different files, so no conflicts. Should I just add this patch to 
your ticket?

--

___
Python tracker 
<http://bugs.python.org/issue2786>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-07 Thread Daniil Bondarev

Daniil Bondarev added the comment:

As suggested adding patch from http://bugs.python.org/issue2786 which prints 
qualnames in function call exceptions.

e.g:

>>> class A:
... def __init__(self):
... pass
>>> A(1)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: A.__init__() takes 1 positional argument but 2 were given

--
nosy: +xonatius
Added file: http://bugs.python.org/file38034/qualname_in_exceptions.patch

___
Python tracker 
<http://bugs.python.org/issue17911>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2786] Names in traceback should have class names, if they're methods

2015-03-21 Thread Daniil Bondarev

Daniil Bondarev added the comment:

issue17911 was submitted. I pulled latest updates and rechecked that "./python 
-m test -uall" passing with the same patch.

--

___
Python tracker 
<http://bugs.python.org/issue2786>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2786] Names in traceback should have class names, if they're methods

2015-04-12 Thread Daniil Bondarev

Daniil Bondarev added the comment:

Addrressed feedback: splitted long line in multiple in tests.

--
Added file: http://bugs.python.org/file38904/full_names.patch

___
Python tracker 
<http://bugs.python.org/issue2786>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com