PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
sort-test.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
3
import
locale
4
import
sys
5
6
locale.setlocale
(
locale.LC_ALL
,
""
)
7
8
if
len
(
sys.argv
) != 2:
9
sys.stderr.write
(
"Usage: sort.py filename\n"
)
10
sys.exit
(1)
11
12
infile =
open
(
sys.argv
[1],
'r'
)
13
list =
infile.readlines
()
14
infile.close
()
15
16
for
i
in
range
(0,
len
(list)):
17
list[i] = list[i][:-1]
# chop!
18
19
list.sort
(key=
locale.strxfrm
)
20
print
(
'\n'
.join(list))
print
void print(const void *obj)
Definition
print.c:36
len
const void size_t len
Definition
pg_crc32c_sse42.c:28
fb
static int fb(int x)
Definition
preproc-init.c:92
range
static struct cvec * range(struct vars *v, chr a, chr b, int cases)
Definition
regc_locale.c:412
src
test
locale
sort-test.py
Generated on Thu Jan 29 2026 12:13:18 for PostgreSQL Source Code by
1.9.8