Skip to content

Strip extra ' from field names when loading from hickle file - #82

Open
grero wants to merge 1 commit into
masterfrom
loadfix
Open

Strip extra ' from field names when loading from hickle file#82
grero wants to merge 1 commit into
masterfrom
loadfix

Conversation

@grero

@grero grero commented Sep 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

@grero

grero commented Sep 8, 2026

Copy link
Copy Markdown
Owner Author

This illustrates the problem, and the fix

class MyObj():
    def __init__(self,b=None):
       self.b = b

a = MyObj()
setattr(a, "'setidx'", [1,2])
a.setidx # this gives an error
getattr(a, "'setidx'") # this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant