Re: [sage-devel] Oneliners

2014-12-03 Thread Nathann Cohen
Hello ! So should we get rid of at least first one? I think no, but how about others? Well, I do not know about others but is_connected is not exactly a one-liner from user perspective. The function calls self._hasse_diagram.is_connected() while an user would call

Re: [sage-devel] Oneliners

2014-12-03 Thread 'Martin R' via sage-devel
I'm trying to get a more precise notion of one-liner and understand better which one-liners should not be in the library. At first I thought it might be: a function which is a composition of at most two 'user space' functions but as Nathann just wrote, this is not correct for P.is_connected()

Re: [sage-devel] Oneliners

2014-12-02 Thread Jori Mantysalo
On Wed, 3 Dec 2014, Vincent Delecroix wrote: By one line function I meant one line function that anybody can reproduce after one hour of Python. To give two specific examples: on posets there are is_connected() and minimal_elements(). First is just a direct wrapper to graph function with