The variable name "as" in the function:
void gdcm::PresentationContext::SetAbstractSyntax(const char *as)
causing a syntax error in the Swig wrapper for Python because "as" is a reserved word in Python.
Looks like we need something like:
%rename(absyn) as;
in gdcmswig.i
But I'm not getting that to work. May need to actually rename it in the code.
Need to use:
I used a less invasive patch. Please check. Thanks
[release c333154] Do not use as since it is a reserved python keyword 2 files changed, 2 insertions(+), 2 deletions(-)
as
Looks like you've missed gdcm-2.4.4/Source/MessageExchangeDefinition/gdcmPresentationContext.h
[release 31165f8] Another round of fixes for bug #345 2 files changed, 2 insertions(+), 2 deletions(-)
That looks good now. Thanks!
Log in to post a comment.
Looks like we need something like:
%rename(absyn) as;
in gdcmswig.i
But I'm not getting that to work. May need to actually rename it in the code.
Need to use:
define as absyn
I used a less invasive patch. Please check. Thanks
[release c333154] Do not use
assince it is a reserved python keyword2 files changed, 2 insertions(+), 2 deletions(-)
Looks like you've missed gdcm-2.4.4/Source/MessageExchangeDefinition/gdcmPresentationContext.h
[release 31165f8] Another round of fixes for bug #345
2 files changed, 2 insertions(+), 2 deletions(-)
That looks good now. Thanks!