[Cython] Cython and Py2.6/Py2.7 format() differences: '{}' vs. '{0}'
Yury V. Zaytsev
yury at shurup.com
Fri Jul 5 14:40:51 CEST 2013
Hi,
I have just discovered that if one uses Python 2.7 constructs in the
code like
print("Object: {}".format(obj))
the resulting C++ module compiles just fine with both Python 2.6 and
Python 2.7 headers, however, in the former case, ValueError is raised at
runtime:
ValueError: zero length field name in format
Is this an intended behavior or Cython should have abstracted this
difference for me, and it can be considered a bug?
Thanks!
--
Sincerely yours,
Yury V. Zaytsev
More information about the cython-devel
mailing list