[Python-3000] help(pickle) fails: unorderable types: type() < type()

Guido van Rossum guido at python.org
Tue Sep 11 19:52:19 CEST 2007


On 9/11/07, Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> wrote:
> Python 3.0a1 (py3k, Sep  8 2007, 15:57:56)
> [GCC 4.2.1 20070719 (release) (PLD-Linux)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pickle
> >>> help(pickle)
> Traceback (most recent call last):
> [...]
>   File "/usr/local/lib/python3.0/pydoc.py", line 954, in repr1
>     return getattr(self, methodname)(x, level)
>   File "/usr/local/lib/python3.0/repr.py", line 78, in repr_dict
>     for key in islice(sorted(x), self.maxdict):
> TypeError: unorderable types: type() < type()

Mind reporting this on bugs.python.org?

> BTW, is cPickle officially gone and should pickle be used instead?

Yes. There will be a transparent accellerator written in C, but the
public API will be called "pickle".

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list