file ex1.py:
C:\Users\Carter Danforth\python ex1.py
python: can't open file 'ex1.py': [Errno 2] No such file or directory
ex1.py is located in "pythonpractice" on my desktop and I've updated the
modules, here's the output from sys.path:
['', 'C:\\Window
ot;;
>reply-type=original
>
>
> "Karim" wrote
>
> > Is there any equivalent to JAVACC in python (or lex yacc) to create
> > grammary
> > for config or format file?
>
> Thats kind of what ConfiogParser does - it gives you tools to
> read/
Hi, I'm trying to a create a basic addressbook for practice. I'm using a
dictionary with cpickle, though I'm not sure how to persistently store each
instance in the dictionary. Below is the code I have so far.
If I run it once and add a contact and the details, it's fine. p.load(f)
shows the detai
0:13 +1000
> From: Steven D'Aprano
> To: tutor@python.org
> Subject: Re: [Tutor] how to create a persistent dictionary w/ cpickle?
> Message-ID: <201009090750.14230.st...@pearwood.info>
> Content-Type: text/plain; charset="utf-8"
>
> On Thu, 9 Sep 2010 03:43:42 am
Hi, I'm writing a program that's testing speed calculation of calendar dates
from any date spanning 1600-3000. I want it to generate a random date and
then prompt the user to indicate the correct day of the week using Zeller's
formula.
Included below is just some of the code to show what I'm havin
lse:
x += 1
n += 1
t2m = time.localtime().tm_min
t2s = time.localtime().tm_sec
t2 = t2m + t2s/100.0
td = t2 - t1
print '\n',x,'out of 10 wrong\nAvg time/question:',td/10,'\nTotal time:',td
On Mon, Sep 27, 2010 at 10:21 PM, Dave Angel wrote:
>
>
gel wrote:
> On 9/28/2010 5:11 PM, Carter Danforth wrote:
>
>> Thanks for the replies, Dave and Joel. The reason I'm not just using the
>> time or datetime modules for a random date is because it's restricted to
>> 1970-2038; I'm pulling dates from 1600-3099
On Wed, Sep 29, 2010 at 1:53 PM, Dave Angel wrote:
> On 9/28/2010 5:11 PM, Carter Danforth wrote:
>
>> Thanks for the replies, Dave and Joel. The reason I'm not just using the
>> time or datetime modules for a random date is because it's restricted to
>> 1970