Ah OK. Thanks. That explains why the attribute has been renamed to _prec . 
That's unfortunate for compatibility across versions of sage.

The "prec()" function is not cdef'd by the looks of it, so on cython level 
one should really use the attribute rather than the accessor function, to 
avoid the huge penalty of a python function call.

On Monday 25 December 2023 at 12:31:01 UTC-8 Matthias Koeppe wrote:

> On Monday, December 25, 2023 at 11:49:24 AM UTC-8 Nils Bruin wrote:
>
> I don't think double-underscore prefixed names get mangled in python, do 
> they?
>
>
> They do:
> https://docs.python.org/3/tutorial/classes.html#tut-private
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/94ab30ed-0ec9-40d3-b96f-c875e8a48206n%40googlegroups.com.

Reply via email to