[Python-Dev] TextIO seek and tell cookies
Nick Coghlan
ncoghlan at gmail.com
Mon Sep 26 00:05:51 EDT 2016
On 26 September 2016 at 10:21, MRAB <python at mrabarnett.plus.com> wrote:
> On 2016-09-26 00:21, Ben Leslie wrote:
>> Are there any downsides to this? I've made some progress developing a
>> patch to change this functionality. Is it worth polishing and
>> submitting?
>>
> An alternative might be a subclass of int.
It could make sense to use a subclass of int that emitted deprecation
warnings for integer arithmetic, and then eventually disallowed it
entirely.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list