[pypy-issue] [issue846] TypeError: type 'basestring' is not an acceptable base class

Armin Rigo tracker at bugs.pypy.org
Mon Apr 22 16:23:08 CEST 2013


Armin Rigo <armin.rigo at gmail.com> added the comment:

Reopening: nltk seems to have still remaining cases of subclassing 'basestring',
according to
http://code.google.com/p/nltk/source/browse/trunk/nltk/nltk/sourcedstring.py#282

Should we just patch it in PyPy?  We should make sure we have a test doing the
same, which is:

class S(basestring):
  def __new__(cls):
    return "foo"

----------
status: wontfix -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue846>
________________________________________


More information about the pypy-issue mailing list