[issue20888] tracemalloc: add a get_line() method to Trace and Frame classes

2014-03-13 Thread STINNER Victor
STINNER Victor added the comment: Ok, I prefer to develop this feature is tools based on tracemalloc and wait later to add this feature if it is still needed. -- resolution: -> postponed status: open -> closed ___ Python tracker

[issue20888] tracemalloc: add a get_line() method to Trace and Frame classes

2014-03-11 Thread Georg Brandl
Georg Brandl added the comment: The policy is clear, no API additions in micro releases (the only exceptions should be made for security issues). -- nosy: +georg.brandl versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue20888] tracemalloc: add a get_line() method to Trace and Frame classes

2014-03-11 Thread STINNER Victor
STINNER Victor added the comment: The method name should be "get_line", not "getline", to conform to the PEP 8. It's not very useful to add an helper to the Traceback, it's more interesting to add it to the Trace class. So linecache.getline(trace.traceback[0].filename, trace.traceback[0].linen