homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author oberstet
Recipients eric.araujo, ezio.melotti, nailor, oberstet, orsenthil, r.david.murray
Date 2011年10月28日.13:51:19
SpamBayes Score 1.2587709e-12
Marked as misclassified No
Message-id <1319809880.94.0.832512540755.issue13244@psf.upfronthosting.co.za>
In-reply-to
Content
Is that patch supposed to be in Python 2.7.2?
If so, it doesn't work for "ws":
"ws://example.com/somewhere?foo=bar#dgdg"
F:\scm\Autobahn\testsuite\websockets\servers>python
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from urlparse import urlparse
>>> urlparse("ws://example.com/somewhere?foo=bar#dgdg")
ParseResult(scheme='ws', netloc='example.com', path='/somewhere?foo=bar#dgdg', params='', query='', fragment='')
>>> urlparse("ws://example.com/somewhere?foo=bar#dgdg", allow_fragments = True)
ParseResult(scheme='ws', netloc='example.com', path='/somewhere?foo=bar#dgdg', params='', query='', fragment='')
>>> urlparse("ws://example.com/somewhere?foo=bar#dgdg", allow_fragments = False)
ParseResult(scheme='ws', netloc='example.com', path='/somewhere?foo=bar#dgdg', params='', query='', fragment='')
>>>
urlparse will neither parse the query nor the (invalid) fragment component for the "ws" scheme
I would have expected
ParseResult(scheme='ws', netloc='example.com', path='/somewhere', params='', query='foo=bar', fragment='dgdg')
History
Date User Action Args
2011年10月28日 13:51:21oberstetsetrecipients: + oberstet, orsenthil, ezio.melotti, eric.araujo, r.david.murray, nailor
2011年10月28日 13:51:20oberstetsetmessageid: <1319809880.94.0.832512540755.issue13244@psf.upfronthosting.co.za>
2011年10月28日 13:51:20oberstetlinkissue13244 messages
2011年10月28日 13:51:19oberstetcreate

AltStyle によって変換されたページ (->オリジナル) /