On Thu, Jan 24, 2019 at 1:27 PM Simon Brandhorst <[email protected]> wrote:

> So here is a question which came up in #24889:
>
> We have an enumerator of objects, let us call them breeds of dogs which
> returns all breeds with user defined properties e.g. breeds of small dogs.
> How would you give the user access to it in a sageish pythonic way:
> Let us say the way to create a breed is Dog.breed()
>
> DogsBreeds(size=small, color=dark)
> Dogs.breeds(size=small, color=dark)
> all_breeds_with(size=small, color=dark)
> Breeds
> ?
>
>
> In our specific case we have quadratic forms and to a quadratic form one
> can associate its genus.
> Now we have an enumerator which returns all genera of specified signature
> and determinant. How to name it?
> QuadraticFormsGenera
> QuadraticForms.Genera
> Genera
> ?
>

I don't see a QuadraticForms object in Sage (just a QuadraticForm), so
wouldn't the second be QuadraticForm.Genera?

I would probably go with QuadraticForm.genera, since that doesn't require
adding something to the global namespace, but I think QuadraticFormsGenera
could be okay too.
David

>
> There are examples of each kind of behaviour in the sage library.
>
>
>
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to