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
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)
Thanks mucho! That was it!
-- Steve Ferg
--
http://mail.python.org/mailman/listinfo/python-list
is why creating a global root variable and a
local root variable causes the script to crash.
Even more puzzling... if I uncomment line C, so that root in line B
refers to a global root variable, the script still crashes.
I'm totally baffled. Does anybody know what is going on here?
-- Steve Ferg
I stand corrected. I didn't know the background. Thanks for
supplying the larger picture. :-)
--
http://mail.python.org/mailman/listinfo/python-list
Thanks mucho!!
--
http://mail.python.org/mailman/listinfo/python-list
In this little script:
pre
import pdb
pdb.set_trace()
def main():
xm = 123
print(Hello,world!)
main()
/pre
When I run this, I use pdb to step through it until I reach the point
in main() where the xm variable has been initialized, and then I try
to use pdb to reset the value of
Seriously, we can't keep doing your thinking for you. The answers
to all your questions are section 9 of the tutorial.
This is is just the kind of newbie-hostile smart-ass reply that we do
not want to see on comp.lang.python.
Let's try again:
I think that the answers to all your questions
http://nedbatchelder.com/code/cog/
--
http://mail.python.org/mailman/listinfo/python-list
I'd like to start with two dates as strings, as
1961/06/16 04:35:25 and 1973/01/18 03:45:50
How do I get the strings into a shape that will accommodate a difference?
Pyfdate http://www.ferg.org/pyfdate/index.html
has a numsplit function that should do the trick:
This is a question for the language mavens that I know hang out here.
It is not Python related, except that recent comparisons of Python to
Google's new Go language brought it to mind.
NOTE that this is *not* a suggestion to change Python. I like Python
just the way it is. I'm just curious
io import StringIO
else:
from Tkinter import *
import tkFileDialog as tk_FileDialog
from StringIO import StringIO
/pre
-- Steve Ferg
--
http://mail.python.org/mailman/listinfo/python-list
If you are looking for *classics*, then you can't beat Michael
Jackson's Principles of Program Design and System Development.
They are pre-ObjectOriented, but if you really want to understand what
application programming is all about, this is where you should
start.
I also recommend Eric S.
I think you mean this clbuttic post:
http://osteele.com/archives/2004/11/ides
That's it! Thanks very much, Marco!!
It is good to read it again. It is like visiting a place where you
grew up years ago, and finding that it is completely different than
the way you remember it. It is surprising
Thanks. Your observations would make good comments on the original
blog message that I'm seeking. Do you have a link to that blog?
--
http://mail.python.org/mailman/listinfo/python-list
also think Boy, that guy really got it right. But despite
repeated and prolonged bouts of googling I haven't been able to find
the article again. I must be using the wrong search terms or
something.
Does anybody have a link to this article?
Thanks VERY MUCH in advance,
-- Steve Ferg
--
http
I'd suggest looking at Komodo IDE
--
http://mail.python.org/mailman/listinfo/python-list
Just a follow-up:
I've just uploaded a version of Easygui that works with Python 2.x and
3.x.
http://easygui.sourceforge.net/current_version/index.html
I blog a bit about it at
http://pythonconquerstheuniverse.blogspot.com/2009/03/moving-to-python-30-part3.html
--
-- Steve Ferg
--
http://mail.python.org/mailman/listinfo/python-list
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
.
-- Steve Ferg
--
http://mail.python.org/mailman/listinfo/python-list
21 matches
Mail list logo