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

Don't die if stderr/stdout do not support set_parent() #2925 #2926

Merged
merged 1 commit into from Feb 13, 2013
Merged

Don't die if stderr/stdout do not support set_parent() #2925 #2926

merged 1 commit into from Feb 13, 2013

Conversation

ghost
Copy link

@ghost ghost commented Feb 12, 2013

If the user redirects the streams to a file for example,
the kernel would raise an exception because file
objects do not have set_parent defined, unlike ipython's
OutStream.
This happens even if the user does this in a spawned thread.

closes #2925

@minrk
Copy link
Member

minrk commented Feb 12, 2013

set_parent is also called on L576-577

If the user redirects the streams to a file for example,
the kernel would raise an exception because file
objects do not have set_parent defined, unlike ipython's
OutStream.
This happens even if the user does this in a spawned thread.
@ghost
Copy link
Author

ghost commented Feb 12, 2013

thank you, fixed.

@minrk
Copy link
Member

minrk commented Feb 13, 2013

simple enough, merging. Thanks!

minrk added a commit that referenced this pull request Feb 13, 2013
Don't die if stderr/stdout do not support set_parent()

If the user redirects the streams to a file for example,
the kernel would raise an exception because file
objects do not have set_parent defined, unlike ipython's
OutStream.
This happens even if the user does this in a spawned thread.

closes #2925
@minrk minrk merged commit 465f43c into ipython:master Feb 13, 2013
@ghost
Copy link
Author

ghost commented Feb 13, 2013

45 minutes from hitting a bug to upstream fixed. This is why I love open-source.

@minrk
Copy link
Member

minrk commented Feb 13, 2013

it's nice when it works out.

minrk added a commit that referenced this pull request Mar 5, 2013
…nt() #2925

If the user redirects the streams to a file for example,
the kernel would raise an exception because file
objects do not have set_parent defined, unlike ipython's
OutStream.
This happens even if the user does this in a spawned thread.

closes #2925
minrk added a commit that referenced this pull request Mar 20, 2013
…nt() #2925

If the user redirects the streams to a file for example,
the kernel would raise an exception because file
objects do not have set_parent defined, unlike ipython's
OutStream.
This happens even if the user does this in a spawned thread.

closes #2925
@ghost ghost deleted the GH2925 branch January 25, 2014 14:06
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Don't die if stderr/stdout do not support set_parent()

If the user redirects the streams to a file for example,
the kernel would raise an exception because file
objects do not have set_parent defined, unlike ipython's
OutStream.
This happens even if the user does this in a spawned thread.

closes ipython#2925
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.

BUG: kernel dies if user sets sys.stderr or sys.stdout to a file object
1 participant