What is the difference between __str__ and __repr__? What is the difference between __str__ and __repr__? python python
CodeHunter
CodeHunter
Home
Code
Python
Javascript
Docker
Kubernetes
Linux
Flask
Django
Elasticsearch
React JS
Vue JS
Angular JS
Next
What is the difference between __str__ and __repr__?
python
magic-methods
repr
lien
python
Python __call__ special method practical example
python
methods
call
magic-methods
lien
python
Simple example of use of __setstate__ and __getstate__
python
serialization
magic-methods
lien
python
Why does Python use 'magic methods'?
python
magic-methods
lien
python
What is the __dict__.__dict__ attribute of a Python class?
python
class
metaprogramming
magic-methods
lien
python
Making a python user-defined class sortable, hashable
python
class
sorting
hash
magic-methods
lien
python
How does python numpy.where() work?
python
numpy
magic-methods
lien
python
Is it possible to overload Python assignment?
python
class
methods
assignment-operator
magic-methods
lien
python
Where is the Python documentation for the special methods? (__init__, __new__, __len__, ...)
python
class
magic-methods
lien
python
How to overload Python's __bool__ method? [duplicate]
python
methods
overloading
magic-methods
lien
python
Why does calling Python's 'magic method' not do type conversion like it would for the corresponding operator?
python
type-conversion
implicit-conversion
magic-methods
lien
python
Why does print(t) error if t.__str__() returns a non-string, but not print(t.__str__())?
python
type-conversion
typeerror
magic-methods
lien
python
Is there a way to return a custom value for min and max in Python?
python
python-3.x
magic-methods
lien
python
Python __index__ special method
python
magic-methods
lien
python
Paste a string as a variable, not as executable code snippet, into IPython
python
copy-paste
ipython
magic-methods
lien
python
Next
Recent Posts
How can I color dots in a xy scatterplot according to column value?
How to update a claim in ASP.NET Identity?
What does {0} mean when initializing an object?
Accessing members of items in a JSONArray with Java
How to log SQL statements in Spring Boot?
Powershell Get-WebSite name parameter is ignored
How to detect scroll to bottom of html element
Java synchronized method
How to test controllers with CodeIgniter?
Detect Visual Composer
Matplotlib: Specify format of floats for tick labels
Rails join a list of strings with commas and "and" before the last