Hi, First of all, it is a bit perplexing to to ask a basic question after working with Sage more than ten years... Anyway here is the question:
When I write Sage library code returning an integer value, is it ok to return `int` or should it always return `Integer`? If the return value is of type `int`, it is inconvenient to subsequently apply usual methods attached with `Integer` like `factor()`. So I think it is preferable to always return `Integer`. But I do not find such a policy in the Sage developer manual. So I wonder what is the situation. Which one of the following is true? (1) No such policy since actually it is a bad policy. (2) The policy is shared by Sage developers. But no one bothered to write it down in the developer manual. (3) It is actually in the developer manual. (4) There was enough discussion about it in sage-devel. So everyone, except me, knows the right policy. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/dfc9caea-e9c5-439d-8f23-c707eb69c93an%40googlegroups.com.
