New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
attributes for urlsplit, urlparse result #37332
Comments
This patch to Lib/urlparse.py makes the fields of the |
Logged In: YES New version of the patch. This adds a "url" attribute to each type of result, Tests and documentation have been updated. |
Logged In: YES Based on comments from Guido, provide a geturl() method |
Logged In: YES I'm fine with this, but we decided to use a different |
Logged In: YES I've attached a new version of the patch that simplifies the It doesn't look like I'll bet getting to magic structseq |
Logged In: YES Here is a diff to the patch that corrects the --- urlparse.patch 2005-04-02 18:38:06.979685348 +0200
+++ urlparse-new.patch 2005-04-02 18:42:03.124933001 +0200
@@ -168,7 +168,7 @@
('http', 'www.cwi.nl:80', '/%7Eguido/Python.html', '', '', '')
+>>> o.scheme
+'http'
-+>>> o.url
++>>> o.geturl()
+'http://www.cwi.nl:80/%7Eguido/Python.html'
\end{verbatim}
@@ -189,7 +189,7 @@
+\var{urlstring}.
+
+\versionchanged[Support for attributes on the result
object was
-+ added]{2.3}
++ added]{2.5}
\end{funcdesc}
\begin{funcdesc}{urlunparse}{tuple}
@@ -236,7 +236,7 @@
+
\versionadded{2.2}
+\versionchanged[Support for attributes on the result
object was
-+ added]{2.3}
++ added]{2.5}
\end{funcdesc} \begin{funcdesc}{urlunsplit}{tuple} |
Logged In: YES Here's a new version of the patch. This takes birkenfeld's Much of this patch was written independently, but I've taken I think this is good for 2.5 still, and will commit this |
Logged In: YES Committed as trunk revision 43546. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: