On 2015-08-19 11:31, Jean-Pierre Flori wrote:


On Wednesday, August 19, 2015 at 12:21:36 PM UTC+2, vdelecroix wrote:

    Note that all the solutions given will *copy* the mpz_t to the Integer.
    Is that what you want? It is also possible to avoid the copy if it is
    worth it (i.e. you have a big integer).

And one shall not use PY_NEW but the __new__ method :)

Yes, *except* for Integer and RealDoubleElement, because Sage messes with tp_new for those types.

--
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 post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to