[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE:TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)



Hello, here a diff between the python3.6 and python3.7 modules once  updated via 2to3.


r:/tmp$ diff core*
174c174
<             for (variance, tag) in zip(variances, tags))
---
>             for (variance, tag) in list(zip(variances, tags)))
181c181
<             for (coords, value) in zip(transform, nom_values))
---
>             for (coords, value) in list(zip(transform, nom_values)))
946c946
<     ord(sup): normal for (normal, sup) in TO_SUPERSCRIPT.items()}
---
>     ord(sup): normal for (normal, sup) in iter(TO_SUPERSCRIPT.items())}
1776c1776
<             delta**2 for delta in self.error_components().values())))
---
>             delta**2 for delta in iter(self.error_components().values()))))


can python expert explain if this seems correct or not ?

thanks for your help.

Frederic

Reply to: