simon-anders / htseq

HTSeq is a Python library to facilitate processing and analysis of data from high-throughput sequencing (HTS) experiments.
https://htseq.readthedocs.io/en/release_0.11.1/
GNU General Public License v3.0
122 stars 77 forks source link

GenomicInterval.xrange(step = 1) cannot work in python3 #88

Closed chaigsh closed 4 years ago

chaigsh commented 5 years ago

Dear author, I found GenomicInterval.xrange(step = 1) cannot work in python3, but it woks well in python2.

Thanks

chaigsh commented 5 years ago

If I use this function [GenomicInterval.xrange(step = 1)] in python3, how to do it?

chaigsh commented 5 years ago

In Python3, I got one error: for position in iv.xrange(step = 1): AttributeError: 'HTSeq._HTSeq.GenomicInterval' object has no attribute 'xrange'

iosonofabio commented 4 years ago

This was a legit bug, fixed in commit c56cf6c, will be released in 0.11.5

The function in Python3 is called GenomicInterval.range(...)