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

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