Bugs item #1754453, was opened at 2007-07-15 23:13 Message generated for change (Comment added) made by doerwalter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1754453&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Omari Norman (massysett) Assigned to: Nobody/Anonymous (nobody) Summary: Docstring for codecs.lookup is incorrect Initial Comment: The docstring for codecs.lookup states that this function returns a tuple of functions. I understand this was correct in Python 2.4, but in Python 2.5 this function returns a CodecInfo object, as described in the docs: http://docs.python.org/lib/module-codecs.html I've got Python 2.5.1. ---------------------------------------------------------------------- >Comment By: Walter Dörwald (doerwalter) Date: 2007-07-19 15:05 Message: Logged In: YES user_id=89016 Originator: NO CodecInfo objects *are* tuples for backwards compatibility reasons. Also it's still possible that codecs.lookup() returns a real tuple (however all standard encoding go through encodings.search_function() so if codec.getregentry() returns a real tuple this gets upgraded to a CodecInfo object.) I've changed the docstring in r56456, so that it mentions both tuples and CodecInfo objects. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1754453&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com