This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mfwitten
Recipients mfwitten
Date 2008-10-22.19:51:19
SpamBayes Score 0.04630852
Marked as misclassified No
Message-id <1224705083.0.0.680712711599.issue4178@psf.upfronthosting.co.za>
In-reply-to
Content
CodecInfo objects are supposed to have 'encoder' and 'decoder' 
attributes as per http://www.python.org/doc/2.5.2/lib/module-codecs.html 
(naturally, this applies to 2.5.* as well). However, at least the 
CodecInfo object for 'string_escape' names these attributes 'encode' and 
'decode'.

>>> import codecs
>>> dir(codecs.lookup('string_escape'))
['__add__', '__class__', '__contains__', '__delattr__', '__dict__', 
'__doc__', '__eq__', '__ge__', '__getattribute__', '__getitem__', 
'__getnewargs__', '__getslice__', '__gt__', '__hash__', '__init__', 
'__iter__', '__le__', '__len__', '__lt__', '__module__', '__mul__', 
'__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', 
'__rmul__', '__setattr__', '__str__', 'decode', 'encode', 
'incrementaldecoder', 'incrementalencoder', 'name', 'streamreader', 
'streamwriter']
History
Date User Action Args
2008-10-22 19:51:23mfwittensetrecipients: + mfwitten
2008-10-22 19:51:23mfwittensetmessageid: <1224705083.0.0.680712711599.issue4178@psf.upfronthosting.co.za>
2008-10-22 19:51:21mfwittenlinkissue4178 messages
2008-10-22 19:51:20mfwittencreate