[reportlab-users] Hebrew Support Patch

Tim Roberts timr at probo.com
Fri Jun 5 13:06:01 EDT 2009


Marius Gedminas wrote:

> Old-style classes FTW.

>

> isinstance(line, (FragLine, ParaLines)) should work, and is better style

> anyway.

>


Thank you for this. I knew the concept, but brain didn't come up with
the right syntax and I was too lazy to confirm it. This solution has
the added benefit that it will work for classes that DERIVE from
FragLine and ParaLines, something that the "__class__.__name__ in
('xxx','yyy')" solution does not.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list