source: trunk/environments/g4py/tests/test04/test2.py @ 1358

Last change on this file since 1358 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 631 bytes
Line 
1#!/usr/bin/python
2# ==================================================================
3# python script for Geant4Py test
4#
5#
6# ==================================================================
7import test04, sys
8
9btrack= test04.Track()
10print "<<< ref#(btrack)=", sys.getrefcount(btrack)
11bstep= btrack.GetStep2()
12print "<<< ref#(btrack, bstep)=",\
13      sys.getrefcount(btrack),\
14      sys.getrefcount(bstep)
15del bstep
16print "<<< delete bstep"
17print "<<< ref#(btrack)=", sys.getrefcount(btrack)
18
19
20print ""
21cstep= btrack.GetStep2()
22cstep= test04.Step()
23print "<<< previous step is still remain?"
24
25
26print ""
27print "--- stderr ---"
28
29
Note: See TracBrowser for help on using the repository browser.