New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The attribute _vector
of H and V representation is exposed
#27709
Comments
Commit: |
Branch: u/jipilab/repr_exposed |
New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:3
Please remove the deprecation in a distinct ticket. |
Reviewer: Travis Scrimshaw |
comment:4
LGTM. |
comment:5
See patchbot |
comment:6
Whoops, we both missed a line. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits: |
comment:8
As suggested, I removed the deprecation warning removal from the branch. The failing doctest is related to that. |
Changed branch from u/jipilab/repr_exposed to |
Following the sage devel thread:
https://groups.google.com/forum/#!topic/sage-devel/iHvm9wfvr5g
The following code changes the internal attributes of V and H representations:
and:
As mentioned in the
__hash__
function of the filerepresentation.py
inside of the foldersrc/sage/geometry/polyhedron/
, the attribute_vector
is not immutable, due to the way it is constructed and its requirement to change in the current setup.This ticket provides a small fix that creates a copy of the vectors.
CC: @videlec @jhpalmieri
Component: geometry
Keywords: polytopes
Author: Jean-Philippe Labbé
Branch/Commit:
d969c02
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/27709
The text was updated successfully, but these errors were encountered: