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

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