I'm following the tutorial and ran into a snag. Here is the console
output.( Can I do this from IDLE?)
C:\Sandia_Meteors\Sentinel_Development\Learn_Python>c:\python25\python
setup.py
Traceback (most recent call last):
File "setup.py", line 2, in
import py2exe
ImportError: No module n
On Feb 17, 2010, at 4:17 PM, Sander Sweers wrote:
On 17 February 2010 22:37, David Perlman wrote:
As far as I can tell, this should always work. So wouldn't it be
nice if
there were a less convoluted way to get this??
There is pytz [1] which should provide a simpler way to manage
timezone
On 17 February 2010 22:37, David Perlman wrote:
> As far as I can tell, this should always work. So wouldn't it be nice if
> there were a less convoluted way to get this??
There is pytz [1] which should provide a simpler way to manage
timezone info in python.
Greets
Sander
[1] http://pytz.sour
On Wed, Feb 17, 2010 at 4:37 PM, David Perlman wrote:
> OK, here's a function that does precisely what I want:
>
> def tzDelta():
> """by whatever means necessary, return the current offset of the local time
> from utc."""
> s=time.time()
> t,u=time.localtime(s),time.gmtime(s)
> osec=3600*(t[3
On Wed, Feb 17, 2010 at 03:24:26PM -0600, David Perlman wrote:
>But this doesn't help, because then you still don't know whether it's
>dst or not. You then would have to jump through whatever
>convolutions to do that calculation.
>
>All I want to know is the *current* offset between local time and
OK, here's a function that does precisely what I want:
def tzDelta():
"""by whatever means necessary, return the current offset of the
local time from utc."""
s=time.time()
t,u=time.localtime(s),time.gmtime(s)
osec=3600*(t[3]-u[3]) + 60*(t[4]-u[4]) + (t[5]-u[5])
return datetime.timed
But this doesn't help, because then you still don't know whether it's
dst or not. You then would have to jump through whatever convolutions
to do that calculation.
All I want to know is the *current* offset between local time and
utc. I know the system has this information already; it doe
On Wed, Feb 17, 2010 at 3:48 PM, David Perlman wrote:
> Surely there is a way to simply print out the local time, date and time zone
> without needing to write your own class... I can't believe this is the only
> way...
>
> Here's why I don't believe it. Both the datetime and time modules provid
On Wed, Feb 17, 2010 at 3:12 PM, David Perlman wrote:
> Yeah, I got this part. The thing that's hanging me up is that there doesn't
> seem to be any way to get a tzinfo instance that contains the current local
> time zone information. You can do time.timezone to get the seconds from
> UTC, but t
Yeah, I got this part. The thing that's hanging me up is that there
doesn't seem to be any way to get a tzinfo instance that contains the
current local time zone information. You can do time.timezone to get
the seconds from UTC, but there doesn't seem to be any way to convert
that into a
Dnia 17-02-2010 o 00:41:21 Shurui Liu (Aaron Liu)
napisał(a):
But I have tried, it doesn't work on my workstation, i don't know why. I
run
it on my python software, python 3.0.
The script is written in Python 2. Try rewriting it, mostly by changing
the number formatting, function syntax and
On Wed, Feb 17, 2010 at 12:44:02PM -0600, David Perlman wrote:
>I have been really scratching my head over this, it seems like there
>*should* be a nice easy way to do what I want but I can't find it for
>the life of me.
...
>But a) I don't know how to stick the offset info into a datetime
>object,
On Wed, Feb 17, 2010 at 11:31 AM, Karjer Jdfjdf wrote:
> I'm relatively new at Python and I'm trying to write a function that fills
> a dictionary acording the following rules and (example) data:
>
> Rules:
> * No duplicate values in field1
> * No duplicates values in field2 and field3 simultaneou
I have been really scratching my head over this, it seems like there
*should* be a nice easy way to do what I want but I can't find it for
the life of me.
What I would like to do would be something like this:
>>> datetime.datetime.now().isoformat()
'2010-02-17T12:13:17.913260-06:00'
But wha
> -Original Message-
> From: tutor-bounces+bermanrl=cfl.rr@python.org [mailto:tutor-
> bounces+bermanrl=cfl.rr@python.org] On Behalf Of Wayne Watson
> Sent: Wednesday, February 17, 2010 10:48 AM
> To: *tutor python
> Subject: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2
On 17 February 2010 16:31, Karjer Jdfjdf wrote:
> I'm relatively new at Python and I'm trying to write a function that fills
> a dictionary acording the following rules and (example) data:
>
> Rules:
> * No duplicate values in field1
> * No duplicates values in field2 and field3 simultaneous (hig
> -Original Message-
> [mailto:tutor-bounces+mike.hansen=atmel@python.org] On
> Behalf Of Alan Gauld
> Sent: Tuesday, February 16, 2010 5:58 PM
>
> "Hansen, Mike" wrote
>
> > I'm aware of Pep8. It's a good starting point. Anything
> more in-depth
> > than Pep8 and the Zen of Pytho
I'm relatively new at Python and I'm trying to write a function that fills a
dictionary acording the following rules and (example) data:
Rules:
* No duplicate values in field1
* No duplicates values in field2 and field3 simultaneous (highest value in
field4 has to be preserved)
Rec.no field1,
(This is the same msg as above, but I meant XP. I'm transitioning from
XP to Win7, and am operating with two monitors and keyboards side by
side. I thought I had used W7, but nope. Corrected wrestling it Subject.)
I've finally decided to see if I could make an executable out of a py
file. XP.
Wayne Watson wrote on 16 February 2010 at 17:58:-
> In Win7 IDLE, when I type in something with a syntax
> problem, a bell rings. How do I stop that? I've looked
> at Control Panel Sounds, but don't see anything of
> apparent use.
I don't get this on my Win7 machine. But anyway, the sound is
prob
wrote
Hi i am trying to write a pseudocode to read an input number and its 15%
output value.
The counter is supposed to process 4 input numbers. Help please!!
Can you articulate what the program is supposed to do in more detail?
Your description is very confusing to me. What is the program
21 matches
Mail list logo