nap a écrit :
> On Fri, Aug 6, 2010 at 2:47 PM, Aurelien Degremont
> <[email protected]> wrote:
>> nap a écrit :
>>> It's true, but getting a python 2.4 compatibility will need some hacks
>>> (like redefine the set() call or other funny things) and will ask for
>>> more packages dependancies (multiprocessing at least).
>> What's the issue with set() ?
>> Python 2.4 introduces the new builtin type: set
>> Python 2.6 deprecates the old module Sets.
> You just need to import in 2.4 and notjust the import but from ..
> import as so you do not have to change the code for this.

I do not understand...

$ python
Python 2.4.3 (#1, May 24 2008, 13:57:05)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> a = set([1, 4, 5])
 >>> a
set([1, 4, 5])
 >>>

Nothing to import?


> first I need to find a way to install the multiprocessing module in
> Centos5 for 2.4, and it's not so simple if we want a packet... (yes
> the download + setup.py install will work, but it's not a solution :)

Yep... multiprocessing could really be a pain to backport indeed...
This is really a blocker to support Python < 2.6





-- 
Aurelien Degremont
CEA

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Shinken-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to