On Wednesday, February 20, 2013 12:23:08 PM UTC+1, Simon King wrote:
>
> Hi! 
>
> I currently work on making default arguments of __init__ automatically 
> available to UniqueRepresentation, so that it won't be needed to 
> override __classcall__ in order to deal with default arguments. 
>
> Problem: I would need to determine the argspec of some __init__ methods 
> during startup, in particular, before sage.rings.integer is loaded. This 
> currently is a problem, because sage.misc.sageinspect imports encoded_str 
> from sagenb.misc.misc, but sagenb imports from sage.rings.integer. 
>
> Apart from that, it seems to me that encoded_str and unicode_str are 
> functions that do not really belong to the notebook (after all, this 
> isn't about the notebook, but about strings). 
>
> I do understand that the notebook shall not depend on sage. Hence, 
> *moving* encoded_str etc. to sage.misc.misc probably is not an option. 
> But do you think it'd be fine to copy it into sage.misc.misc? Or perhaps 
> even into a new sage.misc.strings? 
>
> Or do you see a way to avoid code duplication? 
>
> Maybe create a "shared" spkg? 

> Best regards, 
> Simon 
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to