Author serhiy.storchaka
Recipients benjamin.peterson, hynek, pitrou, serhiy.storchaka, stutzbach
Date 2014-06-24.17:36:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403631418.74.0.109096243494.issue21861@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import io
>>> class F(io.FileIO): pass
... 
>>> f = F('/dev/null', 'r')
>>> f
<_io.FileIO name='/dev/null' mode='rb'>
>>> class B(io.BufferedReader): pass
... 
>>> b = B(f)
>>> b
<B name='/dev/null'>
>>> class T(io.TextIOBufferedReader): pass
io.TextIOBase(     io.TextIOWrapper(  
>>> class T(io.TextIOWrapper): pass
... 
>>> t = T(b)
>>> t
<_io.TextIOWrapper name='/dev/null' encoding='UTF-8'>

Expected results are "<__main__.F name='/dev/null' mode='rb'>", "<__main__.B name='/dev/null'>" and "<__main__.T name='/dev/null' encoding='UTF-8'>". Usually reprs of subclass instances substitute actual module and class names.
History
Date User Action Args
2014-06-24 17:36:58serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, benjamin.peterson, stutzbach, hynek
2014-06-24 17:36:58serhiy.storchakasetmessageid: <1403631418.74.0.109096243494.issue21861@psf.upfronthosting.co.za>
2014-06-24 17:36:58serhiy.storchakalinkissue21861 messages
2014-06-24 17:36:58serhiy.storchakacreate