Victor Stinner <victor.stin...@haypocalc.com> wrote: > Yes, I wrote if (PyUnicode_READY(foo)), but I agree that it is confusing > when you read the code, especially because we have also a > PyUnicode_IS_READY(foo) macro! > > if (!PyUnicode_READY(foo)) is not better, also because of > PyUnicode_IS_READY(foo). > > I prefer PyUnicode_IS_READY(foo) < 0 over PyUnicode_IS_READY(foo) == -1.
Do you mean PyUnicode_READY(foo) < 0? I also prefer that idiom. Stefan Krah _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com