Ticket #650 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

transform "raise MemoryError" into "PyErr_NoMemory()"

Reported by: scoder Owned by: scoder
Priority: major Milestone: 0.14.1
Component: Code Generation Keywords:
Cc:

Description

raise MemoryError
raise MemoryError()

are not safe in the sense that they may fail to instantiate the exception (thus leading to a memory error ;-). They should be transformed into a call to PyErr_NoMemory().

See mailing list thread

 http://comments.gmane.org/gmane.comp.python.cython.user/2383?set_lines=100000

Change History

Changed 4 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from wishlist to 0.14.1

Changed 4 years ago by scoder

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 4 years ago by scoder

  • owner changed from somebody to scoder
  • status changed from reopened to new

Changed 4 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.