Level 1 : What is the purpose of the __dict__ attribute in Python?

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