Éric Araujo <mer...@netwok.org> added the comment:

> if a line ends with ";;", _pop_values() will call interpret() with an empty 
> string. [...]
> it just means interpret() would return False, causing the line to be ignored, 
> which is probably
> fine for that border case

Hm, I’d rather call that a bug.  _pop_values should not call interpret, or 
interpret('') should return True (there is no condition that fails), or 
_pop_values should raise an exception (pro: errors should never pass silently, 
con: it’s not an error if we define that the empty string is a no-op, and it’s 
more user-friendly to do that).  I’m inclined to let interpret(''), do you 
think it’s sensible?

----------
assignee: tarek -> eric.araujo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12424>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to