This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: profile.run raises TypeError encountering a list
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: nbastin Nosy List: mwh, nbastin, simon.percivall
Priority: normal Keywords:

Created on 2004-07-11 21:28 by simon.percivall, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg21485 - (view) Author: Simon Percivall (simon.percivall) Date: 2004-07-11 21:28
def g():
    l = []
    l.append('hello')

import profile
profile.run("g()")

This code raises a TypeError in the latest Python 2.4
CVS build. It works in Python 2.3.4.
msg21486 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-07-12 12:47
Logged In: YES 
user_id=6656

Mondragon, I'm reasonably sure this is your fault :-) (revision 
1.55 if I'm not mistaken).

Was this change the application of a patch on SF?  If so, you 
should have mentioned the patch # in the checkin comment.
msg21487 - (view) Author: Nick Bastin (nbastin) * (Python committer) Date: 2004-07-12 13:31
Logged In: YES 
user_id=430343

This may actually have been introduced with a recent change to ceval 
that changed the argument type on C calls (also my fault.. :-)).  I'll take 
a look at it - also, we should probably try to cook up some sort of test 
for this problem.
msg21488 - (view) Author: Nick Bastin (nbastin) * (Python committer) Date: 2004-07-12 13:45
Logged In: YES 
user_id=430343

Broken by recent change to ceval.  Fixed in Lib/profile.py 1.57
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40542
2004-07-11 21:28:49simon.percivallcreate