Help with Dictionaries and Classes requested please.

2007-08-09 Thread special_dragonfly
Hello, I'm new to this group, I've read through the subject of a lot of the group but can't find anything relevant. Perhaps my question is too basic but I'm still stuck. Classes and Dictionaries. If I have a dictionary, how do I instantiate many instances of a class per dictionary key? Either at ru

Re: Help with Dictionaries and Classes requested please.

2007-08-09 Thread special_dragonfly
"special_dragonfly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > I'm new to this group, I've read through the subject of a lot of the group > but can't find anything relevant. Perhaps my question is too basic but I'm >

Re: Help with Dictionaries and Classes requested please.

2007-08-09 Thread special_dragonfly
"Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > special_dragonfly a écrit : > (snip) >> I've managed to solve the problem, I really was just being a dunce. >> Here's how incase anyone is wondering: &

Re: Help with Dictionaries and Classes requested please.

2007-08-09 Thread special_dragonfly
"special_dragonfly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Bruno Desthuilliers" <[EMAIL PROTECTED]> > wrote in message news:[EMAIL PROTECTED] >> special_dragonfly a écrit : >> (snip) >>> I've managed

Re: Help with Dictionaries and Classes requested please.

2007-08-09 Thread special_dragonfly
"Ben Finney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "special_dragonfly" <[EMAIL PROTECTED]> writes: > >> I've managed to solve the problem, I really was just being a >> dunce. > > Doubtful; but at this stage w

Re: tests

2007-08-09 Thread special_dragonfly
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 9, 4:04 pm, brad <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > You should be able to read chunks of each file in binary mode and do a >> > compare to check for equality. Some kind of loop should do the trick. >> >>

Help with optimisation

2007-08-13 Thread special_dragonfly
Hello, I know this might be a little cheeky, and if it is, please say, but I need a little hand optimising some code. For the simple reason that this is 'company' code and I have no idea what I'm allowed to release and not as the case may be I've changed anything that could give an indication of

Re: about negative polar plots

2007-08-14 Thread special_dragonfly
"Erik Max Francis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > yadin wrote: > >> hi am doing a polar plot of the radiation pattern of an antenna. >> the polar plots represents the value of the power in dB's and the dB >> go from -40dB to 0dB >> as the angle theta changes from 0

Class problems.

2007-08-14 Thread special_dragonfly
Hello, I'm having problems retrieving data I think I've put into my program. I have a class and a function. I'm reading in from a personally made text file of the data needed for the class. The FieldsDictionary needs to be accesable outside the function, but my problem is this: the print FieldsD

Re: Class problems.

2007-08-14 Thread special_dragonfly
Just ignore this, I was being an idiot... "special_dragonfly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > I'm having problems retrieving data I think I've put into my program. I > have a class and a function. I'm reading in fr

A problem with Time

2007-08-16 Thread special_dragonfly
Hello, I need to return the date yesterday in the form DDMM. I looked through the modules: time, datetime and calendar but can't find anything that leaps out at me. The problem I'm having is that although I can use time.localtime and get a tuple of the year, month, day and so forth, I don'

SQLite and coercing to Unicode - please help.

2007-09-06 Thread special_dragonfly
Hello! First, the problem: the program below falls over with the following error: TypeError: coercing to Unicode: need string or buffer, NoneType found. and gives the following line: "' WHERE secBoardId='"+Values[0]+"'" My first thought was that Values[0] was containing nothing at all, that would

Re: SQLite and coercing to Unicode - please help.

2007-09-06 Thread special_dragonfly
,?)',tuple(Values[1:])) ? The Elements list was from a time when it looked less pretty than it does now, where I iterated through it and didn't catch errors at all. Thank you again for your help and when it's finished and working I'll repost it online somewhere for ideas on