#10004: The gap instances in a parallelised function do not always have distinct
_local_tmpfile
--------------------------+-------------------------------------------------
Reporter: SimonKing | Owner: was
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-4.6
Component: interfaces | Keywords: _local_tmpfile, parallel
Author: Simon King | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
Comment(by SimonKing):
Replying to [comment:6 mpatel]:
> I think this is because of Python's
[http://docs.python.org/tutorial/classes.html#private-variables name-
mangling]:
Thank you! I did not know about this.
Do you think that in the {{{quit()}}} method I should now do
{{{
self.__delattr__('_Expect__local_tmpfile')
}}}
instead of
{{{
self.__local_tmpfile=None
}}}
?
Or is testing
{{{
self.__local_tmpfile is None
}}}
quick enough, so that the patch can stay as it is?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10004#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.