Re: [Tutor] Str method

2012-11-04 Thread Dave Angel
On 11/04/2012 09:01 PM, Ashley Fowler wrote: (You top-posted, so I have to remove all the historical context, or it'll remain out of order) > I have code for a Set ADT. The Set ADT is a container that stores a > collection of values or elements. > > > > > Below is some of my code...I have run in

Re: [Tutor] Str method

2012-11-04 Thread Ashley Fowler
I have code for a Set ADT. The Set ADT is a container that stores a collection of values or elements. Below is some of my code...I have run into two problems so far. First I have to modify  __init__ method so that new sets can be initialized to a list of elements. This modification adds a

Re: [Tutor] Str method

2012-11-04 Thread Dave Angel
On 11/04/2012 08:45 PM, Ashley Fowler wrote: > I'm trying to initialize a list to several elements using the string method. > I have some idea that you use a for loop I suppose... > > Could anybody help me out? > > list has no string method, at least in the versions I tried.Could you perhaps

Re: [Tutor] Str method

2012-11-04 Thread Oscar Benjamin
On 5 November 2012 01:45, Ashley Fowler wrote: > I'm trying to initialize a list to several elements using the string > method. I have some idea that you use a for loop I suppose... > > Could anybody help me out? I'm afraid not. Your question is too vague for anyone receiving your message to kno

[Tutor] Str method

2012-11-04 Thread Ashley Fowler
I'm trying to initialize a list to several elements using the string method. I have some idea that you use a for loop I suppose... Could anybody help me out? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://

Re: [Tutor] making use of input

2012-11-04 Thread Alan Gauld
On 04/11/12 20:52, richard kappler wrote: The serial out from the Arduino sends in some form (depending on how I format it in the Arduino code) Sonar1, Sonar2, Sonar3, Sonar4, Temperature, Humidity, Dewpoint, and Light. I can get these into Python in a continuous read by doing: import serial a

Re: [Tutor] making use of input

2012-11-04 Thread Steven D'Aprano
On 05/11/12 07:52, richard kappler wrote: Me again. :-) Today was a good day, I accomplished a lot, but I'm stumbling now. I assembled the sensor array, coded the Arduino board to read the sensors and send the data out to serial, played with formatting the data, learned enough about the python s

[Tutor] making use of input

2012-11-04 Thread richard kappler
Me again. :-) Today was a good day, I accomplished a lot, but I'm stumbling now. I assembled the sensor array, coded the Arduino board to read the sensors and send the data out to serial, played with formatting the data, learned enough about the python serial library to be a little dangerous. The

Re: [Tutor] please give me feedback - linux & virtual machine python script

2012-11-04 Thread Kwpolska
On Sun, Nov 4, 2012 at 6:43 AM, wrote: > Hi, > > This script helps load files with the corresponding application inside a > virtual machine from the host file manager. The script is accessed by right > clinking the file from Nautilus file manager (Linux/Gnome/Ubuntu Unity) in > the host. For the