Re: [Tutor] Multi-User file system

2008-11-01 Thread Jim Morcombe
Would pySQLite be a reasonable choice for this? Jim Morcombe Jim Morcombe wrote: I want to have a couple of files that can be updated simultaneously be several users. I don't want to go to the effort of having the users set up a RDMS and would like to control everything from Python. I am

Re: [Tutor] how to read over serial port

2008-11-01 Thread shawn bright
First, thanks for you time with me on this. When i said weird characters, i meant that they were not characters you would find on a keyboard. Like one of them is a black diamond with a question mark in it. there are some weird block characters, occationally a letter, etc.. did not clarify why i wr

Re: [Tutor] how to read over serial port

2008-11-01 Thread bob gailer
shawn bright wrote: Hey there all, I have a gps device that talks to the computer over a serial port. i am using the pyserial module and getting values in. Here is my delima, i am supposed to read a message in that starts with a $ (this is all ascii). but when i do a ser.read(16) and i try to

[Tutor] Multi-User file system

2008-11-01 Thread Jim Morcombe
I want to have a couple of files that can be updated simultaneously be several users. I don't want to go to the effort of having the users set up a RDMS and would like to control everything from Python. I am after something like shelve, but with record locking. Is there such a thing? Jim Mo

[Tutor] how to read over serial port

2008-11-01 Thread shawn bright
Hey there all, I have a gps device that talks to the computer over a serial port. i am using the pyserial module and getting values in. Here is my delima, i am supposed to read a message in that starts with a $ (this is all ascii). but when i do a ser.read(16) and i try to print it to a screen,

Re: [Tutor] Manipulate list in place or append to a new list

2008-11-01 Thread bob gailer
Sander Sweers wrote: Hi, What is the better way to process data in a list? Depends on what you mean by "better". Could mean faster, smaller, more readable, or ?? Get clear on your goals. Make the changes in place, for example somelist = [1,2,3,4] for x in range(len(somelist)): somel

Re: [Tutor] Manipulate list in place or append to a new list

2008-11-01 Thread spir
Sander Sweers a écrit : Hi, What is the better way to process data in a list? Make the changes in place, for example somelist = [1,2,3,4] for x in range(len(somelist)): somelist[x] = somelist[x] + 1 Or would making a new list like somelist = [1,2,3,4] newlist = [] for x in somelist:

[Tutor] Manipulate list in place or append to a new list

2008-11-01 Thread Sander Sweers
Hi, What is the better way to process data in a list? Make the changes in place, for example somelist = [1,2,3,4] for x in range(len(somelist)): somelist[x] = somelist[x] + 1 Or would making a new list like somelist = [1,2,3,4] newlist = [] for x in somelist: newlist.append(x + 1) Or

Re: [Tutor] Debugging, other

2008-11-01 Thread bob gailer
Jennifer Miller wrote: Hello, I would like to step through with debugging in PythonWin, I have added this toolbar, but I cannot click on it as an option. "cannot click on it" is pretty vague. Is your mouse broken? Or do you mean that nothing happens when you click. Also, when I click run, to

Re: [Tutor] Debugging, other

2008-11-01 Thread W W
On Sat, Nov 1, 2008 at 11:21 AM, Jennifer Miller <[EMAIL PROTECTED]>wrote: > Hello, > > I would like to step through with debugging in PythonWin, I have added > this toolbar, but I cannot click on it as an option. Also, when I > click run, to define the arguments, do I enter them in the format >

Re: [Tutor] (no subject)

2008-11-01 Thread spir
[EMAIL PROTECTED] a écrit : Dear Friends, I have just started learning python programming. I have no previous programming knowledge. Welcome! I'm an amateur, too. Some words to add to Kent's answer. I am presently using Python 2.6 windows version. I am struggling with how to enable executable f

Re: [Tutor] [Re: class/type methods/functions]

2008-11-01 Thread spir
Thank you for this relevant & precise review, Albert. I will answer specific topic, then give a overall introduction of the problem(s) adressed by this project, that may clarify a bit some topics. A.T.Hofkamp a écrit : > However, by moving the 'type' information to a seperate object, your

[Tutor] Debugging, other

2008-11-01 Thread Jennifer Miller
Hello, I would like to step through with debugging in PythonWin, I have added this toolbar, but I cannot click on it as an option. Also, when I click run, to define the arguments, do I enter them in the format name, name? Also, when I try to run my code, I get a message at the bottom of the scre

Re: [Tutor] (no subject)

2008-11-01 Thread Kent Johnson
On Sat, Nov 1, 2008 at 7:17 AM, <[EMAIL PROTECTED]> wrote: > > I am struggling with how to enable executable files. I copied the ff > program on idlle non-interactice and run it. > > the_world_is_flat =1 > if the_world_is_flat: >print"Be careful not to fall off" > > The result came out on

[Tutor] (no subject)

2008-11-01 Thread otu
Dear Friends, I have just started learning python programming. I have no previous programming knowledge. I am presently using Python 2.6 windows version. I am struggling with how to enable executable files. I copied the ff program on idlle non-interactice and run it. the_world_is_flat =1 if the_wo

[Tutor] Is it thread safe to collect data from threads where run has finished?

2008-11-01 Thread Wesley Brooks
Dear Users, I've got a few tasks that block for a while and cause my wxPython interface to lock up while they process. I'm thinking about migrating these to threads which I kick off when I want the task done. In the run bit of the thread the main work will be done, it will store the information as

Re: [Tutor] mergin two csv files based on a common join

2008-11-01 Thread spir
[EMAIL PROTECTED] a écrit: Hello again, Thanks for the replies on my previous post, but I have a different problem now and don't see how to deal with it in a smooth way. I have two csv files where: 1.csv "1", "text", "aa" "2", "text2", "something else" "3", "text3", "som