Changes between Initial Version and Version 1 of Ticket #28675


Ignore:
Timestamp:
10/31/19 07:56:28 (18 months ago)
Author:
egourgoulhon
Comment:

New commits:

e16951eDeprecation notice for GraphicsArray import from sage.plot.graphics

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28675

    • Property Status changed from new to needs_review
    • Property Authors changed from to Eric Gourgoulhon
    • Property Cc was added
    • Property Summary changed from Redirect import of GraphicsArray to Deprecate GraphicsArray import from sage.plot.graphics
    • Property Branch changed from to public/graphics/GraphicsArray_import-28675
    • Property Commit changed from to e16951ee794cb76aefa181103ae7d3a07d5e7bcb
  • Ticket #28675 – Description

    initial v1  
    1 #27865 has refactored the class `GraphicsArray` and has moved its definition from  `src/sage/plot/graphics.py` to `src/sage/plot/multi_graphics.py`. As pointed out in https://groups.google.com/d/msg/sage-devel/eTl4DHcwnOo/uQSOtstWAwAJ, this has broken Sage's API: the import via
     1#27865 has refactored the class `GraphicsArray`, making it a subclass of `MultiGraphics`, and has moved its definition from  `src/sage/plot/graphics.py` to `src/sage/plot/multigraphics.py`. As pointed out in https://groups.google.com/d/msg/sage-devel/eTl4DHcwnOo/uQSOtstWAwAJ, this has broken Sage's API: the import via
    22{{{
    33from sage.plot.graphics import GraphicsArray
    44}}}
    5 does not longer work. This ticket makes it work by redirection to the module `sage.plot.multi_graphics`.
     5does not longer work. This ticket makes it work again, but with the following deprecation notice:
     6{{{
     7DeprecationWarning: GraphicsArray must be imported from sage.plot.multigraphics
     8and no longer from sage.plot.graphics.
     9See https://trac.sagemath.org/28675 for details.
     10}}}