Comment #3 on issue 1507 by [email protected]: pickling test takes too
much time
http://code.google.com/p/sympy/issues/detail?id=1507
The cause of the problem is that Polygon has properties performing long
computations
- which is bad style. Since the pickling test checks equality of instance
attributes
after pickling and copying round-trips, these properties are called
multiple times.
Caching the properties would mitigate the problem, but they really should
be made
faster or turned into ordinary methods. Also, I'm not convinced that
pickling-unpickling should necessarily return an exact clone of the
original object.
Anyway, here's a patch that works around the issue by disabling the
attribute check
in test_geometry().
Attachments:
0001-Don-t-check-expensive-properties-in-test_pickling.py.patch 1.6 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---