Package twisted :: Package python :: Module compat
[show private | hide private]
[frames | no frames]

Module twisted.python.compat

Compatability module to provide backwards compatability for useful Python features.

This is mainly for use of internal Twisted code. We encourage you to use the latest version of Python directly from your code, if possible.
Classes
_ListIterator  

Exceptions
StopIteration  

Function Summary
  dict(args)
  inet_pton(af, addr)
  inet_ntop(af, addr)
  isinstance(object, class_or_type_or_tuple)
  bool(value)
Demote a value to 0 or 1, depending on its truth value
  iter(lst)

Variable Summary
int True
int False

Function Details

bool(value)

Demote a value to 0 or 1, depending on its truth value

This is not to be confused with types.BooleanType, which is way too hard to duplicate in 2.1 to be worth the trouble.

Variable Details

False

Type:
int
Value:
0                                                                      

True

Type:
int
Value:
1                                                                      

Generated by Epydoc 1.1 on Thu Apr 17 12:55:42 2003 http://epydoc.sf.net