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

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