cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-82151: Improve docs for urllib3.parse

Open idomic opened this issue 5 years ago • 19 comments

  • Issue: gh-82151

idomic avatar Feb 23 '20 23:02 idomic

Tagging @taleinat

idomic avatar Mar 01 '20 16:03 idomic

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

bedevere-bot avatar Mar 12 '20 19:03 bedevere-bot

The fix here is good and important.

However, this does not address the central issue brought up in bpo-37970, regarding this line of the docs being misleading, since the parts of the netloc are available as additional attributes on the returned named-tuple object:

The components are not broken up in smaller parts (for example, the network location is a single string)

You're right, don't know why I missed this part, fixed for both urlsplit and parse.

idomic avatar Mar 15 '20 14:03 idomic

I have made the requested changes; please review again

idomic avatar Mar 15 '20 14:03 idomic

Thanks for making the requested changes!

@taleinat: please review the changes made to this pull request.

bedevere-bot avatar Mar 15 '20 14:03 bedevere-bot

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

bedevere-bot avatar Mar 18 '20 21:03 bedevere-bot

@taleinat I've changed one description, once we'll decide on the format I'll clone for the other function

idomic avatar Mar 22 '20 21:03 idomic

@taleinat ping on that

idomic avatar May 17 '20 19:05 idomic

Apologies for the delay, @idomic.

What you've written is better, I like the direction :)

I suggest omitting the first sentence, which I find redundant, changing the order of the sentences, and changing "expanded" to "decoded":

The delimiters as shown above are not part of the result, except for a leading slash in the path component, which is retained if present.

Additionally, the netloc item is broken down into: username, password, hostname, and port. These are added as additional attributes of the returned object.

% escapes are not decoded.

For example: ...

What do you think?

taleinat avatar May 19 '20 10:05 taleinat

@taleinat Agree, I like the decoded change, and the first paragraph. What do you think about:

Additionally, the netloc property is broken down into these additional attributes in the returned object: username, password, hostname, and port.

idomic avatar May 24 '20 22:05 idomic

@idomic, looks good, just replace "in the returned object" with "added to the returned object".

taleinat avatar May 25 '20 06:05 taleinat

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

bedevere-bot avatar May 25 '20 14:05 bedevere-bot

@idomic, please review the urlsplit() docs as currently suggested by this PR much more thoroughly.

@taleinat I think I've added the missing descriptions and changed it to fit to url split. Also tried to remove redundant text.

idomic avatar Jun 05 '20 12:06 idomic

I have made the requested changes; please review again

idomic avatar Jun 05 '20 12:06 idomic

Thanks for making the requested changes!

@taleinat: please review the changes made to this pull request.

bedevere-bot avatar Jun 05 '20 12:06 bedevere-bot

@taleinat Added the urlsplit() let me know what you think

idomic avatar Jun 20 '20 20:06 idomic

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

bedevere-bot avatar Jun 23 '20 08:06 bedevere-bot

I have made the requested changes; please review again

idomic avatar Jun 28 '20 14:06 idomic

Thanks for making the requested changes!

@taleinat: please review the changes made to this pull request.

bedevere-bot avatar Jun 28 '20 14:06 bedevere-bot

Hello, the original creator has not been active for quite some time. I can open a PR for #82151 myself if @idomic doesn't mind.

StanFromIreland avatar Jan 26 '25 09:01 StanFromIreland

Go ahead!

idomic avatar Jan 26 '25 13:01 idomic