Re: [Python-Dev] PEP 3144 review.

2009-09-16 Thread python-3000
en computed as usual): 1. netmask 2. your subnetwork address 3. host address 4. address of default route 5. subnetwork broadcast address 6. I don't know, maybe something else? 7. Oh, yes, it shows you the range of IP addresses, available for your use, if it was your subnetwork. So, what is better to write on

Re: [Python-Dev] PEP 3142: Add a "while" clause to generator expressions

2009-01-20 Thread python-3000
On Mon, Jan 19, 2009 at 10:10:00AM -0500, Gerald Britton wrote: > Please find below PEP 3142: Add a "while" clause to generator > expressions. I'm looking for feedback and discussion. > ... > g = (n for n in range(100) while n*n < 50) May I suggest you this variant? def raiseStopI

Re: [Python-Dev] teaching the new urllib

2009-02-04 Thread python-3000
On Tue, Feb 03, 2009 at 06:50:44PM -0500, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > The encoding information *is* available in the response headers, e.g.: > > - -- %< - > $ wget -S --spider http://knuth.luther.e