Debian Codegraph @

tests/testrc.py

raw symbols SCIP
1 from sys import getrefcount
2 from _rl_accel import unicode2T1
3
4 utext = 'This is the end of the world'
5
6 class Font:
7 def __init__(self,name):
8 self.fontName = name
9 self.substitutionFonts = []
10 self.encName = 'utf8'
11
12 font = Font('Helvetica')
13
14 defns = 'utext font font.encName font.fontName font.substitutionFonts'.split()
15 rc0 = [getrefcount(eval(x,globals())) for x in defns]
16 print(rc0)
17 unicode2T1(utext,[font]+font.substitutionFonts)
18 rc1 = [getrefcount(eval(x,globals())) for x in defns]
19 print(rc1)
20 if rc1!=rc0:
21 print('!!!!! reference counts changed !!!!!')