Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POSIX-style transparent SoftLinks #399

Merged
merged 7 commits into from Nov 15, 2014

Conversation

alimuldal
Copy link
Contributor

I find the existing SoftLink class to be a bit clunky, in that you have to call the link object in order to dereference it before you can access the attributes of the node it's pointing to. This is quite different to how softlinks usually behave, e.g. POSIX-style symbolic links which you can read and write to transparently, just as if you were operating on the target file itself. Making softlinks expose the same attributes and methods as the nodes they target removes the need to include extra boilerplate code when passing them to functions that would normally accept arrays, tables etc.

Here's a first attempt to provide this sort of functionality - I'm sure there may be more elegant approaches, and I'd like to hear your feedback.

@avalentino
Copy link
Member

Thanks @alimuldal it looks good.
I will merge it ASAP.

@avalentino avalentino added this to the 3.2 milestone Nov 5, 2014
@avalentino avalentino self-assigned this Nov 5, 2014
@avalentino avalentino merged commit 46db17a into PyTables:develop Nov 15, 2014
avalentino added a commit that referenced this pull request Nov 15, 2014
alimuldal pushed a commit to alimuldal/PyTables that referenced this pull request Apr 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants