RE: Python Worship

2006-11-30 Thread Coates, Steve (ACHE)

Wow! That must have been a pretty early beta. 

> -Original Message-
> From: Nick [mailto:[EMAIL PROTECTED] 
> Sent: 30 November 2006 17:16
> To: python-list@python.org
> Subject: Python Worship
> 
> http://www.sciencedaily.com/releases/2006/11/061130081347.htm
> 
> World's Oldest Ritual Discovered -- Worshipped The Python 70,000 Years
> Ago
> 
> Nick
> 
> 
> 

**
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
**
-- 
http://mail.python.org/mailman/listinfo/python-list


RE: pretty windows installer for py scripts

2005-09-08 Thread Coates, Steve (ACHE)



> Any recommendations on a windows packager/installer that's
> free? I need it to allow non-tech users to install some
> python scripts... you know, "Click Next"... "Click Next"...
> "Click Finish"... "You're Done!" and everything just
> magically works ;)
>
>
Last time I had to do this, I used NSIS from Nullsoft. Try
http://nsis.sf.net

HTH
Steve

**
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
**
-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Determining actual elapsed (wall-clock) time

2005-07-03 Thread Coates, Steve (ACHE)



> -Original Message-
> From: Roy Smith [mailto:[EMAIL PROTECTED]
> Sent: 02 July 2005 21:22
> To: python-list@python.org
> Subject: Re: Determining actual elapsed (wall-clock) time

> If you get the UTC time, daylight savings time doesn't enter
> the equation. 
> If the system clock is reset, however, you're out of luck.  I
> can't think of any time-related API which doesn't rely on the
> system clock as a reference.  If the system clock is good,
> you get good time.  If the system clock sucks, or changes, you don't.
>
> If you care about time, you want your system clock controlled
> by NTP. 
> There's just no excuse not to.
>
> Is there some reason you can't just use the system clock?  I
> suppose if you had to, you could hobble together your own NTP
> client which keeps network time independent of the system
> clock.  But that would be a lot of work and it's hard to
> imagine the effort would be justified.
>
>

There is already an NTP client in the ASPN cookbook :-

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/117211

**
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
**
-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Formatting Time

2005-06-03 Thread Coates, Steve (ACHE)

> -Original Message-
> From: Ognjen Bezanov [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2005 09:30
> To: python-list@python.org
> Subject: Formatting Time
>
> I never thought id need help with such a thing as time
> formatting (admittadly i never did it before) but ok, i guess
> there is a first for everything.
>
> I have a float variable representing seconds, and i want to
> format it like this:
>
> 0:00:00  (h:mm:ss)
>
> Now search as I might i am finding this quite elusive, i had
> a look at the time module but that seems overly complicated
> for this. Anyone got any simple solutions to doing this? cheers!
>

c:\Python24\programs>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> t=36100.0
>>> time.strftime('%H:%M:%S',time.gmtime(t))
'10:01:40'
>>>

Steve

**
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
**
-- 
http://mail.python.org/mailman/listinfo/python-list


RE: "Collapsing" a list into a list of changes

2005-02-05 Thread Coates, Steve (ACHE)

It's not _exactly_ what you asked for but it may be enough...

Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from sets import Set
>>> l = [0,0,1,1,1,2,2,3,3,3,2,2,2,4,4,4,5]
>>> s = Set(l)
>>> s
Set([0, 1, 2, 3, 4, 5])
>>> l2 = list(s)
>>> l2
[0, 1, 2, 3, 4, 5]
>>>

I say it's not exactly what you wanted because I don't think the
ordering
of l2 is necessarily the same as l. That may or may not be a problem for
you.

Regards
Steve


> -Original Message-
> From: Alan McIntyre [mailto:[EMAIL PROTECTED]
> Sent: 04 February 2005 17:44
> To: python-list@python.org
> Subject: "Collapsing" a list into a list of changes
>
> Hi all,
>
> I have a list of items that has contiguous repetitions of
> values, but the number and location of the repetitions is not
> important, so I just need to strip them out.  For example, if
> my original list is [0,0,1,1,1,2,2,3,3,3,2,2,2,4,4,4,5], I
> want to end up with [0,1,2,3,2,4,5].
>
> Here is the way I'm doing this now:
>
> def straightforward_collapse(myList):
>  collapsed = [myList[0]]
>  for n in myList[1:]:
>  if n != collapsed[-1]:
>  collapsed.append(n)
>
>  return collapsed
>
> Is there an elegant way to do this, or should I just stick
> with the code above?
>
> Thanks,
> Alan McIntyre
> http://www.esrgtech.com
>
>

**
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
**
--
http://mail.python.org/mailman/listinfo/python-list