What steps will reproduce the problem?
python
import pysam
samfile = pysam.Samfile( "ex1.bam", "rb" )
for alignedread in samfile.fetch('chr1', 100, 120):
print alignedread
samfile.close()
for alignedread in samfile.fetch('chr1', 100, 120):
print alignedread
What is the expected output?
should throw exception for trying to use a closed file.
"ValueError: I/O operation on closed file"
like python files
What do you see instead?
... ... Segmentation fault
Please use labels and text to provide additional information.
Original issue reported on code.google.com by martingo...@gmail.com on 14 Oct 2009 at 3:34
Original issue reported on code.google.com by
martingo...@gmail.com
on 14 Oct 2009 at 3:34