Lars Haulin 5bf3765631 py/objnamedtuple: Fix segfault with empty namedtuple.
The empty tuple is usually a constant object, but named tuples must be
allocated to allow modification.  Added explicit allocation to fix this.

Also added a regression test to verify creating an empty named tuple works.

Fixes issue #7870.

Signed-off-by: Lars Haulin <lars.haulin@gmail.com>
2022-07-13 16:25:35 +10:00
..
2014-03-31 18:02:22 +01:00
2020-09-04 00:10:24 +10:00
2017-05-29 11:36:05 +03:00
2014-02-10 07:13:32 +02:00
2014-04-13 17:46:30 +01:00