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.
| Author | matthew.fremont |
|---|---|
| Recipients | matthew.fremont, stromnov |
| Date | 2007年11月22日.00:18:14 |
| SpamBayes Score | 0.03843366 |
| Marked as misclassified | No |
| Message-id | <1195690695.21.0.153491607351.issue1269@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I hit the same issue, and I think the problem is that at line 515 in pstats.py add_callers() the two stats instead of adding them member-wise. As a result, each time add() is called, the number of stats associated with each func grows by 4. Then, when print_call_line() is called by print_callers() or print_callees(), there are "too many values to unpack" at line 417. This change to pstats.py modifies add_callers() to add the stats together instead of concatenating the tuples. 515c515 < new_callers[func] = caller + new_callers[func] --- > new_callers[func] = map(lambda x,y: x+y, caller + new_callers[func]) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年11月22日 00:18:15 | matthew.fremont | set | spambayes_score: 0.0384337 -> 0.03843366 recipients: + matthew.fremont, stromnov |
| 2007年11月22日 00:18:15 | matthew.fremont | set | spambayes_score: 0.0384337 -> 0.0384337 messageid: <1195690695.21.0.153491607351.issue1269@psf.upfronthosting.co.za> |
| 2007年11月22日 00:18:15 | matthew.fremont | link | issue1269 messages |
| 2007年11月22日 00:18:14 | matthew.fremont | create | |