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 terry.reedy
Recipients python-dev, serhiy.storchaka, terry.reedy
Date 2014-01-27.01:37:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390786627.01.0.786797371496.issue20338@psf.upfronthosting.co.za>
In-reply-to
Content
I increased indent to 4 spaces and made it easier to change.

I believe old-styles classes do not have .__new__, so test of TextWrapper will ensure that they work.

Inspect.signature should have correct logic to handle .__new__, with or without .__init__. (I presume that if both are present, they must be consistent, so .__init__ should be used.) You might want to check both behavior and test file for .signature.

Idle gets .signature upgrades for free when we switch, which I hope can be in a few months at worst. Programmer use of .__new__ without .__init__ is rare enough (extremely so) that I prefer to wait. As it is, switching will already mean removing some of the current logic.
History
Date User Action Args
2014-01-27 01:37:07terry.reedysetrecipients: + terry.reedy, python-dev, serhiy.storchaka
2014-01-27 01:37:07terry.reedysetmessageid: <1390786627.01.0.786797371496.issue20338@psf.upfronthosting.co.za>
2014-01-27 01:37:06terry.reedylinkissue20338 messages
2014-01-27 01:37:06terry.reedycreate