Still need the answer to the question: " howto embed given python file
(which contains python class and its members) into the c++
application ? "
I have to pass the arguments from c++ to python and back so I need to
do conversions. They are ok. Fails PyImport_Import(my_module) call
saying "No modu
Hi people,
I've used SWIG module to embed python inside c++ app. I pass a list of
objects (with lots of different properties of types string, float,
custom types like URL, Software and finally of list of strings).
Now I'm in python. URL and Software has str() method that converts
their value to s
Great!
The solution is to use self.benchmarks = list(object.benchmarks).
Now I'm battling with time_t type. C++ time_t converts to python int
but it causes memore leaks due to destructor absence. I'm trying to
figure it out. If anyone know, please share your thoughts.
Be happy :)
Arthur
--
htt
Hi all,
Ok, I managed to work with c++ data types in python and can store
serialize c++ objects to store in json.
Now the task is backward. I wrote a c++ code to get the list of
objects using again python interface. The list of objects is returned.
PyList.
But I can't see how to convert PyObjec
Ok people,
I do:
for (Py_ssize_t i = 0; i< PyList_Size(py_list); ++i) {
PuObject* obj = PyList_GetItem(py_list, i);
if (obj != NULL) {
// howto get obj properties of different types
(map, list, string, int, bool) ?
}
}
Very clear code. The question i
Stefan, great suggestion !!
I will definitely bookmark this page and consider later. But my
project dictate me use SWIG. I'm almost near the happy subend. Very
curios on question I asked in previous message.
Dear all, I love you too much :)
Arthur
--
http://mail.python.org/mailman/listinfo/pyth
Stephan, you are lead developer over there :))) It's marketing,
however very nice solution.. I will propose my bosses to rediscover
their world assumptions. You know, they are still using SVN, they are
very loosely coupled to the past. I have to wash their brains...
Meantime still battling with Py
In short, the answer is to use PyObject dictionary ?
--
http://mail.python.org/mailman/listinfo/python-list
Hi people,
I've created very nice post here:
http://stackoverflow.com/questions/5274690/how-to-get-python-class-serializable-and-well-parsed-by-json-custom-encoder-deco
Yes, there are solutions over the internet, but nothing works for my
custom types.
If you could answer, please read it.
Be happ
Common guys, help me, sweet heart to finish my job and go with my
friend in the bar. Today we have a blues night :) Love it!
Christina
--
http://mail.python.org/mailman/listinfo/python-list
Currently trying to pick up my ava http://en.gravatar.com/christinasanders21
for StackOverflow, which site I found very good for my questions,
didn't I?
Yes, and there are problem when adding a picture. Web admins should be
careful.
Can anyone explain me my problem ? :
Christina
--
http:/
Hello,
I have a C++ application, I used SWIG to call the python code. I pass
myModule.myObject object to the method of python code and what to
store it in JSON format.
The problem is when I do:
o = myModule.myObject()
inside python, the o object has __dict__ property, but if I take the
passed
On 12/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I also believe this is a bug.Here's an even shorter demonstration of the behavior:
>>> u"\\".encode("unicode_escape").decode("unicode_escape")Traceback (most recent call last): File "", line 1, in ?UnicodeDecodeError: 'unicodeescape' codec
e wheel movements
to be made.
* menuwrapper.Menu.GetProperties() now returns a dict like all other
GetProperties() methods. This dict for now only has one key
'MenuItems' which contains the list of menuitems (which had been
the previous return value).
Thanks
Mark
----
<[EMAIL PROTECTED]> wrote:
> But I think in some situations Ruby allows to omit them, solving some
> of the "impossibile" problems shown in this thread. This makes Ruby a
> bit better than Python to create application-specific mini languages,
> that are quite useful in some situations.
Yes. Howev
Srikanth <[EMAIL PROTECTED]> wrote:
> All I need is a good IDE, I can't find something like Eclipse (JDT).
> Eclipse has a Python IDE plug-in but it's not that great.
Have you tried the 'full' plugin (you have to pay about 30 $ IIRC or
something like that)?
My favourite Python editor is TextMate
101 - 116 of 116 matches
Mail list logo