From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020310 Description of problem: Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. run example below. 2. Observe 3. Cry in desparation. Actual Results: meddo:~/usr/src/meshugge$ cat q.py import gtk import buggtk buggtk.test() meddo:~/usr/src/meshugge$ cat buggtk.py GLOBAL_VAR = 0.1 def test(): print GLOBAL_VAR meddo:~/usr/src/meshugge$ python2.2 q.py 0.0 Additional info: meddo:~/usr/src/meshugge$ rpm -q python2 python2-2.2-11 meddo:~/usr/src/meshugge$ rpm -q pygtk2 pygtk2-1.99.8-2
Sorry - tested this on the same day that you reported, but forgot to add my comments. In short, it works for me here: [msw@sid foo]$ cat test.sh #!/bin/sh cat > q.py <<EOF import gtk import buggtk buggtk.test() EOF cat > buggtk.py <<EOF GLOBAL_VAR = 0.1 def test(): print GLOBAL_VAR EOF python2.2 q.py [msw@sid foo]$ sh ./test.sh 0.1 --- [msw@sid foo]$ rpm -q pygtk2 pygtk2-1.99.8-2 [msw@sid foo]$ rpm -y pygtk2 [msw@sid foo]$ rpm -q python2 python2-2.2-11 [msw@sid foo]$ rpm -y python2 [msw@sid foo]$