[Biopython-dev] [Bug 2754] Bio.PDB: Parse warnings should print to	stderr, not stdout
    bugzilla-daemon at portal.open-bio.org 
    bugzilla-daemon at portal.open-bio.org
       
    Sun Mar 22 11:36:38 UTC 2009
    
    
  
http://bugzilla.open-bio.org/show_bug.cgi?id=2754
------- Comment #12 from biopython-bugzilla at maubp.freeserve.co.uk  2009-03-22 07:36 EST -------
I have a thought last night about this - how about we keep PERMISSIVE=1 as the
default but offer a "very permissive" mode:
PERMISSIVE=2 (or more), silently ignore problems, continue parsing.
PERMISSIVE=1 (or True), use stderr via the warning module, continue parsing.
PERMISSIVE=0 (or False), raise exceptions, halt parsing.
It would ofter an alternative way to silence the warnings in the unit tests,
and could be controlled at the level of individual tests - for example where we
want to make sure certain errors are caught.
It might also be useful in ordinary scripts.
-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
    
    
More information about the Biopython-dev
mailing list