[Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?
fredrik at pythonware.com
Sun Feb 12 13:37:57 CET 2006
Fredrik Lundh wrote:
> looks like
> help(aggdraw.Draw("RGB", (1, 1)))
> is enough to cause a crash.
it's type(Draw(...)) that doesn't work as it should. here's a patch:
@@ -1903,12 +1904,12 @@
-extern "C" void
+ DrawType.ob_type = PathType.ob_type = &PyType_Type;
+ PenType.ob_type = BrushType.ob_type = FontType.ob_type = &PyType_Type;
PyObject* g = PyDict_New();
More information about the Image-SIG