Shouldn't urlopen "files" be iterable?

Magnus Lie Hetland mlh at idi.ntnu.no
Fri Sep 28 18:33:33 EDT 2001


I just tried to do

  for line in urlopen(url): ...

but it didn't work... Shouldn't the urllib "files"
behave like other files? (Using 2.2a2)

--

  Magnus Lie Hetland         http://www.hetland.org

 "Reality is that which, when you stop believing in
  it, doesn't go away."           -- Philip K. Dick






More information about the Python-list mailing list