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

Author: IndraD | Tags: class | 1859+ Python FAQs | Share
dictionaries | tuples | working-with-dates-and-times | type_conversion | random | object-attribute | matrix-list-comprehension | using-os-and-pathlib-modules | using-lists-as-stacks | pass | why-use-multiprocessing-over-threading?-(gil) | mysql | print-statement | using-else-and-finally | logical-operators | unit-testing | append | boolean-masking | operand | module | list-method | static-method | exponentiation | python_version | numpy | file_handling | operators | generator | introduction-to-threads | fabs-function | zip | format | logical-operator | parsing-with-strptime | functional-programming | list-vs-tuple | input-function | encoding | global-keyword | multithreading | while-loops | lambda-functions | logical-operator | collections | default-arguments | virtual-environment | datetime | conditional-statement | identity-operator | binary-operation | error-handling | error | built-in-function | string-method | class-decorators | comment | function | class-and-inheritance | integers | integer | syntax | precedence | rollback | slicing | bitwise-operator | name-mangling | literal-characters-and-special-characters | numeric | arithmetic-operation | update | while-loop | immutable-data-type | regex | deep-copy | opening-files-(open()) | indentation | id-function | higher-order-function | design-principle | dictionary | complex | multiple-except-blocks | enumerate() | reading-and-writing-files | memory-management | version-check | type-conversion-and-casting | __future__ | decimal | string-manipulation | nested-loop | implementation | collection | difference-between-threads-and-processes | attribute | constructor | set | string-slicing | generators-in-python | heap-memory | __all__-attribute | tuple-unpacking | python-operators | mutable | swapping | reading:-read(),-readline(),-readlines() | list-comprehension | formal-and-actual-parameter | floating-point-precision | interpreter | time-series-with-pandas | frozenset | with-statement | built-in-function | list-join | advanced-file-operations | lists | tuple | pickling--unpickling | encapsulation | string-slicing | data-structure | lambdas | quantifiers-(*,-+,-?,-{}) | namespace | thread | raise-statement | matrix | head-and-tail | functions | assignment-operator | using-yield-in-functions | access-modifier | default-mutable-argument | list-mutation | dictionary-comprehensions | package-management | immutability | list,-set,-and-dictionary-comprehensions | installation | def | round-function | scientific-notation | max-min | feature | pseudocode | list-methods-and-slicing | list-comprehensions | creating-and-starting-threads | creating-custom-modules | else-statement | floats | choice | syntaxerror | indexing:-loc-vs-iloc | defining-functions | list | typeerror | anchors-(^,-$) | python-django | control-statement | control-flow | round | factorial-function | operator-overloading | while-else-loop | introduction-to-multiprocessing | join | assignment-operators | assert | conditional-statements | input-function | method | mathematics | bitwise-operator | lambda | functional-programming | boolean-and-non-boolean | mathematical-function | return-statement | strings | python-module | list-indexing | python | data-type | conversion | list-operation | version | postfix | descriptors | sorting | memory | gil | destructor | sets | iterators | matplotlib | regular-expressions | match | overriding-methods | debugging | multiprocessing | class | arithmetic-expression | joining-and-merging-dataframes | staticmethod | python-syntax-and-structure | split | single-inheritance | walking-through-directories-using-os.walk() | math | lambda-function | compute | namedtuple | decorator | dataframe-and-series-objects | reading-and-writing-large-files-efficiently | context-manager | boolean | application | recursion | call | type-conversion | identifier | magic-method | overflow | built-in-modules | conditional-statement | loop-control | exception | oop | objects | comprehension | oops | logical-operation | min-function | condition | command-line-parsing | dictionary-methods | operator-or | data-structures | tuple-methods | operations | loops | inheritance | datetime.date,-datetime.time,-datetime.datetime | managing-directories-with-os-and-shutil | using-the-threading-module | touples | working-with-temporary-files-using-tempfile | for | string-concatenation | loop-control-statements | iterator | methods | sum() | string-formatting | turtle | recurssion | iterable | python-history | syntax-error | statement | syntax-error | asyncio | sys-module | inherit | mapping-function | data-type-conversions | thread-synchronization | multiple-inheritance | indexing | odd-number | thread-safe-data-structures-(queue.queue) | stack | goto-function | list-slicing | using-assertions-(assertequal,-assertraises) | counter-function | filter-function | else | zip-function | test-discovery | string | docstring | using-join()-and-is_alive()-methods | center | list-comprehension | data-types | loop | counter | global-variable | set-operation | slice | sys | type-conversion | writing:-write(),-writelines() | virtual-environment | function-and-scope | booleans | exception-handling | class-and-object | min-max-function | variable | library | formatting-with-strftime | introduction-to-python | error-handling | invalid-list | yield | global-variable | regular-expression | identity-operators-(is,-is-not) | string-methods | control-flow | copy | import-method | pep | software-design | precedence-and-associativity | python-repl | sorting-and-ranking | map-function | init | input | datatype | operator | async | benefit | directory-operations | working-with-binary-files-(rb,-wb) | handling-missing-values-(fillna,-dropna) | data-structure | keyword | data-structures-in-python | multiple-inheritance | expand-tab | filtering-and-indexing | expression | complex-number | data-type | shallow-copy | dicts | while-and-for-loop | math-copysign | operator-and | method-overloading | threading | asyncio-module | membership-operators-(in,-not-in) | sorted | pandas | function-argument | file-handling | file | built-in | filter | using-map()-for-transformations | generators | identity-operator | parameter | escape-operator | intering | print | data_structure | string-iteration | __init_subclass__ | binary | raise | key-value-pairs | random-function | int | string-formatting | aggregating-data-with-functools.reduce() | global | working-with-file-paths | file-handling | bitwise | range | exception-handling | sum-function | comparison | arbitrary-arguments-(*args,-**kwargs) | classes | zfill-function | basic | array | string-method | polymorphism | class-and-instance-variable ...