File: safethread.py

package info (click to toggle)
python-numarray 1.5.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,668 kB
  • ctags: 11,384
  • sloc: ansic: 113,864; python: 22,422; makefile: 197; sh: 11
file content (8 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
try:
    from thread import get_ident
except ImportError:
    def get_ident():
        """Stub get_ident() function returning a fake thread id
        for non-threaded environments.
        """
        return 0