[SciPy-Dev] unicode_literals for string arguments

Charles R Harris charlesr.harris at gmail.com
Fri Sep 26 15:36:30 EDT 2014


On Fri, Sep 26, 2014 at 4:44 AM, Andreas Hilboll <lists at hilboll.de> wrote:

> Hi,
>
> I'm running into some issues which I attribute to not using from
> __future__ import unicode_literals. I'm running Python2.7, and am
> writing a script where I use from __future__ import unicode_literals.
> This raises ValueErrors e.g. in stats.binned_statistic_2d:
>
>    ValueError: statistic not understood
>
> Do you see a way to prevent these errors from happening?  Obviously,
> scipy should work no matter if a Py2 user uses from __future__ import
> unicode_literals or not.
>
> Any ideas?
>

Yes, don't import unicode_literals ;) I didn't do that for the numpy code
base as it caused problems that I didn't want to deal with.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20140926/3908d628/attachment.html>


More information about the SciPy-Dev mailing list