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 rhettinger
Recipients docs@python, eric.smith, gvanrossum, levkivskyi, rhettinger, Евгений Махмудов
Date 2018-03-16.16:45:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521218753.61.0.467229070634.issue33077@psf.upfronthosting.co.za>
In-reply-to
Content
Would it be worthwhile to show an example of a subclass that overrides or extends  __new__?   

Elsewhere in Python, the usual technique for changing method defaults is for a subclass to override or extend the method in question.  

    class A:
        def somemeth(self, value: bool = True):
            print(value)

    class B(A):
        def somemeth(self, value: bool = False):
            super().somemeth(value)
History
Date User Action Args
2018-03-16 16:45:53rhettingersetrecipients: + rhettinger, gvanrossum, eric.smith, docs@python, levkivskyi, Евгений Махмудов
2018-03-16 16:45:53rhettingersetmessageid: <1521218753.61.0.467229070634.issue33077@psf.upfronthosting.co.za>
2018-03-16 16:45:53rhettingerlinkissue33077 messages
2018-03-16 16:45:53rhettingercreate