Uh oh!
There was an error while loading. Please reload this page.
Make name in httpx.__init__ private - #1177
Conversation
jcugat
commented
Aug 14, 2020
Would be worth bringing this test to httpx, since it's the one that surfaced the issue. Also, I'd use private variables |
_locals and name from top-level namespacej178
commented
Aug 14, 2020
@jcugat Thanks for reminding me! I added a test and reorder members in
I think these are just temporary variables, they will not be used anywhere, I prefer |
lovelydinosaur
left a comment
There was a problem hiding this comment.
So, really I think the change footprint in the is just too big, and we really don't need to be deling private variables.
Switching name to _name is sensible tho.
I'd prefer not to add the test here either - sometimes testing at this kind of level is just adding extra maintenance work, and bloat, without any real benefit.
name in httpx.__init__ privatej178
commented
Aug 14, 2020
Updated. |
jcugat
commented
Aug 14, 2020
@tomchristie The test was added because one of the imports was not present inside |
lovelydinosaur
commented
Aug 14, 2020
You're right sorry. I was taking a brief look on a phone screen, and it seemed a bit superfluous But it's actually reasonable enough. |
Taken from encode/httpcore#156 Added as a followup of #1177 (comment)
Taken from encode/httpcore#156 Added as a followup of #1177 (comment)
Taken from encode/httpcore#156 Added as a followup of encode/httpx#1177 (comment)
Prompted by encode/httpcore@35ecd22