Here is what comp.lang.python had to say:

http://mail.python.org/pipermail/python-list/2008-September/509306.html -

graph wrote:
> Does anyone know why PySys_GetObject wasn't documented until somewhat
> recently (http://bugs.python.org/issue1245) if it has been part of the
> system module interface since at least Python 1.5.2?  Is it not
> supposed to be used?  What's the difference the above and importing
> the sys module and then doing the append?

The PySys_Get/SetObject methods are faster than PyImport. The methods 
access the sys module directly without going through the import API. The 
funcitons weren't documented because they were simply forgotten.

Christian

----- Original Message ----
> From: Gilad Raphaelli <[EMAIL PROTECTED]>
> To: Brad Nicholes <[EMAIL PROTECTED]>; Lieting Yu <[EMAIL PROTECTED]>; 
> [email protected]
> Sent: Friday, September 26, 2008 5:38:23 PM
> Subject: Re: [Ganglia-general] mod_python on Solaris not scanning directory
> 
> 
> > 
> 
> > OK. Do you know which version of Python introduced the PySys_GetObject() 
> > function?  It seems to be an undocumented function until python 2.6.  It 
> > might 
> 
> > be good to know what the issue is with this function and why it wasn't 
> > documented before we start using it.
> > 
> > Brad
> 
> PySys_GetObject is part of the system module interface (sysmodule.h) at least 
> since 1.5.2 - I've only tried that patch with python 2.3 & 2.5 though.  
> According to http://bugs.python.org/issue1245 basically none of the PySys_* 
> functions were documented until recently.  I'll see if anyone on 
> comp.lang.python has any insight into why we shouldn't use this.
> 
> -g
> 
> 
> 
>       
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general



      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to