<p dir="ltr"><br>
On 14 Sep 2014 01:33, "R. David Murray" <<a href="mailto:rdmurray@bitdance.com">rdmurray@bitdance.com</a>> wrote:<br>
><br>
> On Sat, 13 Sep 2014 21:06:21 +1200, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
> > On 13 Sep 2014 10:18, "Jeff Allen" <<a href="mailto:ja.py@farowl.co.uk">ja.py@farowl.co.uk</a>> wrote:<br>
> > > 4. I think (with Antoine) if Jython supported PEP-383 byte smuggling, it<br>
> > would have to do it the same way as CPython, as it is visible. It's not<br>
> > impossible (I think), but is messy. Some are strongly against.<br>
> ><br>
> > It may be worth trying *without* it (i.e. treat "surrogateescape" as<br>
> > equivalent to "strict" initially), and seeing how you go. The main purpose<br>
> > of surrogateescape in CPython 3 is to recreate the "arbitrary 8-bit data<br>
> > round trips work on POSIX" aspect of CPython 2, which doesn't apply in<br>
> > exactly the same way on Jython.<br>
> ><br>
> > Compared to the 8-bit vs 16-bit str discrepancy that exists in Python 2,<br>
> > "surrogateescape is equivalent to strict" seems like a relatively small<br>
> > discrepancy in behaviour.<br>
><br>
> That would totally break the email package.<br>
><br>
> It would of course be possible to rewrite email to not use surrogate<br>
> escape, but it is a seriously non-trivial undertaking.</p>
<p dir="ltr">That does indeed make for a compelling use case :)</p>
<p dir="ltr">Cheers,<br>
Nick.<br></p>
<p dir="ltr">><br>
> --David<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>