Back to index

python3.2  3.2.2
Functions | Variables
collation_reverse Namespace Reference

Functions

def collate_reverse

Variables

tuple con = sqlite3.connect(":memory:")
tuple cur = con.cursor()

Function Documentation

def collation_reverse.collate_reverse (   string1,
  string2 
)

Definition at line 3 of file collation_reverse.py.

00003 
00004 def collate_reverse(string1, string2):
00005     if string1 == string2:
00006         return 0
00007     elif string1 < string2:
00008         return 1
00009     else:
00010         return -1


Variable Documentation

tuple collation_reverse.con = sqlite3.connect(":memory:")

Definition at line 11 of file collation_reverse.py.

tuple collation_reverse.cur = con.cursor()

Definition at line 14 of file collation_reverse.py.