Message83813
#OOPS! I forgot the subtlety.
#I must also retain the stream
#else it gets collected.
#Nasty.
import io
class file(io.TextIOWrapper):
'''condensing code for this list without test is a no no!'''
def __init__(self,name):
self.stream = open(name) # SAVE THE STREAM!
super().__init__(self.stream.buffer) |
|
Date |
User |
Action |
Args |
2009-03-19 15:36:53 | LambertDW | set | recipients:
+ LambertDW, loewis, georg.brandl, rhettinger, MLModel |
2009-03-19 15:36:53 | LambertDW | set | messageid: <1237477013.22.0.747869782517.issue5513@psf.upfronthosting.co.za> |
2009-03-19 15:36:51 | LambertDW | link | issue5513 messages |
2009-03-19 15:36:51 | LambertDW | create | |
|