archive/issues_020431.json:
{
"assignees": [],
"body": "<div id=\"comment:0\"></div>\n\nThe aim of this ticket is to use the Python 3 `print()` function everywhere in Sage: doctests, command-line, notebook.\n\n**STATUS** (2016-05) after discussions on sage-devel, this ticket is not going to be merged until a complete switch to python3 is effected.\n\nIt will be kept open to let the patchbots monitor the possible failing doctests\nthat would be triggered by enforcing python3 print syntax.\n\nCC: @vbraun @jdemeyer @embray\n\nComponent: **python3**\n\nAuthor: **Fr\u00e9d\u00e9ric Chapoton**\n\nBranch/Commit: **[public/20668](https://github.com/sagemath/sagetrac-mirror/tree/public/20668) @ [`904abca`](https://github.com/sagemath/sagetrac-mirror/commit/904abca8baaa8475835699243cdce32407f9f96b)**\n\n_Issue created by migration from https://trac.sagemath.org/ticket/20668_\n\n",
"closed_at": "2018-01-16T14:23:50Z",
"created_at": "2016-05-24T07:11:12Z",
"labels": [
"https://github.com/sagemath/sage/labels/c%3A%20python3",
"https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
"https://github.com/sagemath/sage/labels/enhancement"
],
"reactions": [],
"repository": "https://github.com/sagemath/sage",
"title": "Turn on python3 print function",
"type": "issue",
"updated_at": "2018-01-16T14:23:50Z",
"url": "https://github.com/sagemath/sage/issues/20668",
"user": "https://github.com/fchapoton"
}
The aim of this ticket is to use the Python 3 print()
function everywhere in Sage: doctests, command-line, notebook.
STATUS (2016-05) after discussions on sage-devel, this ticket is not going to be merged until a complete switch to python3 is effected.
It will be kept open to let the patchbots monitor the possible failing doctests that would be triggered by enforcing python3 print syntax.
CC: @vbraun @jdemeyer @embray
Component: python3
Author: Frédéric Chapoton
Branch/Commit: public/20668 @ 904abca
Issue created by migration from https://trac.sagemath.org/ticket/20668
archive/issue_events_288405.json:
{
"actor": "https://github.com/fchapoton",
"created_at": "2016-05-24T07:11:12Z",
"event": "milestoned",
"issue": "https://github.com/sagemath/sage/issues/20668",
"milestone_number": null,
"milestone_title": "sage-7.3",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288405"
}
archive/issue_events_288406.json:
{
"actor": "https://github.com/fchapoton",
"created_at": "2016-05-24T07:11:12Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20668",
"label": "https://github.com/sagemath/sage/labels/c%3A%20python3",
"label_color": "0000b0",
"label_name": "c: python3",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288406"
}
archive/issue_events_288407.json:
{
"actor": "https://github.com/fchapoton",
"created_at": "2016-05-24T07:11:12Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20668",
"label": "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
"label_color": "ffbb00",
"label_name": "p: major / 3",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288407"
}
archive/issue_events_288408.json:
{
"actor": "https://github.com/fchapoton",
"created_at": "2016-05-24T07:11:12Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20668",
"label": "https://github.com/sagemath/sage/labels/enhancement",
"label_color": "696969",
"label_name": "enhancement",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288408"
}
archive/issue_comments_298729.json:
{
"body": "Branch: **[public/20668](https://github.com/sagemath/sagetrac-mirror/tree/public/20668)**",
"created_at": "2016-05-24T07:13:16Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298729",
"user": "https://github.com/fchapoton"
}
Branch: public/20668
archive/issue_comments_298730.json:
{
"body": "<div id=\"comment:1\"></div>\n\nNew commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/904abca8baaa8475835699243cdce32407f9f96b\"><code>904abca</code></a></td><td><code>trac 20668 activation of the py3 print function behaviour</code></td></tr></table>\n",
"created_at": "2016-05-24T07:13:16Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298730",
"user": "https://github.com/fchapoton"
}
New commits:
904abca | trac 20668 activation of the py3 print function behaviour |
archive/issue_comments_298731.json:
{
"body": "Commit: **[`904abca`](https://github.com/sagemath/sagetrac-mirror/commit/904abca8baaa8475835699243cdce32407f9f96b)**",
"created_at": "2016-05-24T07:13:16Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298731",
"user": "https://github.com/fchapoton"
}
Commit: 904abca
archive/issue_comments_298732.json:
{
"body": "We should only do this if we also change the Sage command line to use Python 3 `print()` syntax. Doctests and the command line should be consistent.",
"created_at": "2016-05-24T07:43:01Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298732",
"user": "https://github.com/jdemeyer"
}
We should only do this if we also change the Sage command line to use Python 3 print()
syntax. Doctests and the command line should be consistent.
archive/issue_events_288409.json:
{
"actor": "https://github.com/jdemeyer",
"created_at": "2016-05-24T07:43:01Z",
"event": "renamed",
"issue": "https://github.com/sagemath/sage/issues/20668",
"title_is": "turn on python3 print function in doctests",
"title_was": "turn on globally the python3 print function",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288409"
}
archive/issue_comments_298733.json:
{
"body": "<div id=\"comment:3\" align=\"right\">comment:3</div>\n\nReplying to [@jdemeyer](#comment%3A2):\n> We should only do this if we also change the Sage command line to use Python 3 `print()` syntax. Doctests and the command line should be consistent.\n\nBut this is obviously the goal. Why did you change the title of the ticket ?",
"created_at": "2016-05-24T07:44:46Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298733",
"user": "https://github.com/fchapoton"
}
Replying to @jdemeyer:
We should only do this if we also change the Sage command line to use Python 3
print()
syntax. Doctests and the command line should be consistent.
But this is obviously the goal. Why did you change the title of the ticket ?
archive/issue_comments_298734.json:
{
"body": "<div id=\"comment:4\" align=\"right\">comment:4</div>\n\nReplying to [@fchapoton](#comment%3A3):\n> But this is obviously the goal. Why did you change the title of the ticket ?\n\nI guess I misunderstood the goal of this ticket then... maybe you should clarify the title and description of what you want to achieve.",
"created_at": "2016-05-24T07:52:56Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298734",
"user": "https://github.com/jdemeyer"
}
Replying to @fchapoton:
But this is obviously the goal. Why did you change the title of the ticket ?
I guess I misunderstood the goal of this ticket then... maybe you should clarify the title and description of what you want to achieve.
archive/issue_comments_298735.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -1,7 +1,10 @@\n-By removing the del of imports in sage/all*.py\n+The aim of this ticket is to turn definitely the behaviour of print\n+in all parts of sage to the python3 behaviour.\n \n-To be done in a beta containing all the previous tickets on print.\n+This is done by removing the del of import print_function in sage/all*.py.\n \n-This will depend on an update of sagenb.\n+We have to wait for a beta release containing all the previous tickets on print.\n \n-To be postponed by another ticket cleaning the last traces of py2 print.\n+This will depend on an update of sagenb, so that all tests pass.\n+\n+This must be followed by another ticket cleaning the last traces of py2 print.\n``````\n",
"created_at": "2016-05-24T07:55:27Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298735",
"user": "https://github.com/fchapoton"
}
Description changed:
---
+++
@@ -1,7 +1,10 @@
-By removing the del of imports in sage/all*.py
+The aim of this ticket is to turn definitely the behaviour of print
+in all parts of sage to the python3 behaviour.
-To be done in a beta containing all the previous tickets on print.
+This is done by removing the del of import print_function in sage/all*.py.
-This will depend on an update of sagenb.
+We have to wait for a beta release containing all the previous tickets on print.
-To be postponed by another ticket cleaning the last traces of py2 print.
+This will depend on an update of sagenb, so that all tests pass.
+
+This must be followed by another ticket cleaning the last traces of py2 print.
archive/issue_comments_298736.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -7,4 +7,4 @@\n \n This will depend on an update of sagenb, so that all tests pass.\n \n-This must be followed by another ticket cleaning the last traces of py2 print.\n+This must be followed by another ticket cleaning the last traces of py2 print, in some parts of the code that are not tested anywhere.\n``````\n",
"created_at": "2016-05-24T07:57:42Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298736",
"user": "https://github.com/fchapoton"
}
Description changed:
---
+++
@@ -7,4 +7,4 @@
This will depend on an update of sagenb, so that all tests pass.
-This must be followed by another ticket cleaning the last traces of py2 print.
+This must be followed by another ticket cleaning the last traces of py2 print, in some parts of the code that are not tested anywhere.
archive/issue_events_288410.json:
{
"actor": "https://github.com/jdemeyer",
"created_at": "2016-05-24T09:09:08Z",
"event": "renamed",
"issue": "https://github.com/sagemath/sage/issues/20668",
"title_is": "Turn on python3 print function",
"title_was": "turn on python3 print function in doctests",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288410"
}
archive/issue_comments_298737.json:
{
"body": "<div id=\"comment:7\" align=\"right\">comment:7</div>\n\nThis is an important change which must obviously be discussed on `sage-devel` first.",
"created_at": "2016-05-24T09:09:08Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298737",
"user": "https://github.com/jdemeyer"
}
This is an important change which must obviously be discussed on sage-devel
first.
archive/issue_comments_298738.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -1,10 +1,3 @@\n-The aim of this ticket is to turn definitely the behaviour of print\n-in all parts of sage to the python3 behaviour.\n+The aim of this ticket is to use the Python 3 `print()` function everywhere in Sage: doctests, command-line, notebook.\n \n-This is done by removing the del of import print_function in sage/all*.py.\n-\n-We have to wait for a beta release containing all the previous tickets on print.\n-\n-This will depend on an update of sagenb, so that all tests pass.\n-\n-This must be followed by another ticket cleaning the last traces of py2 print, in some parts of the code that are not tested anywhere.\n+We have to wait for a beta release containing all the previous tickets on print, including a sagenb upgrade.\n``````\n",
"created_at": "2016-05-24T09:09:08Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298738",
"user": "https://github.com/jdemeyer"
}
Description changed:
---
+++
@@ -1,10 +1,3 @@
-The aim of this ticket is to turn definitely the behaviour of print
-in all parts of sage to the python3 behaviour.
+The aim of this ticket is to use the Python 3 `print()` function everywhere in Sage: doctests, command-line, notebook.
-This is done by removing the del of import print_function in sage/all*.py.
-
-We have to wait for a beta release containing all the previous tickets on print.
-
-This will depend on an update of sagenb, so that all tests pass.
-
-This must be followed by another ticket cleaning the last traces of py2 print, in some parts of the code that are not tested anywhere.
+We have to wait for a beta release containing all the previous tickets on print, including a sagenb upgrade.
archive/issue_comments_298739.json:
{
"body": "<div id=\"comment:8\" align=\"right\">comment:8</div>\n\nReplying to [@jdemeyer](#comment%3A7):\n> This is an important change which must obviously be discussed on `sage-devel` first.\n\nYes, for sure.",
"created_at": "2016-05-24T09:54:47Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298739",
"user": "https://github.com/fchapoton"
}
Replying to @jdemeyer:
This is an important change which must obviously be discussed on
sage-devel
first.
Yes, for sure.
archive/issue_comments_298740.json:
{
"body": "<div id=\"comment:9\" align=\"right\">comment:9</div>\n\nI made a first sketch of wiki page here:\n\nhttps://wiki.sagemath.org/PrintFunction",
"created_at": "2016-05-24T12:41:13Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298740",
"user": "https://github.com/fchapoton"
}
I made a first sketch of wiki page here:
https://wiki.sagemath.org/PrintFunction
archive/issue_comments_298741.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -1,3 +1,6 @@\n The aim of this ticket is to use the Python 3 `print()` function everywhere in Sage: doctests, command-line, notebook.\n \n-We have to wait for a beta release containing all the previous tickets on print, including a sagenb upgrade.\n+**STATUS** (2016-05) after discussions on sage-devel, this ticket is not going to be merged until a complete switch to python3 is effected.\n+\n+It will be kept open to let the patchbots monitor the possible failing doctests\n+that would be triggered by enforcing python3 print syntax.\n``````\n",
"created_at": "2016-05-25T13:10:18Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298741",
"user": "https://github.com/fchapoton"
}
Description changed:
---
+++
@@ -1,3 +1,6 @@
The aim of this ticket is to use the Python 3 `print()` function everywhere in Sage: doctests, command-line, notebook.
-We have to wait for a beta release containing all the previous tickets on print, including a sagenb upgrade.
+**STATUS** (2016-05) after discussions on sage-devel, this ticket is not going to be merged until a complete switch to python3 is effected.
+
+It will be kept open to let the patchbots monitor the possible failing doctests
+that would be triggered by enforcing python3 print syntax.
archive/issue_comments_298742.json:
{
"body": "<div id=\"comment:10\" align=\"right\">comment:10</div>\n\nI changed the description, according to the discussion here: https://groups.google.com/forum/#!topic/sage-devel/DrMJtNQid6s",
"created_at": "2016-05-25T13:10:18Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298742",
"user": "https://github.com/fchapoton"
}
I changed the description, according to the discussion here: https://groups.google.com/forum/#!topic/sage-devel/DrMJtNQid6s
archive/issue_comments_298743.json:
{
"body": "<div id=\"comment:11\" align=\"right\">comment:11</div>\n\nI wonder: would it be difficult to turn on the python3 print when\nrunning the doctests of sage ? I think that this would be very useful to prevent new introductions of bad print syntax.",
"created_at": "2016-05-29T11:24:28Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298743",
"user": "https://github.com/fchapoton"
}
I wonder: would it be difficult to turn on the python3 print when running the doctests of sage ? I think that this would be very useful to prevent new introductions of bad print syntax.
archive/issue_events_288411.json:
{
"actor": "https://github.com/fchapoton",
"created_at": "2017-03-31T19:47:26Z",
"event": "demilestoned",
"issue": "https://github.com/sagemath/sage/issues/20668",
"milestone_number": null,
"milestone_title": "sage-7.3",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288411"
}
archive/issue_comments_298744.json:
{
"body": "<div id=\"comment:13\" align=\"right\">comment:13</div>\n\nAny reason for that change?\n\nThis still seems like a good idea to me? At some point Sage is going to have to switch to Python 3 (Python 2 support ends 2020). Good to start now...",
"created_at": "2017-04-03T06:43:52Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298744",
"user": "https://github.com/embray"
}
Any reason for that change?
This still seems like a good idea to me? At some point Sage is going to have to switch to Python 3 (Python 2 support ends 2020). Good to start now...
archive/issue_comments_298745.json:
{
"body": "<div id=\"comment:14\" align=\"right\">comment:14</div>\n\n+1 million ;-)",
"created_at": "2017-04-03T06:53:37Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298745",
"user": "https://github.com/vbraun"
}
+1 million ;-)
archive/issue_comments_298746.json:
{
"body": "<div id=\"comment:15\" align=\"right\">comment:15</div>\n\nWhat I mean is the change to the milestone.",
"created_at": "2017-04-03T07:10:48Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298746",
"user": "https://github.com/embray"
}
What I mean is the change to the milestone.
archive/issue_comments_298747.json:
{
"body": "<div id=\"comment:16\" align=\"right\">comment:16</div>\n\nWell, the switch to python3 will happen once the code is entirely compatible, and this is not for tomorrow, given that **not so many people** actively work on the problem.\n\nBesides, we are not going to force python2 users to use python3-sage. So this ticket is useful only for its branch, that allows from time to time to see that somebody has once again re-introduced a python2 print somewhere.",
"created_at": "2017-04-03T07:18:53Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298747",
"user": "https://github.com/fchapoton"
}
Well, the switch to python3 will happen once the code is entirely compatible, and this is not for tomorrow, given that not so many people actively work on the problem.
Besides, we are not going to force python2 users to use python3-sage. So this ticket is useful only for its branch, that allows from time to time to see that somebody has once again re-introduced a python2 print somewhere.
archive/issue_comments_298748.json:
{
"body": "<div id=\"comment:17\" align=\"right\">comment:17</div>\n\nI see.\n\nI just meant it would be good to start pushing the print() function on people anyways :)",
"created_at": "2017-04-03T07:25:16Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298748",
"user": "https://github.com/embray"
}
I see.
I just meant it would be good to start pushing the print() function on people anyways :)
archive/issue_comments_298749.json:
{
"body": "<div id=\"comment:18\" align=\"right\">comment:18</div>\n\nBut it should be enabled for doctests; Just add the print_function import to src/sage/doctest/sources.py as virtual doctest.",
"created_at": "2017-04-03T08:12:15Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298749",
"user": "https://github.com/vbraun"
}
But it should be enabled for doctests; Just add the print_function import to src/sage/doctest/sources.py as virtual doctest.
archive/issue_comments_298750.json:
{
"body": "<div id=\"comment:19\" align=\"right\">comment:19</div>\n\nReplying to [@vbraun](#comment%3A18):\n> But it should be enabled for doctests; Just add the print_function import to src/sage/doctest/sources.py as virtual doctest.\n\n+1 to doing this.",
"created_at": "2017-04-03T14:56:44Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298750",
"user": "https://github.com/tscrim"
}
Replying to @vbraun:
But it should be enabled for doctests; Just add the print_function import to src/sage/doctest/sources.py as virtual doctest.
+1 to doing this.
archive/issue_comments_298751.json:
{
"body": "<div id=\"comment:20\" align=\"right\">comment:20</div>\n\nPlease do that if you can, I cannot.",
"created_at": "2017-04-03T20:44:22Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298751",
"user": "https://github.com/fchapoton"
}
Please do that if you can, I cannot.
archive/issue_comments_298752.json:
{
"body": "<div id=\"comment:21\" align=\"right\">comment:21</div>\n\nReplying to [@vbraun](#comment%3A18):\n> But it should be enabled for doctests; Just add the print_function import to src/sage/doctest/sources.py as virtual doctest.\n\nVolker, what do you mean exactly, please ? Do we just need to add one single line \n\n```\nfrom __future__ import print_function\n```\nin the code of the file `src/sage/doctest/sources.py`\nor is there something more subtle to do ? ( I have no idea of what is a \"virtual doctest\")",
"created_at": "2017-06-23T12:35:48Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298752",
"user": "https://github.com/fchapoton"
}
Replying to @vbraun:
But it should be enabled for doctests; Just add the print_function import to src/sage/doctest/sources.py as virtual doctest.
Volker, what do you mean exactly, please ? Do we just need to add one single line
from __future__ import print_function
in the code of the file src/sage/doctest/sources.py
or is there something more subtle to do ? ( I have no idea of what is a "virtual doctest")
archive/issue_comments_298753.json:
{
"body": "<div id=\"comment:22\" align=\"right\">comment:22</div>\n\nping ? Please, Volker, what do you mean exactly by [comment:18](#comment%3A18) ?",
"created_at": "2017-07-25T06:34:03Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298753",
"user": "https://github.com/fchapoton"
}
ping ? Please, Volker, what do you mean exactly by comment:18 ?
archive/issue_comments_298754.json:
{
"body": "<div id=\"comment:23\" align=\"right\">comment:23</div>\n\nEnabling print_function in doctests is now #23551",
"created_at": "2017-07-30T12:17:28Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298754",
"user": "https://github.com/vbraun"
}
Enabling print_function in doctests is now #23551
archive/issue_comments_298755.json:
{
"body": "<div id=\"comment:24\" align=\"right\">comment:24</div>\n\nErik, could you please close this one ?",
"created_at": "2018-01-16T09:25:30Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20668#issuecomment-298755",
"user": "https://github.com/fchapoton"
}
Erik, could you please close this one ?
archive/issue_events_288412.json:
{
"actor": "https://github.com/embray",
"created_at": "2018-01-16T14:23:50Z",
"event": "closed",
"issue": "https://github.com/sagemath/sage/issues/20668",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20668#event-288412"
}