Message71436
(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 ;-)) |
|
Date |
User |
Action |
Args |
2008-08-19 16:07:59 | pitrou | set | recipients:
+ pitrou, benjamin.peterson |
2008-08-19 16:07:59 | pitrou | link | issue3601 messages |
2008-08-19 16:07:59 | pitrou | create | |
|