Back to index

python3.2  3.2.2
Classes | Functions | Variables
ctypes.test.test_libc Namespace Reference

Classes

class  LibTest

Functions

def three_way_cmp

Variables

tuple lib = CDLL(_ctypes_test.__file__)

Function Documentation

Return -1 if x < y, 0 if x == y and 1 if x > y

Definition at line 8 of file test_libc.py.

00008 
00009 def three_way_cmp(x, y):
00010     """Return -1 if x < y, 0 if x == y and 1 if x > y"""
00011     return (x > y) - (x < y)

Here is the caller graph for this function:


Variable Documentation

tuple ctypes.test.test_libc.lib = CDLL(_ctypes_test.__file__)

Definition at line 6 of file test_libc.py.