Re: Non-unicode file names

2018-08-08 Thread Marko Rauhamaa
INADA Naoki : > For Python 3.6, I think best way to allow arbitrary bytes on stdout is > using `PYTHONIOENCODING=utf-8:surrogateescape` environment variable. Good info! Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Non-unicode file names

2018-08-08 Thread INADA Naoki
Please use Python 3.7. Python 3.7 has several improvements on this area. * When PEP 538 or 540 is used, default error handler for stdio is surrogateescape * You can sys.stdout.reconfigure(errors='surrogateescape') For Python 3.6, I think best way to allow arbitrary bytes on stdout is using `PYTH

Re: Non-unicode file names

2018-08-08 Thread Cameron Simpson
On 09Aug2018 03:14, MRAB wrote: [...] Is it true that Unix filenames can contain control characters, e.g. \x07? Yep. They're just byte strings. You can't have \0 (NUL) because the API uses NUL terminated strings, and you can't use slash '/' in the filename components because that is the comp

Re: Non-unicode file names

2018-08-08 Thread MRAB
On 2018-08-09 01:14, Thomas Jollans wrote: On 09/08/18 01:48, MRAB wrote: On 2018-08-08 23:16, Thomas Jollans wrote: On *nix, file names are bytes. In real life, we prefer to think of file names as strings. How non-ASCII file names are created is determined by the locale, and on most systems th

Re: Non-unicode file names

2018-08-08 Thread Thomas Jollans
On 09/08/18 01:48, MRAB wrote: > On 2018-08-08 23:16, Thomas Jollans wrote: >> On *nix, file names are bytes. In real life, we prefer to think of file >> names as strings. How non-ASCII file names are created is determined by >> the locale, and on most systems these days, every locale uses UTF-8 an

Re: Non-unicode file names

2018-08-08 Thread MRAB
On 2018-08-08 23:16, Thomas Jollans wrote: On *nix, file names are bytes. In real life, we prefer to think of file names as strings. How non-ASCII file names are created is determined by the locale, and on most systems these days, every locale uses UTF-8 and everybody's happy. Of course this does

QOTW! (was: NLTK)

2018-08-08 Thread Cameron Simpson
On 08Aug2018 21:03, ma...@mail.com wrote: [...] It seems that I do not really need NLTK. split() will do me. [...] +1 QOTW Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Non-unicode file names

2018-08-08 Thread Thomas Jollans
On *nix, file names are bytes. In real life, we prefer to think of file names as strings. How non-ASCII file names are created is determined by the locale, and on most systems these days, every locale uses UTF-8 and everybody's happy. Of course this doesn't mean you'll never run into and old direct

Re: ImportError: libpoppler.so.76

2018-08-08 Thread MRAB
On 2018-08-08 20:17, jorge.conr...@cptec.inpe.br wrote: Hi, I downloade an example from: http://basemaptutorial.readthedocs.io/en/latest/clip.html from mpl_toolkits.basemap import Basemap from matplotlib.path import Path from matplotlib.patches import PathPatch import matpl

Re: NLTK

2018-08-08 Thread mausg
On 2018-08-07, Stefan Ram wrote: > Steven D'Aprano writes: >>In natural language, words are more complicated than just space-separated >>units. Some languages don't use spaces as a word delimiter. > > Even above, the word »units« is neither directly preceded > nor directly followed by a spac

ImportError: libpoppler.so.76

2018-08-08 Thread jorge . conrado
Hi, I downloade an example from: http://basemaptutorial.readthedocs.io/en/latest/clip.html from mpl_toolkits.basemap import Basemap from matplotlib.path import Path from matplotlib.patches import PathPatch import matplotlib.pyplot as plt from osgeo import gdal import numpy import s

Looking for feedback from developers...

2018-08-08 Thread Rachel Selkirk
Hi Everyone! I’ve been working on a free product that I really think could help out this community. No one likes stopping development to fix a build that broke from changing upstream dependencies. I’ve created a tool to deal with this, and I’m looking for beta users and some feedback from actual de

[ANN] txkube 0.3.0

2018-08-08 Thread Jean-Paul Calderone
Hello all, I'm pleased to announce a new release of txkube, a Twisted-based library for interacting with Kubernetes using the HTTP API. The big news for this release is support for Python 3.6. Also included is support for multiple configuration files in the KUBECONFIG environment variable which

Re: How to make python pick up my new-and-shiny openssl shared object

2018-08-08 Thread Fetchinson . via Python-list
On 8/8/18, Christian Heimes wrote: > On 2018-08-08 00:07, Fetchinson . via Python-list wrote: >> The highest version of openssl available on my system is 1.0.0 which >> is not good enough for pip these days (or github for that matter). So >> I've installed 1.1.0 to a custom location /home/fetch/op