paul that is awesome so much better than what i did which was lamo
brute force method. I formmatted and reformatted my input data and
stuffed it in a HUGE dictionary it was stupid and kludgy i hope
to study all these approaches and learn something here's what i
came up with ... with
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> man, now that is beautifully done. Paul, I wish I knew about pyparsing
> a while ago. I could have used it in a few projects. :)
>
Thanks for the compliment! I'll be the first to admit that pyparsing can be
a bit persnickety in some ap
man, now that is beautifully done. Paul, I wish I knew about pyparsing
a while ago. I could have used it in a few projects. :)
--
http://mail.python.org/mailman/listinfo/python-list
"kpp9c" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> still working on it and also fixing the input data. I think for
> simplicity and consistency's sake i will have *all* time values input
> and output as hh:mm:ss maybe that would be easier but i have a few
> thousand find and
so all the imput will look more like this now... ( no comments either)
tem_133, DAT_20, 7, 00:58:25, 01:15:50
Item_134, DAT_20, 8, 01:15:50, 01:32:15
Item_135, DAT_21, 1, 00:01:00, 00:36:15
Item_136, DAT_60, 3, 00:18:30
Item_136, DAT_60, 4, 00:19:30
Item_136, DAT_60, 5, 00:23:00, 00:28:00
Item
still working on it and also fixing the input data. I think for
simplicity and consistency's sake i will have *all* time values input
and output as hh:mm:ss maybe that would be easier but i have a few
thousand find and replaceeseseses to do now (yes i am doing them by
hand)
grr... this is hard
using my code above...
start = x[3].split(":") #split the minutes from the seconds
this splits something like 1:22:40 into three parts
1(hours), 22(mintes), 40(seconds)
so, you must add a special case handler...
if len(start) == 3:
{
start[1] = int(start[0]) * 60 + int(start[1])
start = start[1], s
post your script here so we can go over it with you.
--
http://mail.python.org/mailman/listinfo/python-list
I also notice that there is the is the 'datetime' module, which is new
to version 2.3, which i now have access to. My feeling is that this
will do much of what i want, but i can't get my head round the standard
library reference stuff
http://www.python.org/doc/lib/module-datetime.html
I don't hav
Thanks for this Everyone!
Trying to work with all the stuff folks are giving me on this i a have
come across a problem... down
the line i notice that some of the times will also have an hour as well
as in H:M:S (e.g. 1:22:40)
so in some cases i would need to convert H:M:S to sec and some just M:S
Gosh Mark you must be a friggin genius or something. I can't even begin
to read your code. Anyways, I think mine is easier to understand. My
program has all the functions (save a couple) that you would need for
your project. It's an exercise for you to copy and paste what you want
where you want it
read below for my sample script
kpp9c wrote:
> I am kind of in a bit of a jam (okay a big jam) and i was hoping
that
> someone here could give me a quick hand. I had a few pages of time
> calculations to do. So, i just started in on them typing them in my
> time calculator and writing them in
kpp9c wrote:
The input would like so:
[...]
Attached is a first cut at a parser that actually uses the raw content
of your original email. You'll notice that the net effect is that the
parser instance's items attribute contains the source ordered list of
items with attributes for each of the
Yes, Ultimately it will be part of a large digital archive available
for researchers on site and eventually probably on-line for the New
York Public Library. It is a huge undertaking and most of the
soundfiles have been made. I (we) are struggling with the sheer size
of the documentation Sorr
"kpp9c" <[EMAIL PROTECTED]> writes:
> These are analog tapes that were digitized (on to CD or a digital tape)
> that have now been exported as individual files that are meant to be
> part of an on-line audio archive. ...
> I was hoping and
> praying that some one here was feeling generous and show
I am kind of in a bit of a jam (okay a big jam) and i was hoping that
someone here could give me a quick hand. I had a few pages of time
calculations to do. So, i just started in on them typing them in my
time calculator and writing them in by hand. Now i realize, that i
really need a script to d
16 matches
Mail list logo