On 19/08/15 12: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 :)


I thought it did not work for Integer (because of the hook with the tp_new slot).

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