[reportlab-users] wouldn't it be interesting...

Ian Sparks reportlab-users@reportlab.com
Wed, 12 Feb 2003 08:41:40 -0500


>>well, it's probably a bad example<<

Are there any good examples? Is there any use for this besides creating =
code that is harder to read?

-----Original Message-----
From: Jerome Alet [mailto:alet@librelogiciel.com]
Sent: Tuesday, February 11, 2003 5:07 PM
To: reportlab-users@reportlab.com
Subject: [reportlab-users] wouldn't it be interesting...


Hi there,

wouldn't it be interesting to make all canvas methods which
currently return nothing (None) return self instead ?

this would allow things like

canvas.saveState().scale(0.5,0.5).drawString(10,10, =
"Hello").restoreState()
=20
well, it's probably a bad example but you get the point,
this would work ad nauseam.

I don't need this. It's only for fun, but maybe this could
prove to be useful, and I can dedicate the time to do the
modifications.

Any comments ?

Jerome Alet
_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users