On Wednesday, July 31, 2013 8:57:35 PM UTC-4, Travis Scrimshaw wrote:

>    Suppose you have [...]
>

Sometimes you might have to check the type in library code, but it 
shouldn't be necessary for the user. You'll have to know about the factory 
function pattern if you want to read and understand the Sage library code 
in any case. To find out the name of the class you type in Permutation?? 
and scroll down. I don't think its a big deal or particularly 
time-consuming. The surprise factor that a function returns a 
differently-named class is a lot less than the surprise you get when 
something that looks like a class constructor call gives you a completely 
unrelated instance, that is totally at odds with normal Python syntax.


-- 
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/groups/opt_out.


Reply via email to