From arej at stud.cs.uit.no Fri Jul 2 03:32:52 2004 From: arej at stud.cs.uit.no (Are Johannessen) Date: Fri Jul 2 03:32:51 2004 Subject: [PythonCE] Python for Pocket PC Message-ID: <40E50FA4.2010005@stud.cs.uit.no> Hello! I install python2.2 + for my Pocket PC (Qtek). Are there some GUI available for this installation? I have used Tkinter GUI on linux/win platform. If there are some gui available on this python2.2 installation, is it like Tkinter?? Or is the version smaller and more limited than Tkinter? Thanks for answer! -------------- next part -------------- An embedded message was scrubbed... From: Are Johannessen Subject: Python for Pocket PC Date: Fri, 02 Jul 2004 08:58:30 +0200 Size: 775 Url: http://mail.python.org/pipermail/pythonce/attachments/20040702/c1bba3c8/PythonforPocketPC.mht From arej at stud.cs.uit.no Fri Jul 2 03:47:09 2004 From: arej at stud.cs.uit.no (Are Johannessen) Date: Fri Jul 2 03:47:08 2004 Subject: [PythonCE] Python Pocket Pc question Message-ID: <40E512FD.8010705@stud.cs.uit.no> Hello! I install python2.2 + for my Pocket PC (Qtek). Are there some GUI available for this installation? I have used Tkinter GUI on linux/win platform. If there are some gui available on this python2.2 installation, is it like Tkinter?? Or is the version smaller and more limited than Tkinter? Thanks for answer! From johnny at debris.demon.nl Fri Jul 2 04:22:33 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Fri Jul 2 04:22:40 2004 Subject: [PythonCE] Python for Pocket PC In-Reply-To: <40E50FA4.2010005@stud.cs.uit.no> References: <40E50FA4.2010005@stud.cs.uit.no> Message-ID: <40E51B49.2010706@debris.demon.nl> Are Johannessen wrote: > Hello! > I install python2.2 + for my Pocket PC (Qtek). > Are there some GUI available for this installation? > I have used Tkinter GUI on linux/win platform. > If there are some gui available on this python2.2 installation, > is it like Tkinter?? > Or is the version smaller and more limited than Tkinter? > Ehrm, no Tkinter on that version at all, the only thing available that closely resembles a GUI toolkit is the rather antique win32gui package. There is, however, a Python 2.3 available *with* Tkinter here: http://debris.demon.nl/PythonCE-2.3 (it's somewhat 'experimental' but a lot seems to work quite okay). Cheers, Guido From kashtan at Validus.Com Sun Jul 4 03:37:00 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Sun Jul 4 03:36:55 2004 Subject: [PythonCE] Updated Python 2.3.4 now available Message-ID: <000001c46199$b1390090$050310ac@DAVIDSLAPTOP> I have finished virtually all the work to make it pass the Python regression tests. The ONLY test that does not run successfully with this version is "test_mmap" (there are some win32 memory mapping API problems that I have not debugged yet). As usual, it is available at http://www.validus.com/~kashtan Testing differences from regression tests on Windows/XP: -------------------------------------------------------- test_atexit - skipped no popen() test__bsddb - skipped no _bsddb test_bz2 - skipped no bz2 test_minidom - skipped no expat test_popen - skipped no popen() test_popen2 - skipped no popen() test_pyexpat - skipped no expat test_sax - skipped no XML (no expat) To Do ----- Add command-line switch to python.c to inhibit PCCESHELL test_mmap crashed -- Problem mapping the file. Won't be able to close file when mapped. David Kashtan Validus Medical Systems From kashtan at Validus.Com Mon Jul 5 04:47:05 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Mon Jul 5 04:47:01 2004 Subject: [PythonCE] Need to make one more fix to the Python 2.3.4 distribution for Windows/CE Message-ID: <000001c4626c$a5ec3fd0$050310ac@DAVIDSLAPTOP> Mark D. discovered that Tkinter would hang. This was due to a loop in the compatibility code that implements relative pathname support (it gives Python on Windows/CE the concept of a working directory). I have re-posted the distribution (with the problem fixed) on http://www.validus.com/~kashtan This distribution also has one more feature. If you invoke Python (usually through a symbolic link) with a command line whose first option is "/nopcceshell" then the internal shell window is not initialized. This is good for Python programs (like those using Tkinter) that have their own windows and don't want a Python shell window in the way. David Kashtan Validus Medical Systems Inc. From kashtan at Validus.Com Tue Jul 6 00:28:47 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Tue Jul 6 03:00:21 2004 Subject: [PythonCE] Yet one more (minor) change to Python 2.3.4 for Windows/CE Message-ID: <000001c462df$7024de70$981e2ec7@DAVIDSLAPTOP> This one has been on my list of things to do for a LONG time. It was really annoying to not be able to interrupt a runaway Python program. The current distribution at http://www.validus.com/~kashtan now has a File Menu item "Interrupt". It is disabled (gray) when the Python Shell is waiting for input but is enabled when the Python Shell is executing commands. Selecting the "Interrupt" menu item simulates a keyboard interrupt. David Kashtan Validus Medical Systems Inc. From isrgish at fastem.com Tue Jul 6 05:33:30 2004 From: isrgish at fastem.com (Isr Gish) Date: Tue Jul 6 05:33:41 2004 Subject: [PythonCE] Updated Python 2.3.4 now available Message-ID: <20040706033340.BBB7E1E4005@bag.python.org> Thanks for the update. Also I would like to get the *.py files. If you canlplease tell me where to get it. Thanks in advance, All the best, Isr -----Original Message----- >From: "David L. Kashtan" >Sent: 7/4/04 3:37:00 AM >To: "pythonce@python.org" >Subject: [PythonCE] Updated Python 2.3.4 now available > >I have finished virtually all the work to make it pass the Python >regression tests. The ONLY test that does not run successfully with >this version is "test_mmap" (there are some win32 memory mapping API >problems that I have not debugged yet). > >As usual, it is available at http://www.validus.com/~kashtan > >Testing differences from regression tests on Windows/XP: >-------------------------------------------------------- >test_atexit - skipped no popen() >test__bsddb - skipped no _bsddb >test_bz2 - skipped no bz2 >test_minidom - skipped no expat >test_popen - skipped no popen() >test_popen2 - skipped no popen() >test_pyexpat - skipped no expat >test_sax - skipped no XML (no expat) > >To Do >----- >Add command-line switch to python.c to inhibit PCCESHELL >test_mmap crashed -- Problem mapping the file. Won't be able to close file when mapped. > > >David Kashtan >Validus Medical Systems > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From dev-pythonce at smartology.nl Tue Jul 6 07:57:17 2004 From: dev-pythonce at smartology.nl (Remi Cool) Date: Tue Jul 6 07:57:21 2004 Subject: [PythonCE] Updated Python 2.3.4 now available In-Reply-To: <20040706033340.BBB7E1E4005@bag.python.org> References: <20040706033340.BBB7E1E4005@bag.python.org> Message-ID: <200407060757.18346.dev-pythonce@smartology.nl> Use the *.py files from your windows or linux python 2.3.4 distribution. On Tuesday 06 July 2004 05:33, Isr Gish wrote: > Thanks for the update. > > Also I would like to get the *.py files. If you canlplease tell me > where to get it. > > Thanks in advance, > All the best, > Isr > > -----Original Message----- > > >From: "David L. Kashtan" > >Sent: 7/4/04 3:37:00 AM > >To: "pythonce@python.org" > >Subject: [PythonCE] Updated Python 2.3.4 now available > > > >I have finished virtually all the work to make it pass the > > Python regression tests. The ONLY test that does not run > > successfully with this version is "test_mmap" (there are some > > win32 memory mapping API problems that I have not debugged > > yet). > > > >As usual, it is available at http://www.validus.com/~kashtan > > > >Testing differences from regression tests on Windows/XP: > >-------------------------------------------------------- > >test_atexit - skipped no popen() > >test__bsddb - skipped no _bsddb > >test_bz2 - skipped no bz2 > >test_minidom - skipped no expat > >test_popen - skipped no popen() > >test_popen2 - skipped no popen() > >test_pyexpat - skipped no expat > >test_sax - skipped no XML (no expat) > > > >To Do > >----- > >Add command-line switch to python.c to inhibit PCCESHELL > >test_mmap crashed -- Problem mapping the file. Won't be able > > to close file when mapped. > > > > > >David Kashtan > >Validus Medical Systems > > > > > >_______________________________________________ > >PythonCE mailing list > >PythonCE@python.org > >http://mail.python.org/mailman/listinfo/pythonce > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce From isrgish at fastem.com Wed Jul 7 04:42:42 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 7 04:42:53 2004 Subject: [PythonCE] New release (2.3.4) Message-ID: <20040707024251.804D91E400D@bag.python.org> First I want to thank David for putting out this release. I'm happy to see that there are still people who are interested to make Python work on the Pocket PC. Know there are a few things that I would like to mention. 1) Is there a way to have more then one instance of python running? In the previous release Richard Deeley had hacked the pcceshell so that you could run multiple instances. but know I don't even see the pcceshell. 2) There seems to be a problem in the error reports of the traceback for I/O (files) and Windows (when using the _winreg module) errors. For example if I try to open a file for reading that doesn't exist I get this error: IOError: [Errno 7] T: The "T" is not very informative. Similar thing is with the WindowsError. 3) Is there a way to add thing for when python starts up. For example I would like to add the folder of my scripts to the path, and the path of the docs to os.environ['PYTHONDOCS']. 4) There are also other changes that people made to the previous releases. My question is if there is any way to incorporate them. For example the exec* functions hadn't worked, Telion made a module osce that made some work. (there were others also). All the best, Isr From isrgish at fastem.com Wed Jul 7 05:16:20 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 7 05:16:26 2004 Subject: [PythonCE] Updated Python 2.3.4 now available Message-ID: <20040707031625.520D91E4015@bag.python.org> Thanks, Isr -----Original Message----- >From: "David L. Kashtan" >Sent: 7/6/04 12:03:45 AM >To: "Isr Gish" >Subject: RE: [PythonCE] Updated Python 2.3.4 now available > >> Also I would like to get the *.py files. If you canlplease tell me where to get it. > >Just get the Python 2.3.4 source distribution from sourceforge.net > >David > From kashtan at Validus.Com Wed Jul 7 06:55:28 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Wed Jul 7 06:55:34 2004 Subject: [PythonCE] New release (2.3.4) In-Reply-To: <20040707024251.804D91E400D@bag.python.org> Message-ID: <000001c463de$9f89bc30$050310ac@DAVIDSLAPTOP> > 1) Is there a way to have more then one instance of python running? In the previous release Richard Deeley had > hacked the pcceshell so that you could run multiple instances. but know I don't even see the pcceshell. The pcceshell is now something internal to python.exe -- less things necessary to have a running Python Shell, so less things to go wrong. It does specifically look for other versions of the Python Shell running and resumes it. I can add a command line switch that disables this. > 2) There seems to be a problem in the error reports of the traceback for I/O > (files) and Windows (when using the _winreg module) errors. For example if I > try to open a file for reading that doesn't exist I get this error: > IOError: [Errno 7] T: > The "T" is not very informative. > Similar thing is with the WindowsError. This is because there is no sys_errlist[] in the Python "C" runtime. I will see what I can do to emulate this. > 3) Is there a way to add thing for when python starts up. For example I would > like to add the folder of my scripts to the path, and the path of the docs to > os.environ['PYTHONDOCS']. Will implement something for this as well. > 4) There are also other changes that people made to the previous releases. > My question is if there is any way to incorporate them. > For example the exec* functions hadn't worked, Telion made a module > osce that made some work. (there were others also). If these were external modules (i.e. they are .pyd or .dll files) then we should be able to easily incorporate them. David From isrgish at fastem.com Wed Jul 7 07:29:09 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 7 07:29:14 2004 Subject: [PythonCE] New release (2.3.4) Message-ID: <20040707052913.7D6C71E400D@bag.python.org> Thanks David for the imediate reply, and for all the work that your doing. (see below) -----Original Message----- >From: "David L. Kashtan" >Sent: 7/7/04 12:55:28 AM >To: "Isr Gish", "pythonce@python.org" >Subject: RE: [PythonCE] New release (2.3.4) > [snip] >> 4) There are also other changes that people made to the previous releases. >> My question is if there is any way to incorporate them. >> For example the exec* functions hadn't worked, Telion made a module >> osce that made some work. (there were others also). > >If these were external modules (i.e. they are .pyd or .dll files) then we should >be able to easily incorporate them. The files are .py or .pyc files. What I mean to say is that it may be appropeate to incorperate them into the CVS or something. (I don't realy know these type of things. My only programing experiance is in a program called PocketC and know in Python.) I can e-mail to you the ffile that I have if you are intrested. > >David > All the best, Isr From isrgish at fastem.com Thu Jul 8 04:17:30 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Jul 8 04:17:33 2004 Subject: [PythonCE] Running scripts by double clicking Message-ID: <20040708021732.DE4191E4003@bag.python.org> I'm having problems running a script by double clicking I get a message, ImportError: No module named \My Documents\Python\ This problem started with Version 2.3.4 Pwease help Isr From isrgish at fastem.com Thu Jul 8 04:17:38 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Jul 8 04:17:42 2004 Subject: [PythonCE] New release (2.3.4) Message-ID: <20040708021741.0525A1E4003@bag.python.org> Hi David, -----Original Message----- >From: "David L. Kashtan" >Sent: 7/7/04 12:55:28 AM >To: "Isr Gish", "pythonce@python.org" >Subject: RE: [PythonCE] New release (2.3.4) [snip] >> 2) There seems to be a problem in the error reports of the traceback for I/O >> (files) and Windows (when using the _winreg module) errors. For example if I >> try to open a file for reading that doesn't exist I get this error: >> IOError: [Errno 7] T: >> The "T" is not very informative. >> Similar thing is with the WindowsError. > >This is because there is no sys_errlist[] in the Python "C" runtime. I will >see what I can do to emulate this. In Brad Clement's 2.2 release the errors where reported correctly. (I thought this may help you.) >David > Another thing, I see that there are 2 sets of Tkinter & Tkconstants files. One in the regular dist. and one in the Tk part of the dist.. They seem to be different files because they have different amount of bytes. Which should I use and hat's the difference. all the best, Isr From a.stuff at laubach-online.de Thu Jul 8 07:16:19 2004 From: a.stuff at laubach-online.de (Stuff, Andreas) Date: Thu Jul 8 07:14:31 2004 Subject: [PythonCE] python shell vs. CMD Message-ID: <3BCF37A673A0D511B4CA000255D4ABC1405862@slbh000001.DLBH000001.local> Hi, I've installed the python 2.3.4 and the pocketConsole from www.symbolictools.de. When typing 'help ()' inside the python shell the pocketConsole opens empty. There is no way bach. so closing the (empty) console, python is closed too. Does anybody have the same trouble ? Or is there something buggy with thy python-build-in-shell ? Andreas From a.stuff at laubach-online.de Thu Jul 8 09:07:53 2004 From: a.stuff at laubach-online.de (Stuff, Andreas) Date: Thu Jul 8 09:06:07 2004 Subject: WG: [PythonCE] Running scripts by double clicking Message-ID: <3BCF37A673A0D511B4CA000255D4ABC1405864@slbh000001.DLBH000001.local> I have the same problems on my ipaq2210. The interactive mode is runnig well, but no script calling is possible. Andreas -----Urspr?ngliche Nachricht----- Von: Isr Gish [mailto:isrgish@fastem.com] Gesendet: Donnerstag, 8. Juli 2004 04:18 An: pythonce@python.org Betreff: [PythonCE] Running scripts by double clicking I'm having problems running a script by double clicking I get a message, ImportError: No module named \My Documents\Python\ This problem started with Version 2.3.4 Pwease help Isr _______________________________________________ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce From ryan at ape-x.net Thu Jul 8 09:56:47 2004 From: ryan at ape-x.net (Ryan Northey) Date: Thu Jul 8 09:56:51 2004 Subject: [PythonCE] Running scripts by double clicking In-Reply-To: <20040708021732.DE4191E4003@bag.python.org> References: <20040708021732.DE4191E4003@bag.python.org> Message-ID: <1089273407.3756.42.camel@trintop> Hi, > I'm having problems running a script by double clicking I get a message, ImportError: No module named \My Documents\Python\ > This problem started with Version 2.3.4 > > Pwease help > Isr I got around this problem by having a file in pythonpath called xFile.py, containing: import sys execfile(sys.argv[1]) and then editing the registry entry \HKCR\PySource\Shell\Open\Command: Default : "\Program Files\Python\python.exe" xFile "%1" %* I am trying to get twisted to run an xmlrpc server , but unfortunately it cant import errno.EPREM. I can however now run an xmlrpc client - which is great - thanks for putting the port together. All help gratefully received in getting twisted to sing. cheers, ryan. -- Ryan Northey From mike at pcblokes.com Thu Jul 8 12:33:33 2004 From: mike at pcblokes.com (Voidspace) Date: Thu Jul 8 12:33:38 2004 Subject: WG: [PythonCE] The new distribution In-Reply-To: <3BCF37A673A0D511B4CA000255D4ABC1405864@slbh000001.DLBH000001.local> References: <3BCF37A673A0D511B4CA000255D4ABC1405864@slbh000001.DLBH000001.local> Message-ID: <40ED22FD.9060101@pcblokes.com> Stuff, Andreas wrote: >I have the same problems on my ipaq2210. The interactive mode is runnig >well, but no script calling is possible. > >Andreas > > You're doing better than me then. I haven't tried very hard yet - but I couldn't even get interactive mode going :-) I've being trying to install it to my storage card though. Anyone know which of the files need to be in the windows directory and which can be in the same directory as python.exe (in my storage card) ? The dlls I guess - although that didn't work straight off. Anyway - despite intial problems I really appreciate the work David is putting in on this. There was also a 'hack' (change) to pcceshell to allow raw_input to work - I'd really appreciate this being included in the bew version. I'd also like to put my vote in for allowing multiple versions of the interpreter to run simultaneously. Thanks Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html >-----Urspr?ngliche Nachricht----- >Von: Isr Gish [mailto:isrgish@fastem.com] >Gesendet: Donnerstag, 8. Juli 2004 04:18 >An: pythonce@python.org >Betreff: [PythonCE] Running scripts by double clicking > > >I'm having problems running a script by double clicking I get a message, >ImportError: No module named \My Documents\Python\ >This problem started with Version 2.3.4 > >Pwease help >Isr > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > > > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.atlantibots.org.uk http://groups.yahoo.com/group/atlantis_talk/ Atlantibots - stomping across the worlds of Atlantis. Building with Python - programming language that rules the world. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From isrgish at fastem.com Mon Jul 12 02:05:27 2004 From: isrgish at fastem.com (Isr Gish) Date: Mon Jul 12 02:05:14 2004 Subject: [PythonCE] Running scripts by double clicking Message-ID: <20040712000513.4DDD91E4002@bag.python.org> Hi Ryan, -----Original Message----- >From: "Ryan Northey" >Sent: 7/8/04 3:54:58 AM >To: "Isr Gish" >Subject: Re: [PythonCE] Running scripts by double clicking > >Hi, > >> I'm having problems running a script by double clicking I get a message, ImportError: No module named \My Documents\Python\ >> This problem started with Version 2.3.4 >> >> Pwease help >> Isr > >I got around this problem by having a file in pythonpath called >xFile.py, containing: > >import sys >execfile(sys.argv[1]) > >and then editing the registry entry \HKCR\PySource\Shell\Open\Command: > >Default : "\Program Files\Python\python.exe" xFile "%1" %* > The problem with this idea is that you can't use the trick of. If __name__ == '__main__': [snip] >cheers, > >ryan. >-- >Ryan Northey > All the best, Isr From chrbaumgaertel at gmx.de Mon Jul 12 21:43:03 2004 From: chrbaumgaertel at gmx.de (=?iso-8859-1?Q?Christian_Baumg=E4rtel?=) Date: Mon Jul 12 21:41:22 2004 Subject: [PythonCE] Running scripts by double clicking In-Reply-To: <20040712000513.4DDD91E4002@bag.python.org> Message-ID: <000001c46848$730e2f60$133eb850@HEISENBERG> Hello, > > Hi Ryan, ... > > > The problem with this idea is that you can't use the trick > of. If __name__ == '__main__': > To work around this problem, (and around two other problems: adding the directory of the script to the path to allow imports, and to correctly supply commandline args), I have changed xFile.py: My xFile.py: __name__ = '__main__' import sys import os.path __myfile = sys.argv[1] del sys.argv[0] sys.path.append(os.path.dirname(__myfile)) execfile(__myfile) Hope this helps (so far, I haven't encountered problems with this hack), Christian Baumg?rtel From kashtan at Validus.Com Tue Jul 13 01:10:21 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Tue Jul 13 01:10:23 2004 Subject: [PythonCE] Running scripts by double clicking In-Reply-To: <20040708021732.DE4191E4003@bag.python.org> Message-ID: <000001c46865$67d27d50$981e2ec7@DAVIDSLAPTOP> In order for this to work, there need to be specific entries in the Pocket PC registry. I have written a Python script that does this. Also had to fix a bug in _winreg.pyd and python.exe for everything to work. If you pick up the latest distribution from http://www.validus.com/~kashtan it will have the latest files in it. Using the Pocket PC file explorer, go to "\Program Files\Python\Lib" and double click the "Setup Registry" Python icon. It will set things up so double-clicking ".py" or ".pyc" files will work. David Kashtan Validus Medical Systems From kashtan at Validus.Com Tue Jul 13 03:04:21 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Tue Jul 13 03:04:23 2004 Subject: [PythonCE] New release (2.3.4) In-Reply-To: <20040707024251.804D91E400D@bag.python.org> Message-ID: <000001c46875$54fc74f0$981e2ec7@DAVIDSLAPTOP> 1) Is now fixed. If you have a command line option /new then it won't resume an already running Python -- it will give you a new one. You will need to make a shortcut to Python.exe that you then edit to add a space character and /new to the end of the shortcut text. Put that back on the Pocket PC and clicking the shortcut will get you a new Python each time. 2) Is now fixed. The UNIX runtime _sys_nerr and _sys_errlist don't exist on the Pocket PC. I've implemented enough of them to deal with the errors that can come back from the Windows/CE compatibility functions. Also fixed a bug in the Windows support code that didn't convert formatted errors from Unicode to Ascii. Now windows errors will also get correct error strings. 3) Still looking into this. David Kashtan Validus Medical Systems -----Original Message----- From: pythonce-bounces+kashtan=validus.com@python.org [mailto:pythonce-bounces+kashtan=validus.com@python.org]On Behalf Of Isr Gish Sent: Tuesday, July 06, 2004 7:43 PM To: pythonce@python.org Subject: [PythonCE] New release (2.3.4) First I want to thank David for putting out this release. I'm happy to see that there are still people who are interested to make Python work on the Pocket PC. Know there are a few things that I would like to mention. 1) Is there a way to have more then one instance of python running? In the previous release Richard Deeley had hacked the pcceshell so that you could run multiple instances. but know I don't even see the pcceshell. 2) There seems to be a problem in the error reports of the traceback for I/O (files) and Windows (when using the _winreg module) errors. For example if I try to open a file for reading that doesn't exist I get this error: IOError: [Errno 7] T: The "T" is not very informative. Similar thing is with the WindowsError. 3) Is there a way to add thing for when python starts up. For example I would like to add the folder of my scripts to the path, and the path of the docs to os.environ['PYTHONDOCS']. From kashtan at Validus.Com Tue Jul 13 03:30:09 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Tue Jul 13 03:30:11 2004 Subject: [PythonCE] New release (2.3.4) In-Reply-To: <20040707024251.804D91E400D@bag.python.org> Message-ID: <000101c46878$ef7c1ff0$981e2ec7@DAVIDSLAPTOP> 3) Is now done. If the file "\Temp\pythonrc.py" exists, it is executed before the interactive shell is started. The file is ignored when an interactive shell is not being used (that is when you are supposed to "import user" in your program). David Kashtan Validus Medical Systems -----Original Message----- From: pythonce-bounces+kashtan=validus.com@python.org [mailto:pythonce-bounces+kashtan=validus.com@python.org]On Behalf Of Isr Gish Sent: Tuesday, July 06, 2004 7:43 PM To: pythonce@python.org Subject: [PythonCE] New release (2.3.4) 3) Is there a way to add thing for when python starts up. For example I would like to add the folder of my scripts to the path, and the path of the docs to os.environ['PYTHONDOCS']. From mike at pcblokes.com Tue Jul 13 09:02:44 2004 From: mike at pcblokes.com (Voidspace) Date: Tue Jul 13 09:02:50 2004 Subject: [PythonCE] New release (2.3.4) In-Reply-To: <000101c46878$ef7c1ff0$981e2ec7@DAVIDSLAPTOP> References: <000101c46878$ef7c1ff0$981e2ec7@DAVIDSLAPTOP> Message-ID: <40F38914.6010501@pcblokes.com> David - I'd just like to add my voice of thanks for all the work you're dong on getting Python running on the pocketPC. Many Thanks Fuzzyman David L. Kashtan wrote: >3) Is now done. If the file "\Temp\pythonrc.py" exists, it is executed >before the interactive shell is started. The file is ignored when >an interactive shell is not being used (that is when you are supposed >to "import user" in your program). > >David Kashtan >Validus Medical Systems > >-----Original Message----- >From: pythonce-bounces+kashtan=validus.com@python.org >[mailto:pythonce-bounces+kashtan=validus.com@python.org]On Behalf Of Isr >Gish >Sent: Tuesday, July 06, 2004 7:43 PM >To: pythonce@python.org >Subject: [PythonCE] New release (2.3.4) > > >3) Is there a way to add thing for when python starts up. For example I would like to add the folder of my scripts to the path, and >the path of the docs to os.environ['PYTHONDOCS']. > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > > > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From johnny at debris.demon.nl Tue Jul 13 09:33:41 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Tue Jul 13 09:33:45 2004 Subject: [PythonCE] New release (2.3.4) In-Reply-To: <40F38914.6010501@pcblokes.com> References: <000101c46878$ef7c1ff0$981e2ec7@DAVIDSLAPTOP> <40F38914.6010501@pcblokes.com> Message-ID: <40F39055.9010507@debris.demon.nl> Voidspace wrote: > David - I'd just like to add my voice of thanks for all the work > you're dong on getting Python running on the pocketPC. > > Many Thanks Same here. Way cool... Cheers, Guido From mike at pcblokes.com Tue Jul 13 13:11:55 2004 From: mike at pcblokes.com (Voidspace) Date: Tue Jul 13 13:12:01 2004 Subject: [PythonCE] Python 2.3.4 Installed to Storage Card Message-ID: <40F3C37B.4050401@pcblokes.com> I had the last build of Python 2.3 installed in my storage card - so long as python.exe was in the same directory as the '.pyc' files and the registry entry was correct it worked fine when double clicking on files. On python 2.3.4 I get the following import error : Traceback (innermost last): exceptions.ImportError: No module named \Storage The registry entry is (for .py, .pyc and .pyw) : "\Storage Card\Program Files\Python\python.exe" %1 This is reminiscent of a problem in the last version of pcceshell (which it doesn't look like is fixed) : If there is a space in the pathname then when you double clicked on a file - python would die with the error message - pcceshell needs more than one argument (or something like that) The solution was always to use 'open with' and put quotes around the name - which was always very annoying. Not that I *ever* bothered to look into pcceshell.py to try and fix it.. Whilst we're on the subject - it would be really good to get raw_input working again - I think there's some stuff about it on the mukworks WIKI : http://www.murkworks.com/Research/Python/PythonCE/PythonCEWiki/Input_28_29_26Raw_5finput_28_29ForPPC Regards, Fuzzyman -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From mike at pcblokes.com Tue Jul 13 13:35:41 2004 From: mike at pcblokes.com (Voidspace) Date: Tue Jul 13 13:35:45 2004 Subject: [PythonCE] Running scripts by double clicking In-Reply-To: <000001c46865$67d27d50$981e2ec7@DAVIDSLAPTOP> References: <000001c46865$67d27d50$981e2ec7@DAVIDSLAPTOP> Message-ID: <40F3C90D.6070301@pcblokes.com> David L. Kashtan wrote: >In order for this to work, there need to be specific entries in >the Pocket PC registry. I have written a Python script that does >this. Also had to fix a bug in _winreg.pyd and python.exe for >everything to work. > >If you pick up the latest distribution from http://www.validus.com/~kashtan >it will have the latest files in it. > >Using the Pocket PC file explorer, go to "\Program Files\Python\Lib" and >double click the "Setup Registry" Python icon. It will set things up so >double-clicking ".py" or ".pyc" files will work. > >David Kashtan >Validus Medical Systems > Hello David, Has this been fixed for the PPC2002 distribution as well ? If you see the previous email I've been having problems !! Regards, Fuzzy > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > > > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From mhammond at skippinet.com.au Tue Jul 13 14:21:57 2004 From: mhammond at skippinet.com.au (Mark Hammond) Date: Tue Jul 13 14:21:52 2004 Subject: [PythonCE] Running scripts by double clicking In-Reply-To: <40F3C90D.6070301@pcblokes.com> Message-ID: <039101c468d1$78a8d2c0$0200a8c0@eden> Voidspace wrote: > David L. Kashtan wrote: ... This is very nice, and seems to work well for me :) > >In order for this to work, there need to be specific entries in > >the Pocket PC registry. I have written a Python script that does > >this. Also had to fix a bug in _winreg.pyd and python.exe for > >everything to work. > >If you pick up the latest distribution from > http://www.validus.com/~kashtan > >it will have the latest files in it. > > > >Using the Pocket PC file explorer, go to "\Program > Files\Python\Lib" and > >double click the "Setup Registry" Python icon. It will set > things up so > >double-clicking ".py" or ".pyc" files will work. > > Has this been fixed for the PPC2002 distribution as well ? > If you see the previous email I've been having problems !! It appears the shortcut properties for this build are: \Program Files\Python\Lib\python.exe "\Program Files\Python\Lib\setup-registry.py" It probably should drop all paths (ie, simply "python.exe setup-registry.py"). Then I noticed that "setup-registry.py" hardcodes the name of the executable - sys.executable seems to work, so once I replace it with that, everyone was happy :) Note that if "setup-registry.py" was named "setup_registry.py", alternative instructions could be simply "import setup_registry"! Mark. From kashtan at Validus.Com Tue Jul 13 17:33:50 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Tue Jul 13 17:33:58 2004 Subject: [PythonCE] RE: Python 2.3.4 Installed to Storage Card In-Reply-To: <40F3C37B.4050401@pcblokes.com> Message-ID: <000e01c468ee$cb9ce9e0$050310ac@DAVIDSLAPTOP> > "\Storage Card\Program Files\Python\python.exe" %1 It needs to be: "\Storage Card\Program Files\Python\python.exe" "%1" David From isrgish at fastem.com Wed Jul 14 07:59:02 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 14 07:58:47 2004 Subject: [PythonCE] New release (2.3.4) Message-ID: <20040714055846.347B91E4002@bag.python.org> Hi David, Thanks for all the fixes. I realy apreciate all the work your doing. I'll download the newest build and try it all out. Thanks again. All the best, Isr -----Original Message----- >From: "David L. Kashtan" >Sent: 7/12/04 9:30:09 PM >To: "pythonce@python.org" >Subject: RE: [PythonCE] New release (2.3.4) >3) Is now done. If the file "\Temp\pythonrc.py" exists, it is executed >before the interactive shell is started. The file is ignored when >an interactive shell is not being used (that is when you are supposed >to "import user" in your program). > >David Kashtan >Validus Medical Systems > >-----Original Message----- >From: pythonce-bounces+kashtan=validus.com@python.org >[mailto:pythonce-bounces+kashtan=validus.com@python.org]On Behalf Of Isr >Gish >Sent: Tuesday, July 06, 2004 7:43 PM >To: pythonce@python.org >Subject: [PythonCE] New release (2.3.4) > > >3) Is there a way to add thing for when python starts up. For example I would like to add the folder of my scripts to the path, and >the path of the docs to os.environ['PYTHONDOCS']. > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > From mike at pcblokes.com Wed Jul 14 10:49:11 2004 From: mike at pcblokes.com (Voidspace) Date: Wed Jul 14 10:49:16 2004 Subject: [PythonCE] Re: Python 2.3.4 Installed to Storage Card In-Reply-To: <000e01c468ee$cb9ce9e0$050310ac@DAVIDSLAPTOP> References: <000e01c468ee$cb9ce9e0$050310ac@DAVIDSLAPTOP> Message-ID: <40F4F387.4080804@pcblokes.com> David L. Kashtan wrote: >>"\Storage Card\Program Files\Python\python.exe" %1 >> >> > >It needs to be: > >"\Storage Card\Program Files\Python\python.exe" "%1" > >David > > > > Hmm..... I certainly get a different error message when I do this !! Traceback (innermost last): exceptions.ImportError: No module named \feconv.py *or* Traceback (innermost last): exceptions.ImportError: No module named \Storage Card\PP\cgi-shell\cgi-shell.py Which is odd... because it knows where it's supposed to be looking !! In actual fact, if I copy the whole installation to '\Program Files\Python\' and edit the registry entry appropriately and I get the *same* error. Which is odd - because other people are reporting that it works fine. *Damn* - what am I doing wrong, why does nothing ever work for me :-) Oh well. Any suggestions ? What I actually have is an entry for .py, .pyc and .pyw in HKEY_CLASSES_ROOT - showing content type pyfile I then have a definition for pyfile, also in HKEY_CLASSES_ROOT, pyfile/Shell/Open/Command/(default) is set to "\Program Files\Python\python.exe" "%1" Reagrds, Fuzzy > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From isrgish at fastem.com Thu Jul 15 04:59:26 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Jul 15 04:59:09 2004 Subject: [PythonCE] RE: Forgot to attcach the files Message-ID: <20040715025908.8BBA81E4002@bag.python.org> I was playing a little around with this, but I can't get it to work. This is what I tried: 1) \shell, when I do this it starts up and closes down right away. 2) /shell, with this it starts a regular version of python, but it seems without the old shell. Because I see that the input() and raw_input() functions still don't work. (I tried with and without quotation marks.) I didn't try to comment out anything yet. I wanted first to see if it works at all. All the best Isr -----Original Message----- >From: "David L. Kashtan" >Sent: 7/12/04 9:35:40 PM >To: "Isr Gish" >Subject: RE: Forgot to attcach the files > >It should be possible to run that shell using the "/shell" command line option. >The ONLY problem is that it is using the SIPINFO() stuff that is no longer in >win32gui. Could you try commenting that out and seeing if it works? >David > From isrgish at fastem.com Thu Jul 15 04:59:34 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Jul 15 04:59:19 2004 Subject: [PythonCE] problem sys.argv in new release Message-ID: <20040715025918.4970B1E4006@bag.python.org> When we run the interpeter, sys.argv should be = "['']" because there is no file script. But now it has the executable in it. All the best, Isr From isrgish at fastem.com Thu Jul 15 04:59:44 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Jul 15 04:59:24 2004 Subject: [PythonCE] Running scripts by double clicking Message-ID: <20040715025922.E9F6E1E4007@bag.python.org> Hi David, I think that this line: SetValue(Key, None, REG_SZ, "\"\\Program Files\\Python\\Lib\\Python.exe\" \"%1\"") Should be: SetValue(Key, None, REG_SZ, "\"\\Program Files\\Python\\Lib\\Python.exe\" \"%1\" %* ") That way you could send more then one arg to the script. All the best, Isr From isrgish at fastem.com Thu Jul 15 05:06:45 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Jul 15 05:06:27 2004 Subject: [PythonCE] Re: Python 2.3.4 Installed to Storage Card Message-ID: <20040715030625.5C9EC1E4002@bag.python.org> Hi Voidspace, -----Original Message----- >From: "Voidspace" >Sent: 7/14/04 4:49:11 AM >To: "David L. Kashtan" >Cc: "pythonce@python.org" >Subject: [PythonCE] Re: Python 2.3.4 Installed to Storage Card > > >David L. Kashtan wrote: > >>>"\Storage Card\Program Files\Python\python.exe" %1 >>> >>> >> >>It needs to be: >> >>"\Storage Card\Program Files\Python\python.exe" "%1" >> >>David >> >> >> >> >Hmm..... >I certainly get a different error message when I do this !! > >Traceback (innermost last): >exceptions.ImportError: No module named \feconv.py > >*or* > >Traceback (innermost last): >exceptions.ImportError: No module named \Storage >Card\PP\cgi-shell\cgi-shell.py When do you get these errors? Did you download the latest release? All the best, Isr [snip] > >Fuzzy > >> >> >> > >-- > >http://www.Voidspace.org.uk >The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. > >--- >http://www.Voidspace.org.uk/atlantibots/pythonutils.html >Python utilities, modules and apps. >Including Nanagram, Dirwatcher and more. >--- >http://www.fuchsiashockz.co.uk >http://groups.yahoo.com/group/void-shockz >--- > >Everyone has talent. What is rare is the courage to follow talent > to the dark place where it leads. -Erica Jong >Ambition is a poor excuse for not having sense enough to be lazy. > -Milan Kundera > > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > From mdoukidis at gmail.com Thu Jul 15 07:47:12 2004 From: mdoukidis at gmail.com (Mark Doukidis) Date: Thu Jul 15 07:47:15 2004 Subject: [PythonCE] shelve problems Message-ID: <8d85110404071422472e09b1c4@mail.gmail.com> Has anyone succesfully used the "shelve" module on PythonCE ? I am getting the following error: >>>import shelve >>>d = shelve.open("\\myshelve") Traceback (most recent call last): File"", line 1 d = shelve.open("\\myshelve") ^ SyntaxError: invalid token >>> Any guidance appreciated. Mark From johnny at debris.demon.nl Thu Jul 15 09:32:39 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Thu Jul 15 09:32:43 2004 Subject: [PythonCE] shelve problems In-Reply-To: <8d85110404071422472e09b1c4@mail.gmail.com> References: <8d85110404071422472e09b1c4@mail.gmail.com> Message-ID: <40F63317.8050208@debris.demon.nl> Mark Doukidis wrote: > d = shelve.open("\\myshelve") > ^ >SyntaxError: invalid token > > > > > Sounds like a problem with your script rather then the shelve module, a syntax error is found before any importing is done... Cheers, Guido From mike at pcblokes.com Fri Jul 16 09:20:10 2004 From: mike at pcblokes.com (Voidspace) Date: Fri Jul 16 09:20:16 2004 Subject: [PythonCE] Import errors When Running Files In-Reply-To: <001001c46a02$5a1a2c00$981e2ec7@DAVIDSLAPTOP> References: <001001c46a02$5a1a2c00$981e2ec7@DAVIDSLAPTOP> Message-ID: <40F781AA.7040209@pcblokes.com> David L. Kashtan wrote: >I understand why the console goes away (that is expected). Here is >what I don't get: > > If you specify a file to run on the command line (which is > what the double-click does) then it attempts to open the file > and (if that fails) you get the message: > Can not open file 'xxxx' > > You don't get import errors because the file is not imported, > it is run. > >I thinking you have an old Python.exe > >David > > > I *only* have the new distribution - python2.3.4 for arm ppc2002 downloaded from the validus site. I've scoured it for old versions and none are to be found !! The new distribution is unpacked into a flat directory : "\\Storage Card\\Program Files\\python" I've manually made the entries in the registry. : What I actually have is an entry for .py, .pyc and .pyw in HKEY_CLASSES_ROOT - showing content type pyfile I then have a definition for pyfile, also in HKEY_CLASSES_ROOT, pyfile/Shell/Open/Command/(default) is set to "\Program Files\Python\python.exe" "%1" This import failure is the same error that the other folk [Isr, Christian Baumg?rtel, Andreas, Ryan] were reporting. They have been using the 'xfile hack' : > I got around this problem by having a file in pythonpath called > xFile.py, containing: import sys execfile(sys.argv[1]) and then > editing the registry entry \HKCR\PySource\Shell\Open\Command: Default > : "\Program Files\Python\python.exe" xFile "%1" %* (Plus a modification to get __name__ == '__main__' working) Has this been sorted in an update, or is this hack still the official workaround ? I could just download it again I suppose... but it would be nice to know what the position is :-) Regards, Fuzzy > > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From mike at pcblokes.com Fri Jul 16 09:23:04 2004 From: mike at pcblokes.com (Voidspace) Date: Fri Jul 16 09:23:11 2004 Subject: [PythonCE] New Tkinter Distribution Message-ID: <40F78258.8010004@pcblokes.com> Can someone help me by clarifying the situation on the new Tkinter distribution - before I waste a lot of effort trying to get it to work.... Is the one on the Validus site for ppc2002 or *only* for 2003 ? Also Isr asked the following question ? > Another thing, I see that there are 2 sets of Tkinter & Tkconstants > files. One in the regular dist. and one in the Tk part of the dist.. > They seem to be different files because they have different amount of > bytes. Which should I use and what's the difference. all the best, Isr Has anyone resolved an answer ? Regards, Fuzzy -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From bkc at murkworks.com Fri Jul 16 17:03:19 2004 From: bkc at murkworks.com (Brad Clements) Date: Fri Jul 16 16:58:34 2004 Subject: [PythonCE] Should we setup a sourceforge site? Message-ID: <40F7B5F6.23242.71BC027C@coal.murkworks.com> It seems that files are being distributed from a multitude of locations, different versions and extensions.. It's confusing, there's no single place to go to find pointers to the different "releases". I thought folks would update the pythonce wiki at http://www.murkworks.com/Research/Python/PythonCE/PythonCEWiki/FrontPage When they released their own stuff, there's even a page or two for "releases from other sites". But there's been no updates on the wiki for 8 months. So, when someone wants to try pythonce, they have to search the mailing list to find out where to get a release. Now granted, there seems to be only one "active release" under development at any given time, but it keeps moving .. hammond, murkworks, telion, others , kashtan What should we do about this? Should we go back and freshen the wiki? Should we create a sourceforge project to hold binary and source releases? -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements From isrgish at fastem.com Fri Jul 16 20:51:08 2004 From: isrgish at fastem.com (Isr Gish) Date: Fri Jul 16 20:51:32 2004 Subject: [PythonCE] Should we setup a sourceforge site? Message-ID: <20040716185130.8944F1E4002@bag.python.org> I would agree that to have one place to look would be a grand idea. All the best, Isr -----Original Message----- >From: "Brad Clements" >Sent: 7/16/04 11:03:19 AM >To: "pythonce@python.org" >Subject: [PythonCE] Should we setup a sourceforge site? >It seems that files are being distributed from a multitude of locations, different versions and >extensions.. It's confusing, there's no single place to go to find pointers to the different >"releases". > >I thought folks would update the pythonce wiki at > >http://www.murkworks.com/Research/Python/PythonCE/PythonCEWiki/FrontPage > >When they released their own stuff, there's even a page or two for "releases from other >sites". > >But there's been no updates on the wiki for 8 months. > >So, when someone wants to try pythonce, they have to search the mailing list to find out >where to get a release. > >Now granted, there seems to be only one "active release" under development at any given >time, but it keeps moving .. hammond, murkworks, telion, others , kashtan > >What should we do about this? > >Should we go back and freshen the wiki? > >Should we create a sourceforge project to hold binary and source releases? > > > >-- >Brad Clements, bkc@murkworks.com (315)268-1000 >http://www.murkworks.com (315)268-9812 Fax >http://www.wecanstopspam.org/ AOL-IM: BKClements > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > From isrgish at fastem.com Sun Jul 18 08:11:50 2004 From: isrgish at fastem.com (Isr Gish) Date: Sun Jul 18 08:12:06 2004 Subject: [PythonCE] __future__, division Message-ID: <20040718061204.85DD81E4002@bag.python.org> Hi all (David). I'm using version 2.3.4 I was trying to from __future__ import division to be able to use float division. It seems that in this version it doesn't work. I still can only do integer division. All the best Isr From isrgish at fastem.com Sun Jul 18 08:23:45 2004 From: isrgish at fastem.com (Isr Gish) Date: Sun Jul 18 08:24:05 2004 Subject: [PythonCE] RE: New Tkinter Distribution Message-ID: <20040718062403.D80EA1E4002@bag.python.org> -----Original Message----- >From: "Voidspace" >Sent: 7/16/04 3:23:04 AM >To: "pythonce@python.org" >Subject: [PythonCE] New Tkinter Distribution > >Can someone help me by clarifying the situation on the new Tkinter >distribution - before I waste a lot of effort trying to get it to work.... >Is the one on the Validus site for ppc2002 or *only* for 2003 ? > >Also Isr asked the following question ? > >> Another thing, I see that there are 2 sets of Tkinter & Tkconstants >> files. One in the regular dist. and one in the Tk part of the dist.. >> They seem to be different files because they have different amount of >> bytes. Which should I use and what's the difference. all the best, Isr > >Has anyone resolved an answer ? Hi Fuzzy, I don't see why it shouldn't work for Pocket PC 2002. Also you should use the one from the library *not* from the tkinter dist. Because the lib is the more updated. Also about the problem with the import error that you mentioned in a previous e-mail. The reason for the import error has nothing to do specifically with running a script from explorer. *I think* it has with the startup of python. It seems that when I tried putting the library file s in different places that's when I got the errors. (this is with the latest download, previous downloads I think did have some problems.) you should try putting everything in the Program Files\Python\lib directory as is stated on the website, then see if you still have problems. All the best, Isr >Regards, > >Fuzzy > >-- > >http://www.Voidspace.org.uk >The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. > >--- >http://www.Voidspace.org.uk/atlantibots/pythonutils.html >Python utilities, modules and apps. >Including Nanagram, Dirwatcher and more. >--- >http://www.fuchsiashockz.co.uk >http://groups.yahoo.com/group/void-shockz >--- > >Everyone has talent. What is rare is the courage to follow talent > to the dark place where it leads. -Erica Jong >Ambition is a poor excuse for not having sense enough to be lazy. > -Milan Kundera > > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From rac at KOM.tu-darmstadt.de Sun Jul 18 15:46:32 2004 From: rac at KOM.tu-darmstadt.de (Ralf Ackermann) Date: Sun Jul 18 15:46:34 2004 Subject: [PythonCE] Q: still problem with Tkinter In-Reply-To: <20040718062403.D80EA1E4002@bag.python.org> References: <20040718062403.D80EA1E4002@bag.python.org> Message-ID: Hello, even though I have followed the thread on the options for installation of the newest (2.3.4, downloads as of 7/12/04) Python for ARM distriution - unfortunately I still fail to use TKinter (gives me a failure with the from Tkinter import * already). I've only used files downloaded from http://fore.validus.com/~kashtan/ I've placed the unpacked content from the downloaded zip file in \Program Files\Python\Lib and the content of the Tkinter zip archive beneath the toplevel. => puts tcl8.4.3 directory in parallel to My Documents, Windows ... and puts 3 DLLs (celib.dll, tk84.dll, tcl84.dll) in the Windows subdir What do I miss? Any hint from somebody who suceeded with Tkinter usage (either in interactive mode or from a .py source) would be very helpful. Best regards Ralf --------------------------------------------------------------- Dr. Ralf Ackermann _ rac@KOM.tu-darmstadt.de Multimedia Communications |/ | | |\/| Merckstrasse 25 |\ |_| | | 64283 Darmstadt, Germany Tel.: (+49) 6151 16-6138 Fax: (+49) 6151 16-6152 --------------------------------------------------------------- http://www.kom.tu-darmstadt.de/~rac --------------------------------------------------------------- From isrgish at fastem.com Sun Jul 18 21:40:18 2004 From: isrgish at fastem.com (Isr Gish) Date: Sun Jul 18 21:40:34 2004 Subject: [PythonCE] Q: still problem with Tkinter Message-ID: <20040718194033.06A451E4002@bag.python.org> -----Original Message----- >From: "Ralf Ackermann" >Sent: 7/18/04 9:46:32 AM >To: "pythonce@python.org" >Cc: "Ralf Ackermann" >Subject: [PythonCE] Q: still problem with Tkinter >Hello, > >even though I have followed the thread on the options for installation of >the newest (2.3.4, downloads as of 7/12/04) Python for ARM distriution - >unfortunately I still fail to use TKinter (gives me a failure with the >from Tkinter import * already). [snip >What do I miss? Any hint from somebody who suceeded with Tkinter usage >(either in interactive mode or from a .py source) would be very helpful. > You need to add to sys.path the directory where the Tkinter.pyc is located. Andlthat is: '\\Program Files\\Python\\lib\\Python23.zp\\lib-tk' You should add it with "sys.path.append()" After I wrote this I relized that you unziped the files. So in that case the folder to append to sys.path should be. '\\Program Files\\Python\\lib\\lib-tk' All the best, Isr >Best regards > Ralf > >--------------------------------------------------------------- >Dr. Ralf Ackermann _ rac@KOM.tu-darmstadt.de >Multimedia Communications |/ | | |\/| Merckstrasse 25 > |\ |_| | | 64283 Darmstadt, Germany >Tel.: (+49) 6151 16-6138 Fax: (+49) 6151 16-6152 >--------------------------------------------------------------- > http://www.kom.tu-darmstadt.de/~rac >--------------------------------------------------------------- >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > From rac at KOM.tu-darmstadt.de Sun Jul 18 22:55:18 2004 From: rac at KOM.tu-darmstadt.de (Ralf Ackermann) Date: Sun Jul 18 22:55:12 2004 Subject: [PythonCE] Q: still problem with Tkinter In-Reply-To: <20040718194033.06A451E4002@bag.python.org> References: <20040718194033.06A451E4002@bag.python.org> Message-ID: many thanks! adding: import sys sys.path.append('\\Program Files\\Python\\lib\\Python23.zip\\lib-tk') at the very beginning of my program worked like a charm. best regards Ralf > >What do I miss? Any hint from somebody who suceeded with Tkinter usage > >(either in interactive mode or from a .py source) would be very helpful. > > > > You need to add to sys.path the directory where the Tkinter.pyc is located. Andlthat is: > '\\Program Files\\Python\\lib\\Python23.zp\\lib-tk' > > You should add it with "sys.path.append()" > > After I wrote this I relized that you unziped the files. So in that case the folder to append to sys.path should be. > '\\Program Files\\Python\\lib\\lib-tk' From kashtan at Validus.Com Mon Jul 19 03:33:10 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Mon Jul 19 03:33:14 2004 Subject: [PythonCE] Should we setup a sourceforge site? In-Reply-To: <20040716185130.8944F1E4002@bag.python.org> Message-ID: <000301c46d30$59baab00$050310ac@DAVIDSLAPTOP> Yes, please. A distribution on sourceforge would be perfect. David From kashtan at Validus.Com Mon Jul 19 04:02:07 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Mon Jul 19 04:02:09 2004 Subject: [PythonCE] problem sys.argv in new release In-Reply-To: <20040715025918.4970B1E4006@bag.python.org> Message-ID: <000001c46d34$65297800$050310ac@DAVIDSLAPTOP> Fixed. David -----Original Message----- From: pythonce-bounces@python.org [mailto:pythonce-bounces@python.org]On Behalf Of Isr Gish Sent: Wednesday, July 14, 2004 8:00 PM To: pythonce@python.org Subject: [PythonCE] problem sys.argv in new release When we run the interpeter, sys.argv should be = "['']" because there is no file script. But now it has the executable in it. All the best, Isr _______________________________________________ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce From isrgish at fastem.com Mon Jul 19 05:10:53 2004 From: isrgish at fastem.com (Isr Gish) Date: Mon Jul 19 05:11:10 2004 Subject: [PythonCE] New release Message-ID: <20040719031109.9A2E21E4002@bag.python.org> Hi David, I think it would be a good idea to zip the binarys by themself. This way any time there is a change in the release, we wouldn't have to download the whole release again. Thanks in advance. All the best Isr From isrgish at fastem.com Mon Jul 19 05:11:39 2004 From: isrgish at fastem.com (Isr Gish) Date: Mon Jul 19 05:11:58 2004 Subject: [PythonCE] __future__, division Message-ID: <20040719031157.040421E4002@bag.python.org> >From: "David L. Kashtan" >Sent: 7/18/04 9:31:55 PM >To: "Isr Gish" >Subject: RE: [PythonCE] __future__, division > >Why do you think that float division doesn't work? You don't have >to import anything from __future__: > >>>> a=2.1/1.23 >>>> a >1.7073170731707319 > >What am I missing? Hi David, Since 2.2 if you import division from __future__, then you can do this: >>> from __future__ import division >>> 5/3 1.6666666666666667 As if you whould have done float division And >>> 5//3 1 All the best, Isr >David > From kashtan at Validus.Com Mon Jul 19 07:17:45 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Mon Jul 19 07:17:48 2004 Subject: [PythonCE] __future__, division In-Reply-To: <20040719031157.040421E4002@bag.python.org> Message-ID: <000501c46d4f$b949ec10$050310ac@DAVIDSLAPTOP> > Since 2.2 if you import division from __future__, then you can do this: > > >>> from __future__ import division > >>> 5/3 > 1.6666666666666667 > > As if you whould have done float division > And > >>> 5//3 > 1 This does work if you don't do it as direct input to the pcceshell (i.e. if it is in a file). Its because the __future__ import to enable the division feature is only something done in the compiler and the input into the pcceshell does not go through the compiler. This is really not worth fixing. David From kashtan at Validus.Com Mon Jul 19 22:35:46 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Mon Jul 19 22:35:48 2004 Subject: [PythonCE] Another (extremely minor) fix to 2.3.4 Message-ID: <000201c46dcf$f84ed3f0$981e2ec7@DAVIDSLAPTOP> The test_import regression test writes a file which is then compiled and imported. The path is just "longlist", which is a relative path and places it in "\Temp" on the Pocket PC. The test then appends "" (an empty string) to sys.path and does the import. Unfortunately, there is a code path in import that attempts to do some case checking that does not convert the filename to an absolute path. This caused the test to fail. This is now fixed. I don't expect it to affect many people. David Kashtan Validus Medical Systems From isrgish at fastem.com Tue Jul 20 15:30:20 2004 From: isrgish at fastem.com (Isr Gish) Date: Tue Jul 20 15:30:26 2004 Subject: [PythonCE] pcceshell with support for input() and raw_input() functions Message-ID: <20040720133024.9D0A11E4008@bag.python.org> I finally figured out that I need to also put the name of the file of pcceshell as the 2nd parameter. (was looking a little at the source code in python.c "don't understand much* but trried anyway".). Now I see that it gets imported, but it still closes down as soon as it finishes importing. Please help with this I realy need to be able to use input() and raw_input() funcs. Idealy it would be much better if we could have those funcs to work in the new shell. Thanks in addvance All the best, Isr -----Original Message----- >From: "Isr Gish" >Sent: 7/14/04 10:59:26 PM >To: "kashtan@validus.com" >Cc: "pythonce@python.org" >Subject: [PythonCE] RE: Forgot to attcach the files > >I was playing a little around with this, but I can't get it to work. >This is what I tried: >1) \shell, when I do this it starts up and closes down right away. > >2) /shell, with this it starts a regular version of python, but it seems without the old shell. Because I see that the input() and raw_input() functions still don't work. > >(I tried with and without quotation marks.) > >I didn't try to comment out anything yet. I wanted first to see if it works at all. > >All the best >Isr > >-----Original Message----- > >From: "David L. Kashtan" > >Sent: 7/12/04 9:35:40 PM > >To: "Isr Gish" > >Subject: RE: Forgot to attcach the files > > > >It should be possible to run that shell using the "/shell" command line option. > >The ONLY problem is that it is using the SIPINFO() stuff that is no longer in > >win32gui. Could you try commenting that out and seeing if it works? > >David > > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From mike at pcblokes.com Tue Jul 20 15:54:46 2004 From: mike at pcblokes.com (Voidspace) Date: Tue Jul 20 15:54:49 2004 Subject: [PythonCE] pcceshell with support for input() and raw_input() In-Reply-To: <20040720133024.9D0A11E4008@bag.python.org> References: <20040720133024.9D0A11E4008@bag.python.org> Message-ID: <40FD2426.4000902@pcblokes.com> Isr Gish wrote: >I finally figured out that I need to also put the name of the file of pcceshell as the 2nd parameter. (was looking a little at the source code in python.c "don't understand much* but trried anyway".). >Now I see that it gets imported, but it still closes down as soon as it finishes importing. > >Please help with this I realy need to be able to use input() and raw_input() funcs. > >Idealy it would be much better if we could have those funcs to work in the new shell. > >Thanks in addvance >All the best, >Isr > > I quite agree. I got the new distribution working - I did have the first version of 2.3.4 not the fixed one.. so redownloading it solved my problems. *However* - the new funky version closes the shell down as soon as a program has exited... the Tkinter distribution is (IMHO) still experimental... so we don't have a way of pausing the output of a script and actually viewing the result.. There was a hack to add raw_input on the wiki..................... It would be a *really* useful feature - user interaction on the pocketpc is basically impossible without it...... Regards, Fuzz > >-----Original Message----- > >From: "Isr Gish" > >Sent: 7/14/04 10:59:26 PM > >To: "kashtan@validus.com" > >Cc: "pythonce@python.org" > >Subject: [PythonCE] RE: Forgot to attcach the files > > > >I was playing a little around with this, but I can't get it to work. > >This is what I tried: > >1) \shell, when I do this it starts up and closes down right away. > > > >2) /shell, with this it starts a regular version of python, but it seems without the old shell. Because I see that the input() and raw_input() functions still don't work. > > > >(I tried with and without quotation marks.) > > > >I didn't try to comment out anything yet. I wanted first to see if it works at all. > > > >All the best > >Isr > > > >-----Original Message----- > > >From: "David L. Kashtan" > > >Sent: 7/12/04 9:35:40 PM > > >To: "Isr Gish" > > >Subject: RE: Forgot to attcach the files > > > > > >It should be possible to run that shell using the "/shell" command line option. > > >The ONLY problem is that it is using the SIPINFO() stuff that is no longer in > > >win32gui. Could you try commenting that out and seeing if it works? > > >David > > > > > > >_______________________________________________ > >PythonCE mailing list > >PythonCE@python.org > >http://mail.python.org/mailman/listinfo/pythonce > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > > > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From pfalcon at users.sourceforge.net Wed Jul 21 00:20:30 2004 From: pfalcon at users.sourceforge.net (Paul Sokolovsky) Date: Wed Jul 21 00:20:36 2004 Subject: [PythonCE] Should we setup a sourceforge site? In-Reply-To: <40F7B5F6.23242.71BC027C@coal.murkworks.com> References: <40F7B5F6.23242.71BC027C@coal.murkworks.com> Message-ID: <175440844310.20040721012030@ua.fm> Hello Brad, Friday, July 16, 2004, 6:03:19 PM, you wrote: [] BC> Should we create a sourceforge project to hold binary and source releases? I created an SF project with unix name 'pythonce' when it seemed that David Kashtan stopped working on the port and I wanted to take it over. If maintainers are interested in having exactly that unix name for project, I can happily pass it on. Only request I have is that myself was left as a developer for that project, as I'm using or going to use for some pythonce-related things (for example, right now, there's CVS repo for module to access native WinCE databases (so far with RAPI)). Also, I'm going to get eventually to building Python against GNUWINCE runtime library as a truly console app. -- Best regards, Paul mailto:pfalcon@users.sourceforge.net From bkc at murkworks.com Wed Jul 21 00:34:49 2004 From: bkc at murkworks.com (Brad Clements) Date: Wed Jul 21 00:29:46 2004 Subject: [PythonCE] Should we setup a sourceforge site? In-Reply-To: <175440844310.20040721012030@ua.fm> References: <40F7B5F6.23242.71BC027C@coal.murkworks.com> Message-ID: <40FD65C8.7241.87F2B6FE@coal.murkworks.com> On 21 Jul 2004 at 1:20, Paul Sokolovsky wrote: > BC> Should we create a sourceforge project to hold binary and source > releases? > > I created an SF project with unix name 'pythonce' when it seemed > that David Kashtan stopped working on the port and I wanted to take it > over. If maintainers are interested in having exactly that unix name for > project, I can happily pass it on. Only request I have is that myself was > left as a developer for that project, as I'm using or going to use for some > pythonce-related things (for example, right now, there's CVS repo for > module to access native WinCE databases (so far with RAPI)). Also, I'm > going to get eventually to building Python against GNUWINCE runtime library > as a truly console app. I think that would be great if you'd open up the pythonce project to current CE developers to host binaries and diffs/patches/source tree for the CE port of Python. I'm in the middle of the sf application process and would be thrilled to "abandon the cart" since you've done all the work already -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements From isrgish at fastem.com Wed Jul 21 04:17:15 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 21 04:17:20 2004 Subject: [PythonCE] pcceshell with support for input() and raw_input()functions Message-ID: <20040721021718.A98501E4002@bag.python.org> Thanks, Isr -----Original Message----- >From: "David L. Kashtan" >Sent: 7/20/04 12:44:27 PM >To: "Isr Gish" >Subject: RE: [PythonCE] pcceshell with support for input() and raw_input()functions > >I am working on input()/raw_input() >David > From kashtan at Validus.Com Thu Jul 22 04:30:58 2004 From: kashtan at Validus.Com (David L. Kashtan) Date: Thu Jul 22 04:30:59 2004 Subject: [PythonCE] Python/CE 2.3.4 is now up on sourceforge Message-ID: <000001c46f93$ebe0a420$981e2ec7@DAVIDSLAPTOP> Thanks to Brad Clements giving me access, the pythonce project on sourceforge is now updated. The CVS tree has the sources (under pythonce) and there is a file release with the zip files for PocketPC 2003, PocketPC 2003 and Tkinter. David Kashtan Validus Medical Systems From isrgish at fastem.com Thu Jul 22 04:25:27 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Jul 22 05:12:52 2004 Subject: [PythonCE] Trying to use different os.py Message-ID: <20040722031251.0323E1E4002@bag.python.org> I was trying to use a different os.py by putting it in "\Program Files\Python\lib" folder. But I see that when I check which one its running I get . The funny thing is that my python23.zip isn't even in the lib folder. Its under "\Program Files\Python" folder. The same goes for other modules, but not all. I don't remember which ones I have that problem with. Isr From isrgish at fastem.com Fri Jul 23 06:35:36 2004 From: isrgish at fastem.com (Isr Gish) Date: Fri Jul 23 06:35:34 2004 Subject: [PythonCE] Trying to use different os.py Message-ID: <20040723043532.CB95D1E4002@bag.python.org> Hi David, My problem is that I took out the python23.zip file and instead put in thee .py files. I still get the same results. It seems that it's taking the os module (and some other ones) from a .zip file in the lib folder, but I have no idea from where. Since there is no .zip file in the folder. I do remember seeing somewhere (maybe on your website) that if it doesn't find the basic modules it takes it from the .dll file. Maybe that's where its taking it from. But I'm still wondering why it doesn't take it from the Python\lib folder. All the best, Isr P.S. Also there is no way to change the Path before Python starts (as far as I know) only in the pythonrc.py file which first gets imported after the basic modules like os and the others. -----Original Message----- >From: "David L. Kashtan" >Sent: 7/22/04 2:14:24 AM >To: "Isr Gish" >Subject: RE: [PythonCE] Trying to use different os.py > >Look at sys.path it will tell you the order in which it is trying >to find modules. >David > From vivanovsky at mail.ru Fri Jul 23 20:25:42 2004 From: vivanovsky at mail.ru (Vladimir Ivanovsky) Date: Fri Jul 23 20:25:44 2004 Subject: [PythonCE] Does Python 2.* exist for Pocket PC + MIPS CPU ? Message-ID: Hello ! Tell me please does Python exist for Pocket PC MIPS CPU (I have Casio E-125)? I couldn't find it on the web site. Best regards, Vladimir. From isrgish at fastem.com Fri Jul 23 20:42:12 2004 From: isrgish at fastem.com (Isr Gish) Date: Fri Jul 23 20:46:27 2004 Subject: [PythonCE] Does Python 2.* exist for Pocket PC + MIPS CPU ? Message-ID: <20040723184625.E6C831E4002@bag.python.org> Hi Vladmir, -----Original Message----- >From: "Vladimir Ivanovsky" >Sent: 7/23/04 2:25:42 PM >To: "pythonce@python.org" >Subject: [PythonCE] Does Python 2.* exist for Pocket PC + MIPS CPU ? > > >Hello ! > >Tell me please does Python exist for Pocket PC MIPS CPU (I have Casio E-125)? >I couldn't find it on the web site. I think there should be something on the Wiki page at: http://www.murkworks.com/Research/Python/PythonCE/PythonCEWiki All the best, Isr > >Best regards, >Vladimir. > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > From isrgish at fastem.com Sun Jul 25 05:36:53 2004 From: isrgish at fastem.com (Isr Gish) Date: Sun Jul 25 05:36:42 2004 Subject: [PythonCE] Re: [Tutor] Please critique my hangman.py program Message-ID: <20040725033640.62D061E4002@bag.python.org> Hi Alan, [snip] >> # Setup list to hold correct letters >> correct_so_far = [] >> for i in range(word_length): >> correct_so_far.append("_") > > correct_so_far = ['_'] * word_length > >But you could just use a string which is esier to print later: > > xcorrect_so_far = '_' * word_length > >> # Setup some other variables >> incorrect = [] >> guesses = 0 >> letters_guessed = 0 > > guesses, letters_guessed = 0, 0 > >> # Start main game loop. >> print "\nI am thinking of a word",word_length,"letters long" >> while letters_guessed < word_length: >> >> # Print status of game on each pass. >> print >> print_status (correct_so_far,incorrect,guesses) >> >> # Get guess from user >> while 1: >> guess = raw_input("Which letter would you like to try? >") >> guess = string.lower(guess) >> if len(guess) != 1: >> print "You can only guess one letter at a time!" >> elif guess in incorrect or guess in correct_so_far: >> print "You've already tried that letter!" >> elif guess not in >["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q"," >r","s","t","u","v","w","x","y","z"]: >> print "That's not a valid letter." >> else: >> break >> guesses = guesses + 1 >> >> # Evaluate guess against word >> letter_correct = 0 >> for i in range(word_length): >> if guess == word[i]: >> correct_so_far[i] = guess >> letter_correct=1 >> letters_guessed = letters_guessed + 1 > >Personally I'd use a while loop here: > > i,letter_correct = 0,False > while i < word_length and not letter_correct: > if guess == word[i]: > correct_so_far[i] = guess > letter_correct=True > letters_guessed += 1 > i += 1 > >Same length but I just think the test expresses the intention of >the loop better. I think that there may be a problem with this. For a word that has 2 of the same letter. The original way checks for that, while the latter way would make "letter_correct" = to "True" by the first pass andsthe while loop would terminate. All the best, Isr [snip] > >Hope those ideas help. They are not definitively better just some >alternatives. > >Alan G. > >_______________________________________________ >Tutor maillist - Tutor@python.org >http://mail.python.org/mailman/listinfo/tutor From isrgish at fastem.com Sun Jul 25 05:48:56 2004 From: isrgish at fastem.com (Isr Gish) Date: Sun Jul 25 05:48:42 2004 Subject: [PythonCE] Does Python 2.* exist for Pocket PC + MIPS CPU ? Message-ID: <20040725034840.D42451E4002@bag.python.org> -----Original Message----- >From: "Isr Gish" >Sent: 7/23/04 2:42:12 PM >To: "pythonce@python.org" >Subject: RE: [PythonCE] Does Python 2.* exist for Pocket PC + MIPS CPU ? > >Hi Vladmir, > >-----Original Message----- > >From: "Vladimir Ivanovsky" > >Sent: 7/23/04 2:25:42 PM > >To: "pythonce@python.org" > >Subject: [PythonCE] Does Python 2.* exist for Pocket PC + MIPS CPU ? > > > > > >Hello ! > > > >Tell me please does Python exist for Pocket PC MIPS CPU (I have Casio E-125)? > >I couldn't find it on the web site. > >I think there should be something on the Wiki page at: >http://www.murkworks.com/Research/Python/PythonCE/PythonCEWiki Here is a link to the Mips release of 2.2+ http://www.tux.org/pub/tux/pyce/PPCPythonR2MIPS-1.zip All the best, Isr >All the best, >Isr > > > > >Best regards, > >Vladimir. > > > >_______________________________________________ > >PythonCE mailing list > >PythonCE@python.org > >http://mail.python.org/mailman/listinfo/pythonce > > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From isrgish at fastem.com Mon Jul 26 21:29:36 2004 From: isrgish at fastem.com (Isr Gish) Date: Mon Jul 26 21:29:15 2004 Subject: [PythonCE] Trying to use different os.py Message-ID: <20040726192914.84F111E4002@bag.python.org> Hi David, I'm still experiencing the same problem. That it imports the os from python23.zip even though I took out that file from my folder. The reason I'm doing this is becouse the exec* and system functions from the os module don't work on ce. Telion has made a patch for this in a module called osce. Maybe there is a different waybto get these functions to work. All the best, Isr -----Original Message----- >From: "Isr Gish" >Sent: 7/23/04 12:35:36 AM >To: "pythonce@python.org" >Subject: RE: [PythonCE] Trying to use different os.py > >Hi David, > >My problem is that I took out the python23.zip file and instead put in thee .py files. I still get the same results. It seems that it's taking the os module (and some other ones) from a .zip file in the lib folder, but I have no idea from where. Since there is no .zip file in the folder. > >I do remember seeing somewhere (maybe on your website) that if it doesn't find the basic modules it takes it from the .dll file. Maybe that's where its taking it from. But I'm still wondering why it doesn't take it from the Python\lib folder. > >All the best, >Isr > >P.S. Also there is no way to change the Path before Python starts (as far as I know) only in the pythonrc.py file which first gets imported after the basic modules like os and the others. > >-----Original Message----- > >From: "David L. Kashtan" > >Sent: 7/22/04 2:14:24 AM > >To: "Isr Gish" > >Subject: RE: [PythonCE] Trying to use different os.py > > > >Look at sys.path it will tell you the order in which it is trying > >to find modules. > >David > > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From lobo at pobox.com Tue Jul 27 15:04:26 2004 From: lobo at pobox.com (Sergio Lobo) Date: Tue Jul 27 15:04:32 2004 Subject: [PythonCE] Python for Windows Mobile 2003 Message-ID: <20040727130323.AAB91139322@puzzle.pobox.com> Hello, I would like to know if there is any build available for Pocket PC 2003. If there is, please let me know the URL. Kind regards, Sergio Lobo From isrgish at fastem.com Wed Jul 28 01:04:52 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 28 01:04:30 2004 Subject: [PythonCE] os.chdir difficulty Message-ID: <20040727230429.418B51E4002@bag.python.org> Hi all, It seems that os.chdir(..) when passed something like this '../tools' it doesn't know what to do with it, it just adds it on the way it is to the end of the path. For example if I have a current path of, '\\Program Files\\Python\\lib\\site-packages\\reportlab\\docs' Then I would get, '\\Program Files\\Python\\lib\\site-packages\\reportlab\\docs\\../tools' But if I use backslashes like this '..\\tools', then it works fine and I get what I was looking for. '\\Program Files\\Python\\lib\\site-packages\\reportlab\\tools' Any help would be appreciated, Isr From isrgish at fastem.com Wed Jul 28 01:04:58 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 28 01:04:32 2004 Subject: [PythonCE] Running multiple shells Message-ID: <20040727230431.6A7381E4002@bag.python.org> Hi David, I have been using, the option '/new', to run multiple shells. Up till now I had no problem with it. But now I was trying to run a script that runs a different script, and here is where I run into problems. It doesn't seem to open a second shell. What I find intresting is that if I run a different python scriptbwhile the first is still running, I do get a second shell. But still if from the script itself I try running a second script it doesn't do anything. All the best, Isr P.S. What I'm acttualy trying to use is the reportlab package. From www.reportlab.org Its used to make pdf files, and is written in python. From isrgish at fastem.com Wed Jul 28 04:52:44 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Jul 28 04:52:19 2004 Subject: [PythonCE] Python for Windows Mobile 2003 Message-ID: <20040728025218.A222C1E4002@bag.python.org> At sourforge there is a project called pythonce, there you will find for the PocketPC 2002 and 2003 All the best, Isr P.S. I think the url is www.sourceforge.net\projects\pythonce Good luck and enjoy. -----Original Message----- >From: "Sergio Lobo" >Sent: 7/27/04 9:04:26 AM >To: "pythonce@python.org" >Subject: [PythonCE] Python for Windows Mobile 2003 >Hello, > >I would like to know if there is any build available for Pocket PC 2003. If >there is, please let me know the URL. > >Kind regards, >Sergio Lobo > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce >