Two questions
Hi, I've developed in several other languages and have recently found Python and I'm trying to use it in the shape of the PythonCard application development tool. My two questions: 1. What is the easiest way to create a for loop in the style I'm used to from Delphi ie: for I:=0 to 2 do begin //code end; 2. Philospohy(sp?) aside, I could potentially want to create a binary-only distribution of my finished apps. I noticed the documentation on .pyc files: how do I create these and, aside from being basically read-only, are they used just like ordinary .py source files? And can they be easily reverse-engineered? Thanks, - QS Computing. -- http://mail.python.org/mailman/listinfo/python-list
Re: Two questions
Thanks to you all for the quick response. I've noticed that when I do $ python myprog.py the file myprog.pyc file is not created, but the .pyc files for files I import *are* created. Is this intentional and, if so, how do I get the myprog.pyc file? Thanks, - QS Computing. -- http://mail.python.org/mailman/listinfo/python-list
Re: Two questions
> > 1. What is the easiest way to create a for loop in the style I'm used > > to from Delphi > > Use Delphi. Very literal interpretation of my text: I should have said "in a similar style to". :-) > I can think of a number of reasons why somebody might want to hide their > code. I can't really think of any pressing reasons for wanting to hide code other than a habit developed from coding in Windows where, as I'm sure you'll know, doing otherwise is considered a bit odd. Like all habits, it's a hard one to break. :-( -- http://mail.python.org/mailman/listinfo/python-list
Non-web-based templating system
Hi, I'm creating a small application in Python that uses lists and dictionaries to create a rudimentary database. I'd like to create some "fill-in-the-blanks" reports from this data, ideally by taking an RTF or plaintext file as a template and replacing placeholder tags with my data. Are there any good pre-written systems that would allow me to do this? Thanks, - QS Computing. -- http://mail.python.org/mailman/listinfo/python-list
Re: Non-web-based templating system
Thanks, it looks like empy is what I need. -- http://mail.python.org/mailman/listinfo/python-list
Re: Non-web-based templating system
Actually, that looks even better that EmPy for what I need. I will try out these suggestions and then see what seems best. Thanks very much. -- http://mail.python.org/mailman/listinfo/python-list
