by KDoiron on Wed Jul 02, 2008 6:58 am
If you have Python installed on your PC, you can store the program files (program.py, for example) on your desktop and associate the 'py' extension with Python, in the same way that 'doc' and 'xls' are associated with Word and Excel. When you click on the icon, the program will run, using Python. The only reason you might want to look at py2exe is so that you can give the executable code to someone who doesn't have Python on their PC. In my office, for example, I have Python on my PC for development. When I'm ready to distribute a program, I compile the program to an exe using py2exe, and store that exe file on a network drive. I then put a shortcut to that exe on the users' desktops. There's no way my company would allow development tools on users' computers.
As for Wesley Chan's book, I'm not too familiar with it. I learned using "Learning Python" by Mark Lutz and David Ascher. It was a good introduction to Python programming, but one criticism I heard from others is that it does assume that you have some understanding of programming, not necessarily of a specific language, but of programming in general.
There's also a 'free books' thread on this board - I think it's under 'general'. And if you look around the beginner's section, there are other discussions about the merits of different books too. I think I saw one with a title something like "How To Think Like A Programmer". That might be useful too, although it might only be online.
------------------------------------------------------
** MODERATOR **
------------------------------------------------------
Python 2.5 / Windows XP / slowly getting into Linux too
------------------------------------------------------
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?