Compiling and running a flat Python file with args & keywds
Steven Taschuk
staschuk at telusplanet.net
Fri May 30 14:54:31 EDT 2003
Quoth martin z:
> Allrighty - I have a python text file that I want to run as a function.
> Ideally, I would like to store it in its fastest compiled form.
[...]
> Second, and more messily, are the arguments. Now, I've got the traditional
> argument tuple and keyword dictionary, but they are not defined in a
> tradtional def-statement. They're stored in a header, elsewhere.
[...]
> The second problem is that the number of keywords is unknown - the error
> checking on the keywords is done externally. One given code object could be
> called from several different headers, each with their own set of keywords
> (though identical argument sets).
[...]
It would be helpful to see an example or two of the source
sort-of-code, with headers and a run-through of what you'd like to
have happen.
--
Steven Taschuk staschuk at telusplanet.net
"Its force is immeasurable. Even Computer cannot determine it."
-- _Space: 1999_ episode "Black Sun"
More information about the Python-list
mailing list