#5501: pickling high-precision intervals is broken
-----------------------+----------------------------------------------------
 Reporter:  boothby    |       Owner:  jkantor   
     Type:  defect     |      Status:  new       
 Priority:  critical   |   Milestone:  sage-3.4.1
Component:  numerical  |    Keywords:            
-----------------------+----------------------------------------------------

Comment(by cwitty):

 This is presumably due to these lines from mpfi_set_str, in mpfi_io.c (in
 the MPFI library):
 {{{
   char tmp[1000];

   /* bzero(tmp,1000); */
   memset(tmp,0,1000);

   slen= (int)strlen(s);
   if(slen >=1000) return -1;
 }}}

 As a workaround, instead of passing the {{{RealIntervalFieldElement}}} x,
 you could pass (x.parent(), x.lower(), x.upper()); then on the other side,
 given (parent, lower, upper), reconstruct the original element with
 parent(lower,upper).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5501#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to