Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are metaclasses and when are they used?
Home
Python
What are metaclasses and when are they used?
0
votes
asked
Jan 11, 2021
in
Python
by
SakshiSharma
What are metaclasses and when are they used?
#python-metaclass
#metaclasses
#use-of-metaclass
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 11, 2021
by
SakshiSharma
Metaclasses are classes for classes. A metaclass can specify certain behaviour that is common for many classes for cases when inheritance will be too messy. One common metaclass is ABCMeta, which is used to create abstract classes.
Related questions
0
votes
Q: Python supports negative indexes. What are they and why are they used?
asked
Oct 12, 2021
in
Python
by
rajeshsharma
negative-indexes
Python-questions-answers
0
votes
Q: When Is The Python Decorator Used?
asked
Dec 22, 2019
in
Python
by
rajeshsharma
#python-decorator
Python-questions-answers
0
votes
Q: When using the Python shell and code block, what triggers the interpreter to begin evaluating a block of code?
asked
Jun 24, 2020
in
Python
by
Robindeniel
#python-shell
#python-code-block
#python-triggers
#python-interpreter
Python-questions-answers
0
votes
Q: Why And When Do You Use Generators In Python?
asked
Dec 22, 2019
in
Python
by
rajeshsharma
#python-generators
Python-questions-answers
+1
vote
Q: How many tests are run, when below code is tested using unittest?
asked
Jul 16, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
+1
vote
Q: How many tests of sample_module.py shown below, are successfully passed, when run with unittest?
asked
Jul 16, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
+1
vote
Q: How many tests are run, when below code is tested using nose?
asked
Jul 16, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
0
votes
Q: How many tests are run, when below code is tested using unittest
asked
Jun 30, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
0
votes
Q: How many tests are run, when below code is tested using unittest
asked
Jun 30, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
0
votes
Q: In the following options which are python libraries which are used for data analysis and scientific computations
asked
Sep 4, 2021
in
Python
by
SakshiSharma
python-libraries
Python-questions-answers
...