Re: Python Boolean Logic

2017-09-22 Thread steve . ferg . bitbucket
You have a lot of assignment statements, but nothing that produces output. Try adding statements like this at appropriate places... print ("bool_one = ", bool_one) -- https://mail.python.org/mailman/listinfo/python-list

Re: How to increment date by week?

2013-06-04 Thread steve . ferg . bitbucket
pyfdate -- http://www.ferg.org/pyfdate/ from pyfdate import Time w = Time(2013,1,2) # start with January 2, 2013, just for example # print the ISO weeknumber and date for 52 weeks # date looks like this: October 31, 2005 for i in range(52): w = w.plus(weeks=1) print (w.weeknumber, w.d)

problem with pydoc under python 2.6.1

2009-03-05 Thread steve . ferg . bitbucket
Has anybody encountered problems running pydoc with version 2.6.1? I'm getting an error message that pydoc cannot import namedtuple (details below). (I'm running under 64-bit Windows Vista, although that probably is not important.) Here's my batch file, pydoc_test.bat:

Re: problem with pydoc under python 2.6.1

2009-03-05 Thread steve . ferg . bitbucket
Problem solved Yinon's messages prompted me to take another look at my own code (below). I realized that in the batch file I am looking for pydoc.py in different locations for Python25 and Python26, but I am executing python.exe without changing the path. Which means that I am executing the

Looking for tips on running Python version 2.6 and 3.0 together on same *WINDOWS* machine

2009-02-24 Thread steve . ferg . bitbucket
I'm looking for tips on installing and running Python version 2.6 and version 3.0 together on same Windows machine. I'd like to install both 2.6 and 3.0 together on the same Windows (Vista) machine, so I can test programs under both versions. Is it possible to install both versions on the same