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 ethan.furman
Recipients eric.smith, ethan.furman, gvanrossum, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, skrah, vstinner
Date 2013-12-16.16:52:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387212742.8.0.489754302342.issue19995@psf.upfronthosting.co.za>
In-reply-to
Content
Hmmm...

Well, much as I hate to say it, it's sounding like the correct solution here is to have %o and %x work when __index__ is available, instead of the other way around.  :(

.format is not an issue because one must specify one's own if inheriting from object.

So the complete list of spcecifiers then is d, i, o, u, U, and c [1], and they should work if __index__ works.

Are we in agreement?


[1] http://docs.python.org/dev/library/stdtypes.html#printf-style-string-formatting
History
Date User Action Args
2013-12-16 16:52:22ethan.furmansetrecipients: + ethan.furman, gvanrossum, rhettinger, mark.dickinson, pitrou, vstinner, eric.smith, skrah, serhiy.storchaka
2013-12-16 16:52:22ethan.furmansetmessageid: <1387212742.8.0.489754302342.issue19995@psf.upfronthosting.co.za>
2013-12-16 16:52:22ethan.furmanlinkissue19995 messages
2013-12-16 16:52:22ethan.furmancreate