Should arithmetic functions be methods of integers?

32 views
Skip to first unread message

Kiran Kedlaya

unread,
Mar 26, 2013, 1:46:41 PM3/26/13
to sag...@googlegroups.com
I was somewhat surprised to discover that such standard arithmetic
functions of integers as number_of_divisors, moebius, partitions, and
the like are only available as standalone functions, rather than methods
on the class of Sage integers. That is, number_of_divisors(n) works but
n.number_of_divisors() does not.

This is annoying for those of us who like to use tab completion to
detect functions applicable to a given object. Is there an existing trac
ticket for this issue?

Kiran

David Roe

unread,
Mar 26, 2013, 2:18:15 PM3/26/13
to sag...@googlegroups.com
Not that I can find.  I would support adding these functions to Integer.
David



Kiran

--
You received this message because you are subscribed to the Google Groups "sage-nt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-nt+u...@googlegroups.com.
To post to this group, send an email to sag...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-nt?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.



Kiran Kedlaya

unread,
Apr 2, 2013, 5:33:23 PM4/2/13
to sag...@googlegroups.com
I just created ticket #14401 for this.

Kiran
Reply all
Reply to author
Forward
0 new messages