This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abaelhe
Recipients abaelhe
Date 2020-08-22.05:50:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598075420.6.0.59248240325.issue41612@roundup.psfhosted.org>
In-reply-to
Content
This is a bug caused by IPython:

/opt/conda/lib/python3.8/site-packages/IPython/terminal/ptutils.py in get_completions(self, document, complete_event)
    114             except Exception as e:
    115                 from traceback import print_tb
--> 116                 print_tb(e)
    117 
    118     @staticmethod


######################################################################
# Simulation investigation for above KeyError:
In [3]: def fun():
   ...:     try:
   ...:         s = {}
   ...:         k = s['0']
   ...:     except Exception as e:
   ...:         import sys
   ...:         from traceback import print_tb
   ...:         exc_type, exc_value, exc_traceback = sys.exc_info()
   ...:         print_tb(exc_traceback)
   ...: 

In [4]: fun()
  File "<ipython-input-3-d3df30294ed8>", line 4, in fun
    k = s['0']
History
Date User Action Args
2020-08-22 05:50:20abaelhesetrecipients: + abaelhe
2020-08-22 05:50:20abaelhesetmessageid: <1598075420.6.0.59248240325.issue41612@roundup.psfhosted.org>
2020-08-22 05:50:20abaelhelinkissue41612 messages
2020-08-22 05:50:20abaelhecreate