We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d8196 commit 7146d62Copy full SHA for 7146d62
include/pybind11/pybind11.h
@@ -509,7 +509,7 @@ class cpp_function : public function {
509
msg += "\nInvoked with: ";
510
auto args_ = reinterpret_borrow<tuple>(args);
511
for (size_t ti = overloads->is_constructor ? 1 : 0; ti < args_.size(); ++ti) {
512
- msg += static_cast<std::string>(pybind11::str(args_[ti]));
+ msg += pybind11::repr(args_[ti]);
513
if ((ti + 1) != args_.size() )
514
msg += ", ";
515
}
tests/test_issues.py
@@ -96,7 +96,7 @@ def test_str_issue(msg):
96
1. m.issues.StrIssue(arg0: int)
97
2. m.issues.StrIssue()
98
99
- Invoked with: no, such, constructor
+ Invoked with: 'no', 'such', 'constructor'
100
"""
101
102
0 commit comments