Hello,
i need some help with python.
I have written some c++ extensions for python, and i can execute a
script, calling this functions. (PyRun_SimpleFile)
Now my problem is, that i want to parse the script first, because i
want
to know, if there are any wrong arguments (e.g. not the right number
of arguments, or of wrong type (int, char* etc.)).
PyRun_SimpleFile tells me, whether there is an error, but
it executes all calls before the wrong one.
Can anyone give me a hint?
PyParser_SimpleParseFile is not, what i am looking for!!
Thanks a lot.
Susanne 2 2476
Hello,
i was looking for a solution in the groups, and
someone did it with:
struct _node * myNode = PyParser_SimpleParseFile(...);
PyNode_Compile(myNode);
PyEval_EvalCode(...);
I am using Python 2.3 and there my Visual Compiler says, that there
is no PyNode_Compile().
I also looked i different books, and in the html-help of
Python 2.3, but found nothing usable.
Perhaps anyone of you has an idea, how to solve my problem.
Thanks
Susanne
Hello,
i was looking for a solution in the groups, and
someone did it with:
struct _node * myNode = PyParser_SimpleParseFile(...);
PyNode_Compile(myNode);
PyEval_EvalCode(...);
I am using Python 2.3 and there my Visual Compiler says, that there
is no PyNode_Compile().
I also looked into different books, and in the html-help of
Python 2.3, but found nothing usable.
Perhaps anyone of you has an idea, how to solve my problem.
Thanks
Susanne This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Doug |
last post by:
I have a script that does a huge database update, which takes a long
time. However, the host I am running on (and I suspect most hosts) are
running in "safe mode." This means I cannot change the...
|
by: Boris Nikolaevich |
last post by:
This is backwards of what I usually want--normally if you have a
long-running ASP script, it's a good idea to check to see whether the client
is still connected so you can cancel execution.
...
|
by: #pragma once |
last post by:
That's all we are expecting from programs written in the managed code;
Though a MVP advised not to say that, because after JIT compilation the
code runs in the native! Funny, isn't? That means...
|
by: nate |
last post by:
Hello,
Does anyone know where I can find an ASP server side script written in
JavaScript to parse text fields from a form method='POST' using
enctype='multipart/form-data'? I'd also like it to...
|
by: |
last post by:
Hi,
I need to read a big CSV file, where different fields should be converted to
different types,
such as int, double, datetime, SqlMoney, etc.
I have an array, which describes the fields and...
|
by: iam980 |
last post by:
Hello All.
We have tested following SQL script from query analyzer:
-- Script begin
DECLARE @I int;
SET @I = 1;
WHILE @I < 10000000 BEGIN
SET @I = @I + 1;
END
-- Script end
|
by: js |
last post by:
I have a textbox contains text in the format of "yyyy/MM/dd hh:mm:ss".
I need to parse the text using System.DateTime.Parse() function with
custom format. I got an error using the following code. ...
|
by: Paul |
last post by:
I have a PHP script that is triggered by a .forward file when
incoming
email arrives. When triggered, the script retrieves the email using
the php imap functions, processes the email, and then...
|
by: Guillermo Antonio Amaral Bastidas |
last post by:
Hi everybody,
I have a quick and probably dumb question, keep in mind I just
dumped my old love FastCGI + Perl for it's younger hotter friend PHP5.
If the user calls a time consuming script...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |