projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
python
/
langobj_runme.py
1
import sys
2
from langobj import *
3
4
5
x ="hello"
6
rx = sys.getrefcount(x)
7
v = identity(x)
8
rv = sys.getrefcount(v)
9
if v != x:
10
raise RuntimeError
11
12
if rv - rx != 1:
13
raise RuntimeError