Closed airguru closed 3 weeks ago
Did you use the pypi version? I think #59 fixed this. Could you try the latest version from main?
Yes, i just used pypi version. Pip freeze gives me pydifact==0.1.6
. From looking at #59, I see that likely adding characters
parameter to the interchange constructor could work (because it would get passed to AbstractSegmentsContainer
. Is that not part of the pypi version?
However, the unused self.delimiters
property is till there.
Unfortunately, it was merged after the release of 0.1.6 and hasn't made it to pypi yet.
I just released a new version 0.1.7 to pypi with the current version in git master. @airguru could you please make a pip install -U pydifact
and test if it works now?
BTW. I finally dropped Python 3.5 (and 3.6, 3.7) support, as they are basically unmaintained now.
It seems to work now when passing characters
arg into Interchange constructor. The delimiters
can now be really deleted :)
@airguru you mean you pass characters
into the Parser()
constructor?
I deleted the delimiters
parameter - it's really unused.
I was trying to serialize an Interchange with custom delimiters property, but it did not seem to have any effect. I was always getting
UNA:+,? '
. Turns out, inInterchange
constructor:the
self.delimiters
property is never actually used. Inserialize()
method inherited fromAbstractSegmentsContainer
, in realityself.characters
is passed intoSerializer
class. I believe this is just misnaming and thedelimiters
property inInterchange
class should be renamed tocharacters
.