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

should dv.sync_import print failed imports ? #1208

Closed
Carreau opened this issue Dec 25, 2011 · 3 comments
Closed

should dv.sync_import print failed imports ? #1208

Carreau opened this issue Dec 25, 2011 · 3 comments
Milestone

Comments

@Carreau
Copy link
Member

Carreau commented Dec 25, 2011

Hi,
I'm trying parallel magic, I just feel that sync_import should at least warn user if some import have failed/are not done, or at least state in the docstring that if import failed/are not done it stays silent.

Docstring don't mention local keyword, (should it ? even if no yet implemented ? )

@minrk
Copy link
Member

minrk commented Dec 26, 2011

Yes and yes. The comments in the code clearly state:

            if not local:
                # ignore import errors if not doing local imports
                pass

But there needs to be an else: raise after that to actually raise the error.

@minrk minrk closed this as completed in bf7d20d Dec 26, 2011
@minrk
Copy link
Member

minrk commented Dec 26, 2011

should be fixed

@Carreau
Copy link
Member Author

Carreau commented Dec 26, 2011

Yes, it works.
just one other detail, maybe due to @contexmanager
When ? or ?? docstring state :
Definition: dv.sync_imports(*args, **kwds) which don't cite the definition of the non decorated function. Same with temp_flags but there is no parameters so not really important.

yarikoptic pushed a commit to yarikoptic/ipython that referenced this issue May 2, 2014
ImportErrors are properly raised when no such package exists

describe `local` kwarg's purpose, indicating that `local=False`
is not implemented.

closes ipython#1208
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
ImportErrors are properly raised when no such package exists

describe `local` kwarg's purpose, indicating that `local=False`
is not implemented.

closes ipython#1208
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

No branches or pull requests

2 participants