Deprecate is_Cone, is_LatticePolytope, is_Polyhedron, change uses to isinstance#37052
Deprecate is_Cone, is_LatticePolytope, is_Polyhedron, change uses to isinstance#37052vamshipy wants to merge 1 commit intosagemath:developfrom
is_Cone, is_LatticePolytope, is_Polyhedron, change uses to isinstance#37052Conversation
|
Thanks for working on this. Note though that "deprecating" means to keep the function definitions but issue a warning whenever they are used. https://doc.sagemath.org/html/en/reference/misc/sage/misc/superseded.html Deleting the function definitions needs to come in a second step, not earlier than a year after we have issued the deprecation warnings. |
|
Documentation preview for this PR (built with commit 9defda5; changes) is ready! 🎉 |
Thank you for your feedback, I will keep working on this and ask for a review |
|
will create a fresh pr |
Depricated 3 functions is_Polyhedron, is_Cone and is_LatticePolytope and replaced using the python function "isinstance"
Fixes #34307
📝 Checklist
⌛ Dependencies
The change seems simple so i don't know if there are any dependencies involved
Tried to change the comments(explanation) in the code don't know it counts as documentation
Would appreciate any kind of feedback from anyone