Mark Sapiro <m...@msapiro.net> added the comment:

> parsing 'merwok'
>  expected ('merwok', '')
>  got      ('', 'merwok')


I think ('', 'merwok') is the correct result. I think most if not all MUAs/MTAs 
will interpret an address without an '@', albeit invalid, as a local-part in 
the local domain, thus parsing 'merwok' as the address 'merwok' with no real 
name is probably the right thing to do with this input. The alternative would 
be to return ('', '') indicating failure.


> parsing 'merwok w...@rusty'
>  expected ('', 'w...@rusty')
>  got      ('', 'merwok...@rusty')


Here, I think failure is a more appropriate return.

In any case, I think this is a new bug deserving of a new report. It is not 
really relevant to this issue which has to do with nested parentheses.

----------

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

Reply via email to