[GNC-dev] Problems with python 3 and the gnucash python bindings.
Derek Atkins
warlord at MIT.EDU
Thu Jul 19 09:42:08 EDT 2018
John Ralls <jralls at ceridwen.us> writes:
>> Funny... 15+ years ago it WAS an Enum, but changed to a string because
>> we wanted to enable searching on plug-in modules.
>
> OK, and enums are immune to run-time changes implied by a plugin
> module, but there are better ways than strings to tag types. Glib
> provides Gquarks for just this purpose and even provides a function to
> get one on a GObject's type name:
> g_type_qname(G_OBJECT_TYPE()).
These APIs did not exist in 2002 when this code was written.
> C++ obviously has a different type model and we'll need to
> rework/replace QofID, QofContainer, and QofQuery to match it so
> changing them now to use quarks instead of strings would be wasted
> effort.
*nods*
> Regards,
> John Ralls
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list