Recently I wanted to deprecate some functions in our the C api, and
found that warnings give weired output when running through through
our C api.
A simple test is to do this...
When I run this from python I get good output..
test.py:1: DeprecationWarning: integer argument expected, got float
But when running from our C api I get
DeprecationWarning: integer argument expected, got float
ELF�p40�"4()&44�4�44�4�����F��F��F�K �K ğ<@G�K �K xxHH�H�
P�td�2?��C ��C L,L,Q�td/lib/ld-linux.so.2GNU����8�1LQ
I thought this was todo with running a compiled string so I tried
PyRun_String() on the text buffer instead of PyEval_EvalCode() but the
Id be interested to know if anyones embedded python gives proper warnings.
On Linux testing with python 2.6 here.
Dear Support Python.
I have around to find best rendering and was find blender as well as other rendering product, that galery of blender it so realistict and excited to install.
I have install blender new 2.48a, and I install to python 2.5.2 (I dont know if I install newest is python 3.1 it will work or not.)
I have the problem to complite python documentation server at http://localhost:7464/ install like this....which I must put from many list this?
and then what I must fill it python command line??? "help", "copyright" or "license" for more information>>>
and then I find plone new releases 3. 2. 1 after install that plone not shown on all program.
it mean all this install just complite for blender right?
Please I am really new and excited to learn and study much about rendering by blender.
Also I have blog to collect my rendering job, would like to get from blender gallery and show on my blog. would like you don't mind and having information the best rendering of blender gallery artist community.
Thank you for your guide and having best solution of blender rendering.
Express yourself instantly with MSN Messenger! Download today it's FREE!
I'm trying to make sure I'm using PyTuple_Pack() correctly.
This code leaks references, yes?
return PyTuple_Pack(2, PyString_FromString("some string"),
And this is the correct way to do it, yes?
py_msg = PyString_FromString("some string");
py_type = PyInt_FromLong(42);
py_return_tuple = PyTuple_Pack(2, py_msg, py_type);
Thanks for the confirmation
Recently (I suspect after I upgraded to Ubuntu Intrepid), python has
been segfaulting whenever it exits AND my Cpp extension has been importing.
The exact error (from valgrind is):
==11326== Process terminating with default action of signal 11 (SIGSEGV)
==11326== Access not within mapped region at address 0x40
==11326== at 0x5BAF974: (within /lib/libselinux.so.1)
==11326== by 0x5BA8B8D: (within /lib/libselinux.so.1)
==11326== by 0x5BA11D7: (within /lib/libselinux.so.1)
==11326== by 0x5BB134F: (within /lib/libselinux.so.1)
==11326== by 0x400E152: (within /lib/ld-2.8.90.so)
==11326== by 0x40B6D68: exit (in /lib/tls/i686/cmov/libc-2.8.90.so)
==11326== by 0x80ED204: handle_system_exit (pythonrun.c:1620)
==11326== by 0x80ED3FC: PyErr_PrintEx (pythonrun.c:1064)
==11326== by 0x80ED661: PyErr_Print (pythonrun.c:978)
==11326== by 0x80EDC87: PyRun_InteractiveOneFlags (pythonrun.c:795)
==11326== by 0x80EDDB7: PyRun_InteractiveLoopFlags (pythonrun.c:723)
==11326== by 0x80EE515: PyRun_AnyFileExFlags (pythonrun.c:692)
Has anyone seen this before? This is not a showstopper for me, but it is
a bit annoying.