On 02/07/12 05:21, Greg Nielsen wrote:
models the acceleration of the object. Y is the acceleration and X is
the current speed of the object.
Y = -.01X^2 * 1.45X
That's not the same as the formula you have implemented.
it doesn't work. It's also in bold, so you can see it easily.
if
Sean Carolan wrote:
>> Thank you, this is helpful. Minidom is confusing, even the
>> documentation confirms this:
>> "The name of the functions are perhaps misleading"
>>
>>> But I'd start with the etree tutorial (of which
>>> there are many variations on the web):
>
> Ok, so I read through
Tutors,
Whilst having a play around with reading in textfiles and reformatting them I
tried to write a python 3.2 script to read a CSV file, looking for any records
which were short (indicating that the data may well contain an embedded CR/LF.
I've attached a small sample file with a "split rec
On Mon, Jul 2, 2012 at 10:03 AM, Flynn, Stephen (L & P - IT)
wrote:
> Tutors,
>
> Whilst having a play around with reading in textfiles and reformatting them I
> tried to write a python 3.2 script to read a CSV file, looking for any
> records which were short (indicating that the data may well c
Peter Otten, 02.07.2012 09:57:
> Sean Carolan wrote:
>>> Thank you, this is helpful. Minidom is confusing, even the
>>> documentation confirms this:
>>> "The name of the functions are perhaps misleading"
Yes, I personally think that (Mini)DOM should be locked away from beginners
as far as pos
* Flynn, Stephen (L & P - IT) [2012-07-02 15:03]:
> Tutors,
>
> Can someone explain to me how I am supposed to make use of readline()
> to grab the next line of a text file please? It may be that I should
> be using some other module, but chose fileinput as I was hoping to
> make the little routi
On 02/07/12 15:03, Flynn, Stephen (L & P - IT) wrote:
Whilst having a play around with reading in textfiles and reformatting them I
> tried to write a python 3.2 script to read a CSV file,
Best tool for csv files is the csv module, it covers most of the gotchas
associated with such data.
W
On 02/07/12 18:39, David Rock wrote:
Essentially, your problem isn't with using fileinput, it's with how you
handle each line that comes in.
The immediate problem is with mis-using fileinput.
But once you solve that you then have to deal with the
other issues David raises.
Once more I recomme
Hi,
I'm absolutely newbie, and appreciate your help, I'm using Spyder, some
times it randomly get the following error:
'import sitecustomize' failed; use -v for traceback
while, I'm not importing and have no idea what is importing it, this
happens even if my code is as simple as following:
impor
> Yes, I personally think that (Mini)DOM should be locked away from beginners
> as far as possible.
Ok, I'm glad to hear that. I'll continue to work with ElementTree and
lxml and see where it takes me.
___
Tutor maillist - Tutor@python.org
To unsubscr
On 7/2/2012 12:17 PM Ali Torkamani said...
Hi,
I'm absolutely newbie, and appreciate your help, I'm using Spyder, some
times it randomly get the following error:
'import sitecustomize' failed; use -v for traceback
This appears to be somewhat common as if you google for 'spyder
sitecustomize'
On 07/02/2012 03:17 PM, Ali Torkamani wrote:
> Hi,
> I'm absolutely newbie, and appreciate your help, I'm using Spyder, some
> times it randomly get the following error:
The first place I found Spyder was here:
https://en.wikipedia.org/wiki/SPYDER which is an anti-aircraft system
based partly on
Hello- I'm wondering how to access specific objects returned from a
function when that function returns multiple objects.
For example, if I have "return(list1, list2, list 3)" within a function
"mainFunc()" that takes no arguments, how do I use list1, list2, and list3
outside of the function once
On 2 July 2012 23:55, Alexander Q. wrote:
> Hello- I'm wondering how to access specific objects returned from a function
> when that function returns multiple objects.
>
> For example, if I have "return(list1, list2, list 3)" within a function
When you have:
return (list1, list2, list3)
... you'
On 02/07/12 23:55, Alexander Q. wrote:
For example, if I have "return(list1, list2, list 3)" within a function
"mainFunc()" that takes no arguments, how do I use list1, list2, and
list3 outside of the function
Just assign the result to 3 variables:
L1,L2,L3 = mainFunc()
This is just a specia
I understand the basics of tuples, but that formulation returned the
following error:
Traceback (most recent call last):
File "C:\Users\Owner\Desktop\MIT\Sets\Set3.py", line 34, in
list4 = tuplesresult[1]
TypeError: 'NoneType' object is not subscriptable
When I tried to assign "tuplesresul
On 07/02/2012 10:23 PM, Alexander Q. wrote:
> I understand the basics of tuples, but that formulation returned the
> following error:
>
> Traceback (most recent call last):
> File "C:\Users\Owner\Desktop\MIT\Sets\Set3.py", line 34, in
> list4 = tuplesresult[1]
> TypeError: 'NoneType' object
17 matches
Mail list logo