Message71140
| Author |
pitrou |
| Recipients |
amaury.forgeotdarc, barry, benjamin.peterson, donmez, gpolo, lemburg, loewis, pitrou, teoliphant |
| Date |
2008年08月14日.18:55:33 |
| SpamBayes Score |
1.7680706e-05 |
| Marked as misclassified |
No |
| Message-id |
<1218740131.5572.13.camel@fsol> |
| In-reply-to |
<1218739954.56.0.0790785488803.issue3139@psf.upfronthosting.co.za> |
| Content |
Le jeudi 14 août 2008 à 18:52 +0000, Martin v. Löwis a écrit :
> The patch is really trivial, and attached.
>
> Added file: http://bugs.python.org/file11114/refcount.diff
By the way, even without that patch, there is a memory leak:
Python 3.0b2+ (py3k, Aug 14 2008, 20:49:19)
[GCC 4.3.1 20080626 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, codecs
>>> b = bytearray()
>>> sys.getrefcount(b)
2
>>> codecs.ascii_decode(memoryview(b))
('', 0)
>>> sys.getrefcount(b)
3 |
|