Boost Python will happily accept None as a const char *, and that was getting passed to the InternedString constructor which requires a non-null pointer. By telling Boost Python we want an InternedString in the first place it goes via our registered converter which is smart enough to reject None.
Boost Python will happily accept
None
as aconst char *
, and that was getting passed to theInternedString
constructor which requires a non-null pointer. By telling Boost Python we want an InternedString in the first place it goes via our registered converter which is smart enough to rejectNone
.