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

[BEAM-5323] Finish Python 3 porting for utils module #6359

Merged
merged 1 commit into from
Sep 10, 2018

Conversation

RobbeSneyders
Copy link
Contributor

This is is part of a series of PRs with goal to make Apache Beam PY3 compatible. The proposal with the outlined approach has been documented here.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
--- --- --- ---

@@ -209,7 +209,6 @@ def wrapper(*args, **kwargs):
# Traceback objects in locals can cause reference cycles that will
# prevent garbage collection. Clear it now since we do not need
# it anymore.
sys.exc_clear()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sys.exc_clear has been removed in Python 3.
Reading the docs, this call does not seem necessary as long as the local variable with reference to the traceback is removed.

@RobbeSneyders
Copy link
Contributor Author

Copy link
Contributor

@tvalentyn tvalentyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Thank you!

@aaltay aaltay merged commit 520b3a2 into apache:master Sep 10, 2018
@charlesccychen
Copy link
Contributor

Can we remove the corresponding comment here too?

CC: @robertwb who may know more about the reference counting issues from before.

@tvalentyn
Copy link
Contributor

@charlesccychen I think the comment is still relevant since the line 213 clears the reference to traceback stored in exn_traceback.

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.

4 participants