Demian Brecht added the comment: > It is surprising that urlsplit() does not raise any exception
I have a bit of a TL;DR in #20271, trying to capture what the responsibilities of split and parse methods in urllib are and what they should be if consistency is something that we're after. Around the patch though: It seems quite odd to me to be raising exceptions on accessors rather than on instantiation or when the parsing occurs (in the body of urlparse). Wouldn't it better to raise the exception there? ---------- nosy: +demian.brecht _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20059> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com