StackOverflow Questions for Tag: metaclass

shan
shan

Reputation: 387

why keyword argument are not passed into __init_subclass__(..)

Score: 3

Views: 1216

Answers: 2

Read More
theheadofabroom
theheadofabroom

Reputation: 22019

What is the best way of implementing singleton in Python

Score: 1756

Views: 792000

Answers: 44

Read More
Feuermurmel
Feuermurmel

Reputation: 9922

Use a metaclass only for subclasses

Score: 11

Views: 1006

Answers: 1

Read More
se7enXF
se7enXF

Reputation: 136

How to replace base class in python

Score: 0

Views: 77

Answers: 1

Read More
Hyperplane
Hyperplane

Reputation: 1681

Stop Sphinx from Executing a cached classmethod property

Score: 3

Views: 262

Answers: 1

Read More
Shrey Patel
Shrey Patel

Reputation: 13

How to Decorate Inherited Methods Using a Custom Metaclass in Python?

Score: 1

Views: 45

Answers: 1

Read More
Keelan Armstrong
Keelan Armstrong

Reputation: 401

Automatically setting an enum member's value to its name

Score: 40

Views: 29737

Answers: 3

Read More
Mariy
Mariy

Reputation: 5914

Subclassing typing.TypeDict

Score: 0

Views: 60

Answers: 1

Read More
gkrupp
gkrupp

Reputation: 428

Wrapping class method with correct type hint

Score: 1

Views: 155

Answers: 1

Read More
pevogam
pevogam

Reputation: 608

Executing code on class (metaclass instance) destruction in python

Score: 0

Views: 55

Answers: 2

Read More
jadrezz
jadrezz

Reputation: 33

Changing instance's attribute name via metaclass

Score: 1

Views: 154

Answers: 2

Read More
nikow
nikow

Reputation: 21548

How does a classmethod object work?

Score: 10

Views: 5056

Answers: 1

Read More
NotableQuestioner
NotableQuestioner

Reputation: 73

__call__ from metaclass shadows signature of __init__

Score: 6

Views: 956

Answers: 5

Read More
Eric
Eric

Reputation: 5331

How to read class attributes in the same order as declared?

Score: 53

Views: 18510

Answers: 8

Read More
allyourcode
allyourcode

Reputation: 22603

Shouldn't __metaclass__ force the use of a metaclass in Python?

Score: 7

Views: 831

Answers: 3

Read More
Olivier Melançon
Olivier Melançon

Reputation: 22294

How to recover the mro of a class given its bases?

Score: 4

Views: 234

Answers: 2

Read More
Steven Dickinson
Steven Dickinson

Reputation: 335

Python metaclass keyword arguments not getting used by subclass

Score: 0

Views: 36

Answers: 1

Read More
kaktus_car
kaktus_car

Reputation: 986

How to check an argument type before __init__ gets called

Score: -1

Views: 862

Answers: 1

Read More
mara004
mara004

Reputation: 2337

python metaclasses: editing the namespace after `__set_name__` methods have been called?

Score: -2

Views: 56

Answers: 2

Read More
user7624126
user7624126

Reputation: 303

How do I use generic typing with PyQt subclass without metaclass conflicts?

Score: 10

Views: 1256

Answers: 1

Read More
PreviousPage 1Next