urlsplit() and windows paths

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?UTF-8?B?UGF0cmljayBNw6l6YXJk?=

    urlsplit() and windows paths

    Hello,

    Why does urlparse.urlspl it() succeed here ?


    """
    Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
    [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
    Type "help", "copyright" , "credits" or "license" for more information.
    >>import urlparse
    >>urlparse.urls plit('c:\\foo\\ bar')
    ('c', '', '\\foo\\bar', '', '')
    """

    Documentations (of urlparse(), referenced by urlsplit()) states:

    """
    Parse a URL into six components, returning a 6-tuple. This corresponds to the general structure of a URL: scheme://netloc/path;parameters ?query#fragment .
    """

    What kind of URLs does it parse not containing "://" ?

    --
    Patrick Mézard
Working...