hi,
can i append a item to a list using criterias:
- UNIQUE - if there already exist don't append
and/or
- SORTED - INSERT in the correct place using some criteria?
tks in advance
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 6, 6:35 pm, Josiah Carlson <[EMAIL PROTECTED]>
wrote:
ok, tks to all for ur help and comments!!!
> Neil Cerutti wrote:
> > On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote:
> >> and/or
>
> >> - SORTED - INSERT in the correct place using some criteri
On Jun 8, 12:17 am, "Delaney, Timothy (Tim)" <[EMAIL PROTECTED]>
wrote:
> Terry Reedy wrote:
> > "Dan Bishop" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]
> >> If you don't need the list to be sorted until you're done building
> >> it, you can just use:
>
> >> lst = sorted(set(lst
hi all,
i'm using this tutorial example
import httplib
h = httplib.HTTP("www.python.org")
h.putrequest('GET','/index.html')
h.putheader('User-Agent','Lame Tutorial Code')
h.putheader('Accept','text/html')
h.endheaders()
errcode,errmsg, headers = h.getreply()
f = h.getfile() # Get file object fo
On Jun 12, 2:09 pm, rhXX <[EMAIL PROTECTED]> wrote:
> hi all,
>
> i'm using this tutorial example
>
> import httplib
>
> h = httplib.HTTP("www.python.org")
> h.putrequest('GET','/index.html')
> h.putheader('User-Agent&
> The
> httplib.HTTP class that you were using is very old and deprecated for
> several years now.
>
> --
> Gabriel Genellina
:-( oh , tks!
i took it from
www.ug.it.usyd.edu.au/~comp5315/lec-09.html
which class must i use?
tks in advance
--
http://mail.python.org/mailman/listinfo/python