Closed GoogleCodeExporter closed 8 years ago
Good idea! In the mean time, you can use the contextlib.closing dectorator.
E.g.:
from contextlib import closing
with closing(pysam.Samfile('file.bam', 'rb')) as samfile:
... do something ...
Original comment by bioinformed@gmail.com
on 26 May 2010 at 11:45
Thanks, didn't know about that one!
Original comment by marcel.m...@tu-dortmund.de
on 26 May 2010 at 6:47
great idea, added to dev-0.3
Original comment by andreas....@gmail.com
on 18 Jul 2010 at 6:15
Great, thanks!
Original comment by marcel.m...@tu-dortmund.de
on 19 Jul 2010 at 2:17
Original issue reported on code.google.com by
marcel.m...@tu-dortmund.de
on 25 May 2010 at 4:04