[visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
- From: Martin Spacek <mspacek@xxxxxxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Thu, 17 Feb 2005 03:59:57 -0800
Perfect timing, just when I realized there's a perfectly good + fast way
to get the sort indices in Python 2.3 :)
FYI:
Using list comprehensions, if v is your list you want to sort:
# load up values and indices into a list of tuples
vi = [ (v,i) for (i,v) in enumerate(v) ]
# sort the pair according to v (first entry in (v,i) tuple), the indices
will go along for the ride
vi.sort()
# unload the sorted indices, these are the indices into v that would get
you a sorted v
sortindices = [ i for (v,i) in vi ]
Anyways, I just gave the visionegg py2.4 package a try, everything seems
to work fine, including the maxpriority bit. Thanks Andrew!
Martin Spacek
On 2005-02-16 2:23 PM, Andrew Straw wrote:
I've uploaded visionegg-1.0-cvs.win32-py2.4.exe to the website. This
should work. Please test it and let me know if there are any problems.
(I got a Python 2.4 Vision Egg system working in Windows XP in about 20
minutes, including updating the webpage with instructions -- it's so
easy now!)
Cheers!
Andrew
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] VisionEgg and Python 2.4 - quick and dirty?
- From: Martin Spacek
- [visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
- From: Andrew Straw
Other related posts:
- » [visionegg] VisionEgg and Python 2.4 - quick and dirty?
- » [visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
- » [visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
- » [visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
- » [visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
- » [visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
Cheers! Andrew
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] VisionEgg and Python 2.4 - quick and dirty?
- From: Martin Spacek
- [visionegg] Re: VisionEgg and Python 2.4 - quick and dirty?
- From: Andrew Straw