Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pstats add command raises unhandled exception #51644

Closed
exarkun mannequin opened this issue Nov 25, 2009 · 2 comments
Closed

pstats add command raises unhandled exception #51644

exarkun mannequin opened this issue Nov 25, 2009 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@exarkun
Copy link
Mannequin

exarkun mannequin commented Nov 25, 2009

BPO 7395
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2010-08-01.07:58:25.186>
created_at = <Date 2009-11-25.23:35:41.991>
labels = ['library']
title = 'pstats add command raises unhandled exception'
updated_at = <Date 2010-08-01.07:58:25.184>
user = 'https://bugs.python.org/exarkun'

bugs.python.org fields:

activity = <Date 2010-08-01.07:58:25.184>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2010-08-01.07:58:25.186>
closer = 'georg.brandl'
components = ['Library (Lib)']
creation = <Date 2009-11-25.23:35:41.991>
creator = 'exarkun'
dependencies = []
files = []
hgrepos = []
issue_num = 7395
keywords = []
message_count = 2.0
messages = ['95729', '112277']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'exarkun']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue7395'
versions = ['Python 2.6']

@exarkun
Copy link
Mannequin Author

exarkun mannequin commented Nov 25, 2009

$ python -m pstats
Welcome to the profile statistics browser.
% help

Documented commands (type help <topic>):
========================================
EOF add callees callers quit read reverse sort stats strip

Undocumented commands:
======================
help

% help add
Add profile info from given file to current statistics object.
% add client.prof
Traceback (most recent call last):
  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.6/pstats.py", line 690, in <module>
    browser.cmdloop()
  File "/usr/lib/python2.6/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.6/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.6/pstats.py", line 600, in do_add
    self.stats.add(line)
AttributeError: 'NoneType' object has no attribute 'add'
$

@exarkun exarkun mannequin added the stdlib Python modules in the Lib dir label Nov 25, 2009
@birkenfeld
Copy link
Member

Fixed in r83388.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant