Level 1 : What is the purpose of the __init_subclass__ method in Python?

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