slinkp blog

  • Home
  • Blog
  • Bass
  • Music
  • Talks
  • About

urllib2 gotcha

December 09, 2015
By Paul Winkler

Does this return all the data?

urllib2.urlopen(url).read()

The answer appears to be "not always".

https://stackoverflow.com/questions/7174927/when-does-socket-recvrecv-size-return https://github.com/CVL-dev/feedparser/issues/1

I can't seem to get a definitive answer here, nor a reproducible demonstration of it failing.

Does anybody know for sure?

Tags

  • bash
  • emacs
  • debugging
  • guitar
  • django
  • pedals
  • git
  • pelican
  • scheme
  • ai coding
  • blogging
  • documentation
  • bugs
  • effects
  • music
  • guitar pedals
  • mac
  • python
  • wat
  • stomp boxes
  • linux
  • work
  • ai
  • bass
  • api
  • personal
  • planning
  • audio
  • retroblogging
  • recurse
  • aider
  • layoffs
  • maker
  • tea
  • http
  • humor
  • sharkweasel
  • rest
  • testing
  • DIY
  • software
  • project management
  • startups
  • mocks
  • hell
  • programming

Social

  • github
The Recurse Webring:
<< Prev
Random
Next >>
Proudly powered by Pelican, which takes great advantage of Python.
Based on the Gumby Framework