This is pretty easy (25 chars for f(), indentation is counted as 1):
def f():
while 1:yield 0
for i in f():print "Hello"
Here's a morean interesting way of doing it (32 chars for class x, 46 not counting the print):
class x:__iter__=next=lambda s:0s
for i in x():print "Hello"
In the first case, we simply define a never-ending generator. In the second, we defineThis defines an iterable whose next method never raises a StopIteration