python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Workaround for lack of intersection types with Python generics?
I'm hitting an issue that would be easily solved by intersection types (currently under discussion but not yet implemented) and was wondering what the cleanest workaround is.
Current setup and problem...

Uri Granta
Votes: 0
Answers: 2
Pure Python abc/ABCMeta implementation?
It would be interesting to read the original pure Python implementation of abc module, described in PEP 3119.
Unfortunately, the link to a sample implementation from original PEP leads to a password p...
lithuak
Votes: 0
Answers: 1
Detect incomplete subclass of abstract class, python
In Python, how can I differentiate between a concrete subclass and a subclass which is still abstract (i.e. not all abstract methods have been implemented)?
Consider the following:
import abc
class A...

RJ-Adam
Votes: 0
Answers: 1
Pyside6/Shiboken and ABCMeta Bug
This is specific to the new Pyside6 package. Pyside2 does not have this issue.
When attempting to create an abstract class combining JSON and QObject classes Shiboken throws:
c:\python\python39\li...

Fitz
Votes: 0
Answers: 0