You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'_implicit_environ.compute_engine_id()' may raise #575
It demonstrates a philosophical position of relying on httplib2 as little as possible, in light of the move to requests always being discussed (couldn't find a link) and #551
This has also made me realize we aren't setting the defaults (e.g. _implicit_environ.CONNECTION) in a threadsafe way. I ran into pydanny/cached-property#9 along the way.
I can see how this might work out: we aren't using HTTPS or basic auth, which are known-hard with httplib, especially in combination. Still, it does seem odd to be relying on what is basically a 10-year old stdlib module over a more modern, presumably-maintained one (although it hasn't been updated in 6 months either).
Haha I never considered that. I've dealt so much with httplib2 for Google stuff I just assumed the grass was greener (everyone certainly has great things to say about requests).
Activity
dhermes commentedon Jan 28, 2015
Yes I'm currently wrestling with it. It seems to be related to:
https://github.com/jcgregorio/httplib2/issues/284
Self-assigning bug and will keep digging.
dhermes commentedon Jan 28, 2015
FYI, equivalent snippet:
It demonstrates a philosophical position of relying on
httplib2as little as possible, in light of the move torequestsalways being discussed (couldn't find a link) and #551This has also made me realize we aren't setting the defaults (e.g.
_implicit_environ.CONNECTION) in a threadsafe way. I ran into pydanny/cached-property#9 along the way.dhermes commentedon Jan 29, 2015
OK I ran
to make sure the error is gone. (It fails within the first 10 loops on master right now.)
Using httplib instead of httplib2 to get GCE metadata.
Using httplib instead of httplib2 to get GCE metadata.
tseaver commentedon Jan 29, 2015
I can see how this might work out: we aren't using HTTPS or basic auth, which are known-hard with
httplib, especially in combination. Still, it does seem odd to be relying on what is basically a 10-year old stdlib module over a more modern, presumably-maintained one (although it hasn't been updated in 6 months either).dhermes commentedon Jan 29, 2015
I've been inside the beast of
httplib2and am not thrilled with it. It's a dep fromoauth2clientI'd prefer to use
requestsby default and enable a BYOhttpas outlined in #551tseaver commentedon Jan 29, 2015
FWIW, I'm not impressed with the code quality / maintainership of requests, either.
dhermes commentedon Jan 29, 2015
Haha I never considered that. I've dealt so much with
httplib2for Google stuff I just assumed the grass was greener (everyone certainly has great things to say aboutrequests).3 remaining items
chore(deps): update all dependencies (#575)
chore(deps): update all dependencies (#575)
fix: updates requirements.txt to fix failing tests due to missing req (…
chore(python): use ubuntu 22.04 in docs image (#575)
fix: preserve list meanings (#575)
chore(python): auto approve template changes (#575)
fix(deps): require google-api-core >= 2.8.0 (#575)
fix: support empty not_finished messages that cause query.count() to …
fix(deps): require google-api-core >= 2.8.0 (#575)
chore: use gapic-generator-python 0.63.1 (#575)
feat: add `max_queue_size` argument to `RowIterator.to_dataframe_iter…
chore: release 2.14.0 (#602)
fix: fix typo in README (#575)
docs: add test for using FOR UPDATE (#575)
chore: unbundle renovate reports (#575)