Tag: python

12 Feb 2008

Python: Missing from P3K, reduce() and more

Yes, the venerable reduce is being removed from when Python 3 hits. I don’t think I could be considered a hardcore Pythoner, so I will refrain from comment on whether that is a good or bad idea. However, I have read enough complaints about this stuff that I thought I would whip a few functions [...]

28 Jan 2008

Python Uniq(sequence)

UPDATE (2008.04.13): This has gotten to be a very popular hit for people looking for a quick and easy way to uniqify their lists. The code that was originally posted here is still available here. However, it is ugly and buggy and was only meant for me to find when I needed it. If you [...]