A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-August/016797.html below:

[Python-Dev] "not an acceptable base type"?

[Python-Dev] "not an acceptable base type"? [Python-Dev] "not an acceptable base type"?Skip Montanaro skip@pobox.com (Skip Montanaro)
Wed, 8 Aug 2001 15:29:55 -0500
Are strings not yet subclassable or do I just need to "cvs up"?

    >>> class string(str):
    ...   pass
    ... 
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
    TypeError: type 'str' is not an acceptable base type
    >>> "".__class__ == str
    1

Thx,

Skip



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4