code: def fix_ipython_startup(fn):
      
      BADSTR = 'TPython::Exec( "" )'
      GOODSTR = 'TPython::Exec( "" );'
      if sys.version_info[0] < 3:
          consts = fn.im_func.func_code.co_consts
      else:
          consts = fn.__code__.co_consts
      if BADSTR not in consts:
          return
      idx = consts.index(BADSTR)
      orig_refcount = sys.getrefcount(consts)
      del consts
  
      PyTuple_SetItem = ctypes.pythonapi.PyTuple_SetItem
      PyTuple_SetItem.argtypes = (ctypes.py_object,
                                  ctypes.c_size_t,
                                  ctypes.py_object)
  
      if sys.version_info[0] < 3:
          consts = ctypes.py_object(fn.im_func.func_code.co_consts)
      else:
          consts = ctypes.py_object(fn.im_func.__code__.co_consts)
  
      for _ in range(orig_refcount - 2):
          ctypes.pythonapi.Py_DecRef(consts)
      try:
          ctypes.pythonapi.Py_IncRef(GOODSTR)
          PyTuple_SetItem(consts, idx, GOODSTR)
      finally:
          for _ in range(orig_refcount - 2):
              ctypes.pythonapi.Py_IncRef(consts)
docs: Attempt to fix IPython startup to not print (Bool_t)1