Ezio Melotti <ezio.melo...@gmail.com> added the comment:

A few things about the patch:
1) the MarshallError class has a 'message' attribute that results in a warning 
on some Python versions, it should be renamed in something different (like 
'msg');
2) I'm not sure why the <marshallerror></marshallerror> in the exception 
message is necessary, but I didn't look at the code in xmlrpclib.py so it might 
be ok;
3) the first 'pos' is not used in the for loop where it is created but only 
some lines later inside the except, this is not immediately clear, so a short 
comment should be added;
4) the str(e) is redundant -- there's already %s;
5) the "except Exception, e:" look suspicious, a more specific exception(s) 
should probably be specified;
6) 'as' should be used instead of the comma in the 'except' statements.

----------
nosy: +ezio.melotti, krisvale, loewis
priority:  -> normal

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

Reply via email to