<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span style="font-family: monospace; font-size: 12px; color: rgb(24, 24, 24); line-height: 18px; ">Line 31 (in Pastebin): _STYLE_CODES = <span style="color: rgb(0, 128, 0); ">tuple</span><span style="color: black; ">(</span><span style="color: rgb(72, 61, 139); ">"% { $"</span>.<span style="color: black; ">split</span><span style="color: black; ">(</span><span style="color: black; ">)</span><span style="color: black; ">)</span></span><div>
<font face="monospace" size="3"><span style="font-size: 12px; line-height: 18px; "><br></span></font></div><div><span style="color: rgb(24, 24, 24); "><span style="color: black; "></span></span><font face="monospace" size="3"><span style="font-size: 12px; line-height: 18px; ">Is this really necessary? Why not</span></font></div>
<div><font face="monospace" size="3"><span style="font-size: 12px; line-height: 18px; "><span style="color: rgb(24, 24, 24); ">_STYLE_CODES = </span><font color="#008000">('</font><span style="color: rgb(72, 61, 139); ">%', '{', '$')</span></span></font></div>
<div><font face="monospace" size="3"><span style="font-size: 12px; line-height: 18px; "><span style="color: rgb(72, 61, 139); "><br></span></span></font></div></span><br><div class="gmail_quote">On Tue, Oct 26, 2010 at 1:15 PM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, Oct 26, 2010 at 9:08 PM, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
> On Tue, Oct 26, 2010 at 12:28 AM, Vinay Sajip <<a href="mailto:vinay_sajip@yahoo.co.uk">vinay_sajip@yahoo.co.uk</a>> wrote:<br>
>> Comments welcome. Assuming there are no strong objections asking for reversion<br>
>> of this change, I'll publicise to the wider community in a few days.<br>
><br>
> It strikes me as a solid, pragmatic solution to a thorny problem.<br>
><br>
> Looking at your checkin though, I wonder if it might be worth<br>
> implementing some little formatting style classes to get rid of the<br>
> if/elif chains from the Formatter code. Something like:<br>
<br>
</div>Some syntax highlighting may make that wall-o'-code a little easier to<br>
read: <a href="http://pastebin.com/SG0Qr3r5" target="_blank">http://pastebin.com/SG0Qr3r5</a><br>
<div><div></div><div class="h5"><br>
Cheers,<br>
Nick.<br>
<br>
--<br>
Nick Coghlan | <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a> | Brisbane, Australia<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/bostjan.mejak%40gmail.com" target="_blank">http://mail.python.org/mailman/options/python-dev/bostjan.mejak%40gmail.com</a><br>
</div></div></blockquote></div><br>