<br><br><div><span class="gmail_quote">On 9/3/06, <b class="gmail_sendername">Jim Jewett</b> &lt;<a href="mailto:jimjjewett@gmail.com">jimjjewett@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/1/06, Nick Coghlan &lt;<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>&gt; wrote:<br>&gt; Fredrik Lundh wrote:<br>&gt; &gt; today's Python supports &quot;locale aware&quot; 8-bit strings ...<br>&gt; &gt; to what extent should this be supported by Python 3000 ?
<br><br>&gt; Since all strings will be Unicode by then:<br><br>&gt;&nbsp;&nbsp;&gt;&gt;&gt; u&quot;едц&quot;.isalpha()<br>&gt; True<br><br>Two followup questions, then ...<br><br>(1)&nbsp;&nbsp;To what extent should python support files (including stdin,
<br>stdout) in local (non-unicode) encodings?&nbsp;&nbsp;(not at all, per-file,<br>settable global default?)</blockquote><div><br>I presume that Python's support of these  will not change from today's. I don't think that locale changes file decoding today, nor should it. After all, files are emailed from place to place all the time.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">(2)&nbsp;&nbsp;To what extent will strings have an opaque (or at least<br>on-demand) backing store, so that decoding/encoding could be delayed?
<br>(For example, Swedish text could be stored in single-byte characters,<br>and only converted to standard unicode on the rare occasions when it<br>met strings in an incompatible encoding.)</blockquote><div><br>I don't see this as particularly related to the locale issue either. It is being discussed in other threads under the name &quot;Polymorphic strings.&quot; Fredrik Lundh said:
<br><br>&quot;I think just delaying decoding would take us most of the way. &nbsp;the big<br>advantage of storage polymorphism is that you can avoid decoding and<br>encoding (and having to pay for the cycles and bytes needed for that) if
<br>you don't do have to.&quot;<br><br>I believe he is working on a prototype.<br><br>&nbsp;Paul Prescod<br><br></div></div>