You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, maybe it's coming from Python 3.5 based on this line in PEP479.
Python 3.5: Enable new semantics under future import; silent deprecation warning if StopIteration bubbles out of a generator not under future import.
The warning printed to stdout when I was using unittest to test a function iterating through SeqIO.parse(). Not sure if that makes a difference. Thanks!
Activity
peterjc commentedon Oct 12, 2016
The good news is this not your fault, and it is harmless for now.
(Curiously by default a
PendingDeprecationWarningis silent so something has changed your setup's warning settings to make this more visible.)Biopython file
Bio/SeqIO/QualityIO.pyline 1031 is calling our functionFastqGeneralIteratorwhich does this:See line 955 https://github.com/biopython/biopython/blob/biopython-168/Bio/SeqIO/QualityIO.py#L955
I believe this is from PEP479, a deliberate change in Python itself: https://www.python.org/dev/peps/pep-0479/
In this particular case, I think we can just remove that line (or replace it with a plain
return).[-]PendingDeprecationWarning[/-][+]Update use of StopIteration for PEP479[/+]peterjc commentedon Oct 12, 2016
Retitling the bug - we need to audit the code base for all usage of
raise StopIteration(there are currently over 30 cases).conchoecia commentedon Oct 12, 2016
Indeed, maybe it's coming from Python 3.5 based on this line in PEP479.
The warning printed to stdout when I was using
unittestto test a function iterating throughSeqIO.parse(). Not sure if that makes a difference. Thanks!Thank Owen for contribution.
Don't raise StopIteration from generators; return does this explicitly;
Don't raise StopIteration from generators; return does this explicitly;
Thank Owen for contribution.
Don't raise StopIteration from generators; return does this explicitly;