Message70992
| Author | georg.brandl |
|---|---|
| Recipients | georg.brandl, rupole |
| Date | 2008-08-10.18:47:23 |
| SpamBayes Score | 4.6389163e-05 |
| Marked as misclassified | No |
| Message-id | <1218394045.18.0.721925000397.issue3537@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The problem is that PyDict_New doesn't reinitialize the fields of a dict from the free list when the number of entries is zero. For a preconstructed dict (like created by BUILD_MAP) of size >=8, however, there will be an allocated ma_table and ma_mask will be 16-1, not 8-1. I propose the attached patch. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-08-10 18:47:25 | georg.brandl | set | recipients: + georg.brandl, rupole |
| 2008-08-10 18:47:25 | georg.brandl | set | messageid: <1218394045.18.0.721925000397.issue3537@psf.upfronthosting.co.za> |
| 2008-08-10 18:47:24 | georg.brandl | link | issue3537 messages |
| 2008-08-10 18:47:24 | georg.brandl | create | |