Ticket #38: 0001-Don-t-copy-objects-wich-smells-like-GObject-ones.-Th.patch
| File 0001-Don-t-copy-objects-wich-smells-like-GObject-ones.-Th.patch, 1.2 kB (added by inean, 3 years ago) |
|---|
-
a/lib/reinteract/statement.py
old new 7 7 from custom_result import CustomResult 8 8 from notebook import HelpResult 9 9 from stdout_capture import StdoutCapture 10 from gobject import GObject 10 11 11 12 # A wrapper so we don't have to trap all exceptions when running statement.Execute 12 13 class ExecutionError(Exception): … … 93 94 else: 94 95 variable = mutation 95 96 97 # don't make shallow copies of GObject derived instances 98 if (isinstance(scope[variable], GObject)): 99 break 100 96 101 try: 97 102 if type(scope[variable]) != type(sys): 98 103 scope[variable] = copy.copy(scope[variable])
