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

PathLike behavior for File #174

Closed
yadudoc opened this Issue Mar 29, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@yadudoc
Contributor

yadudoc commented Mar 29, 2018

With the recent changes to the DataFuture behavior and the File based model that we are moving to in general, we want to have File behave as closely to old behavior as possible so that there's least amount of code breakage. This is one such case:

Earlier we could do this since the result of a DataFuture was a string

f = open(DataFuture1.result(), 'r')

Now the result of a DataFuture is a File, which can't simply be passed to open:

f = open(File, 'r') <-- Fails

This can be fixed by making File follow the os.PathLike interface

@yadudoc yadudoc added this to the Parsl-0.5.0 milestone Mar 29, 2018

@yadudoc yadudoc added the enhancement label Mar 29, 2018

@yadudoc

This comment has been minimized.

Contributor

yadudoc commented Mar 29, 2018

I believe @kylechard is already working on this

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