connection reset by peer error

2008-10-11 Thread gigs
I connect to web site with httplib.HTTPConnection. after some time i get this error: 104 connection reset by peer. What exception i should use to catche this error thx! -- http://mail.python.org/mailman/listinfo/python-list

Re: connection reset by peer error

2008-10-11 Thread gigs
D'Arcy J.M. Cain wrote: On Sat, 11 Oct 2008 15:52:48 +0200 gigs [EMAIL PROTECTED] wrote: I connect to web site with httplib.HTTPConnection. after some time i get this error: 104 connection reset by peer. What exception i should use to catche this error Well, what exception do you get? Your

Re: utf-8 read/write file

2008-10-09 Thread gigs
Kent Johnson wrote: On Oct 8, 5:55 pm, gigs [EMAIL PROTECTED] wrote: Benjamin wrote: On Oct 8, 12:49 pm, Bruno [EMAIL PROTECTED] wrote: Hi! I have big .txt file which i want to read, process and write to another .txt file. I have done script for that, but im having problem with croatian

Re: utf-8 read/write file

2008-10-08 Thread gigs
Benjamin wrote: On Oct 8, 12:49 pm, Bruno [EMAIL PROTECTED] wrote: Hi! I have big .txt file which i want to read, process and write to another .txt file. I have done script for that, but im having problem with croatian characters (Š,Đ,Ž,Č,Ć). Can you show us what you have so far? How can

Re: Question about overloading of binary operators

2008-03-31 Thread gigs
Raj Bandyopadhyay wrote: Hi Here's a simple class example I've defined # class myInt(int): def __add__(self,other): return 0 print 5 + myInt(4) #prints 9 print myInt(4) + 5 #prints 0 # The Python binary

class super method

2008-03-31 Thread gigs
is there any tutorial for super method (when/how to use it)? or maybe someone could explain me how it works? thx -- http://mail.python.org/mailman/listinfo/python-list

Re: hidden built-in module

2008-03-07 Thread gigs
koara wrote: Hello, is there a way to access a module that is hidden because another module (of the same name) is found first? More specifically, i have my own logging.py module, and inside this module, depending on how initialization goes, i may want to do 'from logging import *' from the

list mutability

2008-02-18 Thread gigs
hi im having this code l = [1, 3, 5, 'D', 1, 2, 3, 4, 5, 6, 7, 'A', 'S', 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 'A'] why i need to copy x list? can someone explain me. If i dont copy it i get this result: took_num_range(l) [[1, 2, 3, 4, 5, 6, 7], [6, 5, 4, 3, 2, 1, 0], [6, 5, 4, 3, 2, 1, 0], [6, 5,

tkinter canvas

2007-04-05 Thread gigs
I have made drawing area and few butons. How can I make when i click my fill button that later when i click on oval oval gets filled with chousen color? -- http://mail.python.org/mailman/listinfo/python-list

pyscripter on windows vista

2007-04-04 Thread gigs
does pyscriter work on windows vista -- http://mail.python.org/mailman/listinfo/python-list