Remove duplicates from a sequence

Remove duplicates from a sequence 1.0

Remove duplicates from a sequence 1.0 Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 351
  • Released: Jun 7, 2007

Remove duplicates from a sequence 1.0 Description

The fastest way to remove duplicates from a sequence depends on some pretty subtle properties of the sequence elements, such as whether they're hashable, and whether they support full comparisons.

This script defines the unique() function that tries three methods, from fastest to slowest, letting runtime exceptions pick the best method available for the sequence at hand.

Remove duplicates from a sequence Bookmark

Hyperlink code:
Hyperlink for Forum code:

Remove duplicates from a sequence 1.0 Script Download Notice

Top 4 Download periodically updates information of Remove duplicates from a sequence 1.0 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Remove duplicates from a sequence 1.0 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Splitting up a sequence

This script allows you to split up a sequence in same-size (if possible) parts. ...
Python

Computing permutations with duplicates

This script handles duplicate values in a list. It could easily be made a generator, and it does not require recursion. ...
Python

Fast select

... the n-th rank ordered element of a given sequence. It modifies the ordering of the given sequence. ...
Python

Padding variable length sequences

Padding variable length sequences script returns a pad function that implements tuple unpacking. ...
Python

Sieve of Eratosthenes

This script computes an infinite sequence of primes using simple generators. A Python dictionary is used to mark multiples of the generated primes, according to the Sieve of Eratosthenes. ...
Python