Skip to content

Add normalization to clonable lists #11407

@hivert

Description

@hivert

The patch adds a new support class in list_clone.pyx for lists with a normalization methods. The normalization method is called both after creation and clone/modification. This will be needed for rooted trees.

I also take the opportunity of cleaning up the bad usage of assert in
the examples and replaced them by if ... : raise ValueError.

Apply

Depends on #11308

CC: @sagetrac-sage-combinat @tscrim

Component: combinatorics

Keywords: clone normalization Cernay2012, days49

Author: Florent Hivert

Reviewer: Travis Scrimshaw

Merged: sage-5.12.beta2

Issue created by migration from https://trac.sagemath.org/ticket/11407

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions