Guido van Rossum added the comment:
I decided to abandon this project and close the issue as wontfix.
--
resolution: - wont fix
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
And adding __slots__ to a namedtuple subclass doesn't work.
Are you sure? I do it all the time.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19146
Guido van Rossum added the comment:
Well this is what I get:
$ python3
Python 3.4.0a1+ (default:41de6f0e62fd+, Aug 27 2013, 18:44:07)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type help, copyright, credits or license for more information.
from collections import
Antoine Pitrou added the comment:
Well this is what I get:
$ python3
Python 3.4.0a1+ (default:41de6f0e62fd+, Aug 27 2013, 18:44:07)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type help, copyright, credits or license for more information.
from collections import
Changes by Guido van Rossum gu...@python.org:
--
stage: - patch review
type: - enhancement
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19146
___
New submission from Guido van Rossum:
The traceback module is driving me nuts. It has some handy helpers to extract
info about a traceback or a full stack without formatting them, but (a) these
are _internal, and (b) they don't return the frame object as part of the
information, so code that
Serhiy Storchaka added the comment:
You forgot a patch.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19146
___
___
Guido van Rossum added the comment:
Sigh. Here it is.
--
keywords: +patch
Added file: http://bugs.python.org/file31946/TB.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19146
___
Changes by Claudiu.Popa pcmantic...@gmail.com:
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19146
___
___
Python-bugs-list
STINNER Victor added the comment:
It adds extract_tb_ex() and extract_stack_ex() functions ...
I don't like _ex suffixes, it's not future proof if we need to add another
function later.
You may rename them using _iter suffix and return an iterator instead of a
list. Such idea was also
Guido van Rossum added the comment:
I don't like _ex suffixes, it's not future proof if we need to add
another function later.
Me neither, but you can't change a function that returns a list of 4-tuples
into a function that returns a list of 5-tuples without breaking existing
code. IIRC for
Claudiu.Popa added the comment:
I already thought of that, but that doesn't work: the iterator version
would return the stack in the wrong order (note the .reverse() call in the
code).
Then, couldn't this:
stack = list(_extract_stack_iter(_get_stack(f), limit=limit))
Guido van Rossum added the comment:
No, reversed() doesn't work on iterators.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19146
___
___
Serhiy Storchaka added the comment:
Me neither, but you can't change a function that returns a list of 4-tuples
into a function that returns a list of 5-tuples without breaking existing
code. IIRC for struct and time tuples we created a hack in C where we
return something that behaves like
Guido van Rossum added the comment:
Nice. However it will take up a lot more space, because now there's an instance
dict. (And adding __slots__ to a namedtuple subclass doesn't work.) I'll have
to think about whether I care about the extra space.
--
15 matches
Mail list logo