Author danielsh
Recipients danielsh
Date 2012-12-29.03:02:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356750149.18.0.966123919893.issue16808@psf.upfronthosting.co.za>
In-reply-to
Content
Currently inspect.stack() returns a list of 6-tuples.  I suggest to make it return a list of named tuples, so code that only needs one tuple element can get it by name.

Current behaviour:
% ./python -c 'import inspect; print(inspect.stack()[0])' 
(<frame object at 0x157fb38>, '<string>', 1, '<module>', None, None)

Suggested behaviour:
% ./python -c 'import inspect; print(inspect.stack()[0])'    
FrameInfo(frame=<frame object at 0xddab38>, filename='<string>', lineno=1, function='<module>', code_context=None, index=None)
History
Date User Action Args
2012-12-29 03:02:29danielshsetrecipients: + danielsh
2012-12-29 03:02:29danielshsetmessageid: <1356750149.18.0.966123919893.issue16808@psf.upfronthosting.co.za>
2012-12-29 03:02:29danielshlinkissue16808 messages
2012-12-29 03:02:29danielshcreate