Python 2.2 or 3.5

Chris Angelico rosuav at gmail.com
Sun Oct 11 02:34:03 EDT 2015


On Sun, Oct 11, 2015 at 5:15 PM, Chris Angelico <rosuav at gmail.com> wrote:
> On Sun, Oct 11, 2015 at 4:11 PM, Rustom Mody <rustompmody at gmail.com> wrote:
>> At https://docs.python.org/3.5/faq/extending.html#can-i-create-an-object-class-with-some-methods-implemented-in-c-and-others-in-python-e-g-through-inheritance
>>
>> it says
>> In Python 2.2, you can inherit from built-in classes such as int, list, dict, etc.
>>
>> So is it 3.5 or 2.2?
>
> More accurate would be "Since Python 2.2, you can etc etc". Every 3.x
> version permits this, as do all 2.x back as far as 2.2. Seems to
> warrant a docs patch.
>
> http://bugs.python.org/issue25375

... which has just been applied. I'm not sure how long it'll be before
you see the change on the web site, but it won't be long. Thanks for
the report!

ChrisA



More information about the Python-list mailing list