I have been running into something that is kind of annoying. I have been
building with the C11 standard. I have found a lot of the python api
functions take strings and then complain.
This can be solved by making the functions take a const char * pointer. I
have noticed this with the stackless api functions also (I just used the
first warning I found). I know we shouldn't complain here about the base
python api. but It might be nice to make sure that the stackless side is
cleaned up and ready for the future.
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix
src/pythonInterperter.cpp:331:25: warning: conversion from string literal
to 'char *'
is deprecated [-Wdeprecated-writable-strings]
PySys_SetObject("ps1", v = PyString_FromString(">>> "));
^
The Other thing that I have been finding very difficult is to deal with is
to run a PyRun_InteractiveLoop and have it play nice with stackless. It
tends to starve out the scheduler so tasklets will not run nicely in the
background. I managed to get something working, but I am not happy with the
hoops I had to just through (basicly have a pThread that pulls stdin using
libEdit and pushes it through a channel to be input the interactive console
running in python.)
I figure that there either is A) an easier way, B) need to add a stackless
friendly console to StacklessLib, D) I missed something and am making a
fool of my self.
End point, is that I think when you run stackless, something like trying to
build your own 'python.exe' should be doable and play nice with stackless
scheduling. I did a lot of googling to try and solve this, and there was
no ready made solutions that are cross platform.
anywho, some feedback.
Life: Bah, I will worry about it when it is over.
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless