[Python-Dev] Import and unicode: part two

Toshio Kuratomi a.badger at gmail.com
Thu Jan 20 20:27:43 CET 2011


On Thu, Jan 20, 2011 at 01:43:03PM -0500, Alexander Belopolsky wrote:
> On Thu, Jan 20, 2011 at 12:44 PM, Toshio Kuratomi <a.badger at gmail.com> wrote:
> > .. My examples that you're replying to involve two "properly
> > configured" OS's.  The Linux workstations are configured with a UTF-8
> > locale.  The Windows OS's use wide character unicode.  The problem occurs in
> > that the code that one of the parties develops (either the students or the
> > professors) is developed on one of those OS's and then used on the other OS.
> >
> 
> I re-read your posts on this thread, but could not find the examples
> that you refer to.
>
Examples might be a bad word in this context.  Victor was commenting on the
two brainstorm ideas for alternatives to ascii-only that I had.  One was:

* Mandate that every python module on a platform has a specific encoding
  (rather than the value of the locale)

The other was:
* allow using byte strings for import

I think that both ideas are inferior to mandating that every python module
filename is ascii.  From what I'm getting from Victor's posts is that he, at
least, considers the portability problems to be ignorable because dealing
with ambiguous file name encodings is something that he'd like to force
third party tools to deal with.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110120/f1501173/attachment.pgp>


More information about the Python-Dev mailing list