Skip to content

Commit 28ba57e

Browse files
authored
Merge pull request #5351 from apple/dl/python-use-repr-over-str
[lldb] Implement python __repr__
2 parents 72191f7 + 97bd6f1 commit 28ba57e

File tree

6 files changed

+457
-465
lines changed

6 files changed

+457
-465
lines changed

lldb/bindings/macros.swig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%define STRING_EXTENSION_LEVEL(Class, Level)
22
%extend {
3-
std::string lldb:: ## Class ## ::__str__(){
3+
std::string lldb:: ## Class ## ::__repr__(){
44
lldb::SBStream stream;
55
$self->GetDescription (stream, Level);
66
const char *desc = stream.GetData();
@@ -15,7 +15,7 @@
1515

1616
%define STRING_EXTENSION(Class)
1717
%extend {
18-
std::string lldb:: ## Class ## ::__str__(){
18+
std::string lldb:: ## Class ## ::__repr__(){
1919
lldb::SBStream stream;
2020
$self->GetDescription (stream);
2121
const char *desc = stream.GetData();

0 commit comments

Comments
 (0)