Hi,
My solution is:
if isinstance(data,pygame.Surface):
self.data = data.copy()
else:
self.data = copy.deepcopy(data)
On Fri, Aug 12, 2011 at 10:40 AM, Lenard Lindstrom <[email protected]> wrote:
> I am still partly asleep. I will file a bug report on Surface.subsurface
> failing to check if the surface is alive.
>
> >>> import pygame
> >>> s = pygame.Surface.__new__(pygame.**Surface)
> >>> ss = s.subsurface((0, 0, 0, 0))
> Fatal Python error: (pygame parachute) Segmentation Fault
> Aborted
>
Thanks. Though, why not make it so that the instant a surface dies, it
throws an exception? That would have been most helpful.
> Lenard
>
Ian