Re: [Tutor] Same code has different result

2012-02-12 Thread Dave Angel
On 02/12/2012 12:02 PM, Andreas Perstinger wrote: [You've forgot to include the list in your reply] On Mon, 13 Feb 2012 00:04:54 +0800 daedae11 wrote: Sorry, I'm not sure I know your viewpoint. Could you give me a detailed explanation about "you need more than about 6-7 seconds (on my compute

Re: [Tutor] Same code has different result

2012-02-12 Thread Andreas Perstinger
[You've forgot to include the list in your reply] On Mon, 13 Feb 2012 00:04:54 +0800 daedae11 wrote: > Sorry, I'm not sure I know your viewpoint. Could you give me a > detailed explanation about "you need more than about 6-7 seconds (on > my computer) to type the third line."? Thank you very muc

Re: [Tutor] Same code has different result

2012-02-12 Thread Andreas Perstinger
On Sun, 12 Feb 2012 21:31:57 +0800 daedae11 wrote: > The code is: > from nntplib import NNTP > s = NNTP('news.gmane.org') > resp, count, first, last, name = s.group > ('gmane.comp.python.committers') print 'Group', name, 'has', count, > 'articles, range', first, 'to', last resp, subs = s.xhdr('su

[Tutor] Same code has different result

2012-02-12 Thread daedae11
The code is: from nntplib import NNTP s = NNTP('news.gmane.org') resp, count, first, last, name = s.group('gmane.comp.python.committers') print 'Group', name, 'has', count, 'articles, range', first, 'to', last resp, subs = s.xhdr('subject', first + '-' + last) for id, sub in subs[-10:]: print i