[SciPy-Dev] unicode_literals for string arguments

Andreas Hilboll lists at hilboll.de
Fri Sep 26 06:44:53 EDT 2014


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?

Cheers,
  Andreas



More information about the SciPy-Dev mailing list