python: Also convert regular map keys to string
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
8f1683246e
commit
25938500d6
@ -285,7 +285,9 @@ template <typename T1, typename T2, typename value_conv> struct map_pair_wrapper
|
||||
{
|
||||
if ((i >= 2) || (i < 0))
|
||||
KeyError();
|
||||
return (i == 1) ? object(value_conv()(x.ctx, x.base.second)) : object(x.base.first);
|
||||
return (i == 1) ? object(value_conv()(x.ctx, x.base.second))
|
||||
: object(PythonConversion::string_converter<decltype(x.base.first)>().to_str(x.ctx,
|
||||
x.base.first));
|
||||
}
|
||||
|
||||
static int len(wrapped_pair &x) { return 2; }
|
||||
|
Loading…
Reference in New Issue
Block a user