StackOverflow Questions for Tag: repr

Ian Dalton
Ian Dalton

Reputation: 409

Java equivalent of Python repr()?

Score: 29

Views: 10220

Answers: 9

Read More
Mike T
Mike T

Reputation: 43612

How to get legacy NumPy repr in Sphinx docs examples?

Score: 0

Views: 35

Answers: 1

Read More
Casebash
Casebash

Reputation: 118742

What is the difference between __str__ and __repr__?

Score: 3785

Views: 1041127

Answers: 28

Read More
JadedTuna
JadedTuna

Reputation: 1823

In Python, what does '<function at ...>' mean?

Score: 10

Views: 22329

Answers: 4

Read More
mara004
mara004

Reputation: 2337

Possibility to implement multiple repr strategies?

Score: 1

Views: 68

Answers: 2

Read More
Marcel Preda
Marcel Preda

Reputation: 1205

implementing __repr__ on a class, if try to add function members, get "RecursionError: maximum recursion depth exceeded"

Score: 1

Views: 52

Answers: 1

Read More
nalzok
nalzok

Reputation: 16097

What does !r do in str() and repr()?

Score: 95

Views: 41335

Answers: 3

Read More
davipatti
davipatti

Reputation: 366

_repr_html_ not showing when custom __getattr__ implemented

Score: 1

Views: 56

Answers: 1

Read More
thr
thr

Reputation: 19476

Accessing Object Memory Address

Score: 232

Views: 275246

Answers: 12

Read More
Marco Sulla
Marco Sulla

Reputation: 15930

Raw strings and repr() are equivalent?

Score: 0

Views: 267

Answers: 0

Read More
Pratik Deoghare
Pratik Deoghare

Reputation: 37172

What is C# alternative to toString() [java] / __str__ [python]?

Score: 4

Views: 4001

Answers: 2

Read More
Philip
Philip

Reputation: 1901

How to get string name for QEvent in PyQt5

Score: 2

Views: 2574

Answers: 4

Read More

Iterate over PyQt enums and get string representation

Score: 2

Views: 1739

Answers: 1

Read More
Saphire
Saphire

Reputation: 1930

How to use __repr__ to create new object from it?

Score: 12

Views: 6169

Answers: 2

Read More
oakca
oakca

Reputation: 1568

SQLalchemy custom __repr__ different behaviour

Score: 0

Views: 153

Answers: 1

Read More
schesis
schesis

Reputation: 59108

Why do backslashes appear twice?

Score: 97

Views: 35851

Answers: 2

Read More
BoltzmannBrain
BoltzmannBrain

Reputation: 5372

Python __repr__ for all member variables

Score: 14

Views: 8946

Answers: 4

Read More
zecuse
zecuse

Reputation: 319

Can a dataclass field format its value for the repr?

Score: 7

Views: 3069

Answers: 2

Read More
Kerrick Staley
Kerrick Staley

Reputation: 1933

How can I get a repr of a DataFrame that is a valid Python expression?

Score: 1

Views: 773

Answers: 1

Read More
yetixhunting
yetixhunting

Reputation: 41

Descriptor Protocol with custom __str__() method in Python?

Score: 1

Views: 135

Answers: 1

Read More
PreviousPage 1Next