python 2.6
#1
is this going to be merged anytime soon?

the reason i ask, is it includes pysqlite and some other modules not in 2.4.

it would save having to include these packages for each script.

if not could xbmc include a few popular packages? keeping a copy for each platform is difficult.

PIL,
pyqlite (in 2.6)
pysvn,
elementtree (in 2.6)

there is also an issue putting packages under system/python/Lib

some pakages like pysqlite do not work with the special:// paths that are in the path environment. so if you want packages to work there you need to _P() them.

also a userdata/system/python/Lib folder and addition to path would be useful. needs to be _P() though.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
I agree with you on userdata folder.. http://trac.xbmc.org/ticket/7246

I really want to see lxml also... lxml module is very difficult for each platform.
Reply
#3
I submitted a python2.6 path long time ago for linux. I think malloc64 is working on a separate branch here:

http://trac.xbmc.org/browser/branches/python26

Though the latest change was made more than 3 month ago.
Reply
#4
Last thing I remember was something about python2.6 not being able to be unloaded as python2.5/python2.4 are.
Reply
#5
The question is, what do we gain my unloading python all the damn time?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
elupus Wrote:The question is, what do we gain my unloading python all the damn time?

memory footprint on resource limited platforms that don't have swap.
Reply
#7
Right.. Well one issue i ran into is that we are not refcounting dlopen of sub dll's properly.

Python wasn't unloading at all after some scripts. Due to some module dll not getting unloaded. I'll see if i can get that working. I have a hack for this on windows, but i think a complete fix might be needed.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#8
Oh and ssl i fucked with this unloading. Both libcurl and python register global callback functions which reside in their respective dll's. When one of them get's unloaded, the other segfaults :/

Maybe we could register our own global functions and intercept all calls to the real ones.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
python 2.60