Level 10 : What is the purpose of the __repr__ method in Python?

Author: IndraD | Tags: class | 1736+ Python FAQs | Share
package-management | id-function | python-django | default-mutable-argument | file-handling | command-line-parsing | turtle | random-function | pickling-&-unpickling | memory-management | expression | operator-and | expand-tab | factorial-function | built-in-function | tuple-unpacking | keyword | data-structure | list-comprehension | datetime | parameter | mysql | input | syntax-error | complex | control-statement | collections | min-function | lambda-function | list-vs-tuple | method | matrix | math-copysign | variable | global | lists | collection | design-principle | type-conversion | memory | multiprocessing | decimal | built-in | while-else-loop | integer | identifier | generators | sum-function | async | print | sorted | list | function | sum() | class-and-inheritance | exception | init | typeerror | inherit | call | conversion | exception-handling | control-flow | regular-expression | list-comprehension | list-slicing | assert | global-variable | loops | string-manipulation | yield | multithreading | sys | split | mutable | function-argument | access-modifier | implementation | matrix-list-comprehension | generators-in-python | identity-operator | __init_subclass__ | match | dictionaries | list-method | raise | while-loop | join | classes | virtual-environment | regex | functions | installation | library | zfill-function | version | swapping | staticmethod | scientific-notation | python | basic | lambdas | format | pandas | matplotlib | mathematical-function | for | generator | list-operation | heap-memory | file-handling | head-and-tail | mapping-function | namespace | precedence | syntax | fabs-function | choice | return-statement | context-manager | encapsulation | else-statement | while-and-for-loop | filter-function | loop | math | enumerate() | print-statement | recurssion | decorator | copy | iterable | logical-operation | inheritance | function-and-scope | zip | asyncio-module | map-function | module | string-formatting | floating-point-precision | nested-loop | oop | rollback | string-concatenation | object-attribute | gil | built-in-function | benefit | encoding | binary | feature | loop-control | arithmetic-operation | string-formatting | type-conversion | __future__ | operator-or | logical-operator | file_handling | random | operator-overloading | indentation | slice | syntaxerror | append | lambda | condition | set-operation | round | complex-number | polymorphism | attribute | statement | methods | dictionary | immutability | string-slicing | recursion | filter | interpreter | set | input-function | range | numeric | overflow | compute | update | error-handling | data-type | counter-function | data-structures | counter | class-and-object | array | center | comment | stack | docstring | precedence-and-associativity | type_conversion | goto-function | descriptors | name-mangling | multiple-inheritance | file | string-slicing | destructor | bitwise | application | max-min | shallow-copy | datatype | data_structure | data-structure | __all__-attribute | iterator | error | global-keyword | mathematics | asyncio | immutable-data-type | python-module | python-history | virtual-environment | list-join | bitwise-operator | string | min-max-function | objects | tuple | python-repl | string-iteration | data-type | input-function | round-function | def | conditional-statement | dicts | numpy | import-method | pseudocode | operations | binary-operation | string-method | static-method | arithmetic-expression | identity-operator | odd-number | string-method | with-statement | python_version | list-mutation | software-design | operator | touples | comprehension | thread | conditional-statement | frozenset | indexing | class-and-instance-variable | boolean | formal-and-actual-parameter | int | postfix | class | threading | exponentiation | constructor | pep | escape-operator | magic-method | invalid-list | oops | bitwise-operator | control-flow | operand | operators | functional-programming | logical-operator | sorting | higher-order-function | zip-function | version-check | global-variable | boolean-and-non-boolean | debugging | deep-copy | exception-handling | sys-module | comparison | slicing | syntax-error | assignment-operator | list-indexing | namedtuple ...