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.
.
Relevant Pages
- Re: Python bytecode compatibility between interpreter versions
... Note that I specifically mentioned .pyc files vs. java class files, ... not Java the language/environment/platform vs. Python. ... > your platform. ... Perhaps one day .pyc files can work in such a manner. ... (comp.lang.python) - Re: Any way to not create .pyc files?
... As long as you zipped up the package will all .pyc and .pyo files removed, Python will have no choice but to compile the files every time they are imported - unless I'm grossly mistaken Python won't put the pyc files into the zip archive, or modify any that were there already. ... Instead of the users starting the application directly, they could start a starter application that checks with the server to determine if local files need to be updated, and if so grab them and then start the main app. ... (comp.lang.python) - Re: Race condition when generating .pyc files
... Part of the code lives in one place, ... hosts when the module's .pyc file is generated. ... python source first. ... Inhibiting the generation of .pyc files altogether if that's even ... (comp.lang.python) - Re: bytecode non-backcompatibility
... > So there are currently 7 implementations or variations of the Python ... >The same can't be said for .pyc files ... One of the principles of OOP is separation of interface from ... Python language is interface. ... (comp.lang.python) - Re: Python bytecode compatibility between interpreter versions
... > application as .pyc files? ... > .pyc's for each version of Python you support. ... Some installers like ZeroG will install them for you. ... up the interpretter, your code and extension libraries and dump ... (comp.lang.python) |
|