-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-15450: Allow subclassing of dircmp #5088
Conversation
Hm, one also has to update |
I doubt if the Pull Request will be accepted without issue on bugs.python.org and unit test. |
I have found this issue: https://bugs.python.org/issue15450 |
Unittests are required as well |
Even if change is completely semantically the same? |
You are adding a new behavior. |
I mean, this just allows one to fix it to make it work. But if we really want to make this work properly, we should probably get rid of the whole |
Thus PR is not full. Please go forward and implement the requested feature. |
Can I refactor the class to not use |
Don't know, I not involved into the problem. |
Thanks, @asvetlov. The patch I posted long ago on the tracker is probably a better start. I included not just the change, but also a failing test and documentation changes. |
@cjerdonek I ported over your old patch and submitted a PR at #23424 if you want to take a look. Thanks for your work! |
Closing, #23424 should land. |
@NickCrews Thanks. |
Current implementation of dircmp does not really allow subclassing because it calls itself recursively.
https://bugs.python.org/issue15450