Skip to content

Conversation

brondsem
Copy link

@brondsem brondsem commented Oct 23, 2023

The docs for the urllib.response.addinfourl class weren't showing what parameters it took to create a new instance.


📚 Documentation preview 📚: https://cpython-previews--111235.org.readthedocs.build/

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Oct 23, 2023
@hugovk hugovk changed the title Document the args to create a addinfourl object Document the args to create an addinfourl object Oct 31, 2023
@serhiy-storchaka
Copy link
Member

addinfourl is documented because it is the type of the result of urllib.request.urlopen(). It is not intended to be created in user code.

@brondsem
Copy link
Author

My use case was using mock.patch on urlopen, and I wanted to create my own addinfourl response for the mock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants