Re: [Tutor] error binding parameter 1

2007-11-24 Thread Dinesh B Vadhia
Yes, it should be: image_blob = open(image_file, 'rb').read() Thank-you! - Original Message - From: bob gailer To: Dinesh B Vadhia Cc: tutor@python.org Sent: Saturday, November 24, 2007 5:55 PM Subject: Re: [Tutor] error binding parameter 1 Dinesh B Vadhia wrote: > Hello! Can anyo

Re: [Tutor] error binding parameter 1

2007-11-24 Thread bob gailer
Dinesh B Vadhia wrote: > Hello! Can anyone see what the problem with this code snippet is? > > Dinesh > > > image_filename = str(dir_list[i]) > image_file = dir_path + image_filename >

[Tutor] error binding parameter 1

2007-11-24 Thread Dinesh B Vadhia
Hello! Can anyone see what the problem with this code snippet is? Dinesh image_filename = str(dir_list[i]) image_file = dir_path + image_filename image_blob = open(image_file, '

[Tutor] unexpected signal behaviour

2007-11-24 Thread dave selby
Hi all, I have written a daemon as part of a larger project, if it recieves a SIGHUP signal it needs to re-read its config file. It works in that I get 'signal HUP detected, re-reading config file' in syslog but then the script exits ... mmm first time I have used signal catching ... thought