Python 2.2 or 3.5

Chris Angelico rosuav at gmail.com
Sun Oct 11 02:15:22 EDT 2015


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

ChrisA



More information about the Python-list mailing list