This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Antony.Lee
Recipients Antony.Lee, dstufft, eric.araujo
Date 2015-08-31.17:00:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441040405.44.0.251292116419.issue24970@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, distutils.Command is a "hand-written" ABC; i.e. direct instantiaion or calling the "abstract" methods initialize_options, run and finalize_options raises a RuntimeError saying that the method (not named in the error message, which is thus a little bit cryptic) must be overriden.

In particular, this makes it impossible to use super() when overriding these methods (while Command.{initialize_options,run,finalize_options} have empty implementations, using super() is a fairly normal approach when inheriting, and needed in the case of multiple inheritance).

Switching to an ABC-based design would solve this issue.
History
Date User Action Args
2015-08-31 17:00:05Antony.Leesetrecipients: + Antony.Lee, eric.araujo, dstufft
2015-08-31 17:00:05Antony.Leesetmessageid: <1441040405.44.0.251292116419.issue24970@psf.upfronthosting.co.za>
2015-08-31 17:00:05Antony.Leelinkissue24970 messages
2015-08-31 17:00:05Antony.Leecreate