[all-commits] [llvm/llvm-project] 62bf6c: Use `bytes`, not `str`, to return C++ strings to P...

Chris Jones via All-commits all-commits at lists.llvm.org
Thu Apr 13 08:09:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62bf6c2e1083b8ddc698f5c8b99d6c3614c9b56a
      https://github.com/llvm/llvm-project/commit/62bf6c2e1083b8ddc698f5c8b99d6c3614c9b56a
  Author: Chris Jones <cjfj at deepmind.com>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M mlir/lib/Bindings/Python/IRAttributes.cpp
    M mlir/test/python/ir/attributes.py
    M mlir/test/python/ir/operation.py

  Log Message:
  -----------
  Use `bytes`, not `str`, to return C++ strings to Python.

`str` must be valid UTF-8, which is not guaranteed for C++ strings.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D147818




More information about the All-commits mailing list