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 pitrou
Recipients benjamin.peterson, pitrou
Date 2008-08-19.16:07:59
SpamBayes Score 0.0029192574
Marked as misclassified No
Message-id <1219162103.48aaeff749828@imp.free.fr>
In-reply-to <1219160525.52.0.218582324378.issue3601@psf.upfronthosting.co.za>
Content
(the fix is probably trivial, it involves dividing sys.maxsize by the number of
bytes of an unicode character, something like:

    width = sys.getsizeof("a") - sys.getsizeof("")
    alloc = lambda: u"a" * (sys.maxsize // width)
    self.assertRaises(MemoryError, alloc)
    self.assertRaises(MemoryError, alloc)

you can give it a try if you want ;-))
History
Date User Action Args
2008-08-19 16:07:59pitrousetrecipients: + pitrou, benjamin.peterson
2008-08-19 16:07:59pitroulinkissue3601 messages
2008-08-19 16:07:59pitroucreate