From 5d8323c7ac080149379da6905ccc31574c29ce1f Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Mon, 1 Mar 2010 22:50:42 -0800 Subject: [PATCH] Better README. --- README.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index 31f5bb6..eeb68b0 100644 --- a/README.txt +++ b/README.txt @@ -8,9 +8,10 @@ Supported backends: - syslocale - Native OS collation routines. - codepoint - Raw Unicode codepoint comparison -The different backends have varying features and behaviors; which one -is best depends on your goals. A specific backend can be used, or a -"best" backend is chosen by default. +If available, you'll probably want to use the ICU backend. If it's not +available, syslocale should work on most Python installations. A +specific backend can be used, or a "best" backend is chosen by +default. pycollate also provides tools to perform word-wise and numeric sorts. @@ -25,7 +26,7 @@ $ sudo ./setup.py install Example ------- import collate -strings = file("contents.txt").read().decode("utf-8").splitlines() +strings = open("contents.txt").read().decode("utf-8").splitlines() strings.sort(key=collate.key) License -- 2.20.1