Éric Araujo <mer...@netwok.org> added the comment: > Actually, if I get it right, it means that following url is valid: > ws://example.com/something#somewhere/ I don’t think so. The URI syntax RFC is generic, so a scheme spec cannot redefine the parsing to mean that in your above example, there is no fragment and the path is /something#somewhere/ . I believe the spec means that a # in any component must be %-escaped.
> Does urllib throw when an URL contains a fragment identifier, but the scheme > of the URL is not > in urlparse.uses_fragment? Could you try it in a shell and tell us? BTW, please don’t use “throw” in a code or doc patch: exceptions are raised, throw is related but different generator method. ---------- nosy: +eric.araujo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13244> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com