On Apr 5, 2005 11:26 AM, John Carmona <[EMAIL PROTECTED]> wrote:
> But how do you use the prmonth command, if you, for example, want to write
> something asking you:
>
> to enter a year (this I know)
> to enter a month of that year
> and print just the month
>>> import calendar
>>> year = int(raw
Forgot to Reply-All. Dagnabbit.
-- Forwarded message --
From: Kristian Zoerhoff <[EMAIL PROTECTED]>
Date: Apr 5, 2005 3:33 PM
Subject: Re: [Tutor] Calendar question
To: John Carmona <[EMAIL PROTECTED]>
On Apr 5, 2005 3:08 PM, John Carmona <[EMAIL PROTECTED]>
On Apr 5, 2005 2:49 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'm a cell biologist that is learning python. I've been following Alan
> Gauld's tutorial online and I've hit a wall.
>
> I'm typing
>
> class Spam:
> """A meat for combining with other foods
>
>
On Apr 6, 2005 7:12 AM, John Carmona <[EMAIL PROTECTED]> wrote:
>
> Now I have got another question raising from this script. Would it be
> possible for the person doing the input to use either the months name in
> writing and also in number?
I can think of 2 ways to accomplish this.
1. Try to co
On Apr 6, 2005 11:58 AM, John Carmona <[EMAIL PROTECTED]> wrote:
> When you say to double-up the dictionary do you mean using the following
> method:
>
> Dict = [{1:1,2:4,etc.},
> {3:9,4:16, etc}]
You're close, but a list of dicts is overkill here; stick to one big
dict, and leave the keys as str
On Apr 8, 2005 6:29 AM, BRINER Cedric <[EMAIL PROTECTED]> wrote:
>
> <(hint: rsmFirstname = françois)>
>
> import pickle
>
> q=pickle.dumps(a)
> >>> type(q)
>
> so this is a string
>
> >>> unicode(q)
> Traceback (most recent call last):
> File "", line 1, in ?
> UnicodeDecodeError: 'ascii' co
On Apr 11, 2005 11:00 AM, Alberto Troiano <[EMAIL PROTECTED]> wrote:
>
> To give you a graphic example how can make this function to run every 5
> seconds
>
> def foo():
>
> print "Hello world!"
>
I'm not Kent, but I play him on TV ;-)
import time
def foo():
print "Hello world!"
On Apr 11, 2005 11:03 AM, Kristian Zoerhoff <[EMAIL PROTECTED]> wrote:
> while true:
> foo()
> time.sleep(5)
Err, make that
while True:
Note to self: test before posting.
--
Kristian
kristian.zoerhoff(AT)gmail.com
zoerhoff(A
On 5/20/05, William O'Higgins <[EMAIL PROTECTED]> wrote:
>
> Fascinating. I was opening the file read-write (r+) and it didn't work.
> Are there only the few file-access methods (read (r), write (w), append
> (a) and read-write (r+))? Sometimes I like to prepend or to clobber or
> to address in b
On 8/3/05, Nathan Pinno <[EMAIL PROTECTED]> wrote:
> The error was:
> Warning: Problem with getpass. Passwords may be echoed.
This sounds like a problem with your terminal. What OS are you running
this on? It appears to be some variant of Windows, based on your
earlier posts, but the particular ve
10 matches
Mail list logo