[ python-Bugs-989066 ] profile.run raises TypeError encountering a list

SourceForge.net noreply at sourceforge.net
Mon Jul 12 15:31:39 CEST 2004


Bugs item #989066, was opened at 2004-07-11 17:28
Message generated for change (Comment added) made by mondragon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=989066&group_id=5470

Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Percivall (percivall)
Assigned to: Nick Bastin (mondragon)
Summary: profile.run raises TypeError encountering a list

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Nick Bastin (mondragon)
Date: 2004-07-12 09:31

Message:
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.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2004-07-12 08:47

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=989066&group_id=5470


More information about the Python-bugs-list mailing list