From: Waylan L. <wa...@gm...> - 2009-01-28 19:38:50
|
Bah, this message didn't get copied to the list. Here it is: ---------- Forwarded message ---------- From: Waylan Limberg <wa...@gm...> Date: Wed, Jan 28, 2009 at 2:36 PM Subject: Re: [Python-markdown-discuss] XHTML or HTML? To: Marco Pantaleoni <mar...@gm...> On Wed, Jan 28, 2009 at 2:02 PM, Marco Pantaleoni <mar...@gm...> wrote: >> >> Any thoughts on this approach? > > what about using a python property > (http://docs.python.org/library/functions.html#property)? > This would allow to use a method (which can be overridden in derived > classes), keeping the > simpler assignment syntax. > Well, we could, except that property requires new-style classes - which python-markdown does not use. To be honest, I don't know why. Perhaps for historical reasons. Although, I'm not aware of any reason holding us back from changing that. Yuri, do you have any input here? Btw, I just committed and pushed the changes (less the property). So we now support HTML4 output. :-) -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |