Martin Panter added the comment:

I had to recompile with “--with-pydebug” to get the crash. I know f-strings 
don’t support the lambda syntax very well, but I can also make it crash without 
using lambda:

>>> f"{ {1: 2}:x}"
Fatal Python error: Python/ceval.c:3576 object at 0x7fa32ab030c8 has negative 
ref count -1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: non-empty format string passed to object.__format__
Aborted (core dumped)

----------
components: +Interpreter Core
nosy: +martin.panter
type:  -> crash

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26287>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to