Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Latest commit

 

History

History
512 lines (383 loc) · 15.8 KB

20048.md

File metadata and controls

512 lines (383 loc) · 15.8 KB

Issue 20048: deg(0) ==> boom

archive/issues_019811.json:

{
    "assignees": [],
    "body": "<div id=\"comment:0\"></div>\n\n\nIn [SageMath](../wiki/SageMath) Version 6.8, Release Date: 2015-07-26 I get\n\n```\nR.<x,y> = GF(3037000453)[]\nR.zero().degree(x)\n\n---> ValueError, max() arg is an empty sequence.\n```\n\nWith smaller coefficient domains it works. \n\nComponent: **basic arithmetic**\n\nAuthor: **Jori M\u00e4ntysalo**\n\nBranch/Commit: **[`ef8703f`](https://github.com/sagemath/sagetrac-mirror/commit/ef8703fcd8ce08048c81d1723cae6316353b1116)**\n\nReviewer: **Fr\u00e9d\u00e9ric Chapoton**\n\n_Issue created by migration from https://trac.sagemath.org/ticket/20048_\n\n",
    "closed_at": "2016-02-17T21:12:33Z",
    "created_at": "2016-02-14T10:47:02Z",
    "labels": [
        "https://github.com/sagemath/sage/labels/c%3A%20basic%20arithmetic",
        "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
        "https://github.com/sagemath/sage/labels/bug"
    ],
    "milestone": "https://github.com/sagemath/sage/milestones/sage-7.1",
    "reactions": [],
    "repository": "https://github.com/sagemath/sage",
    "title": "deg(0) ==> boom",
    "type": "issue",
    "updated_at": "2016-02-17T21:12:33Z",
    "url": "https://github.com/sagemath/sage/issues/20048",
    "user": "https://github.com/mkauers"
}

In SageMath Version 6.8, Release Date: 2015-07-26 I get

R.<x,y> = GF(3037000453)[]
R.zero().degree(x)

---> ValueError, max() arg is an empty sequence.

With smaller coefficient domains it works.

Component: basic arithmetic

Author: Jori Mäntysalo

Branch/Commit: ef8703f

Reviewer: Frédéric Chapoton

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


archive/issue_events_280698.json:

{
    "actor": "https://github.com/mkauers",
    "created_at": "2016-02-14T10:47:02Z",
    "event": "milestoned",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "milestone_number": null,
    "milestone_title": "sage-7.1",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280698"
}

archive/issue_events_280699.json:

{
    "actor": "https://github.com/mkauers",
    "created_at": "2016-02-14T10:47:02Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "label": "https://github.com/sagemath/sage/labels/c%3A%20basic%20arithmetic",
    "label_color": "0000ff",
    "label_name": "c: basic arithmetic",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280699"
}

archive/issue_events_280700.json:

{
    "actor": "https://github.com/mkauers",
    "created_at": "2016-02-14T10:47:02Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "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/20048#event-280700"
}

archive/issue_events_280701.json:

{
    "actor": "https://github.com/mkauers",
    "created_at": "2016-02-14T10:47:02Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "label": "https://github.com/sagemath/sage/labels/bug",
    "label_color": "d73a4a",
    "label_name": "bug",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280701"
}

archive/issue_comments_287317.json:

{
    "body": "<div id=\"comment:1\" align=\"right\">comment:1</div>\n\n`max` on empty list. Same happens for `Graph().degree_histogram()`.",
    "created_at": "2016-02-15T09:00:44Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287317",
    "user": "https://github.com/jm58660"
}
comment:1

max on empty list. Same happens for Graph().degree_histogram().


archive/issue_comments_287318.json:

{
    "body": "Branch: **[u/jmantysalo/deg_0______boom](https://github.com/sagemath/sagetrac-mirror/tree/u/jmantysalo/deg_0______boom)**",
    "created_at": "2016-02-15T09:14:09Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287318",
    "user": "https://github.com/jm58660"
}

Branch: u/jmantysalo/deg_0______boom


archive/issue_events_280702.json:

{
    "actor": "https://github.com/jm58660",
    "created_at": "2016-02-15T09:15:09Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280702"
}

archive/issue_comments_287319.json:

{
    "body": "Commit: **[`d6eb3d5`](https://github.com/sagemath/sagetrac-mirror/commit/d6eb3d58b8e25736b4d3dba22f59ef992f3e6a7b)**",
    "created_at": "2016-02-15T09:15:09Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287319",
    "user": "https://github.com/jm58660"
}

Commit: d6eb3d5


archive/issue_comments_287320.json:

{
    "body": "<div id=\"comment:3\"></div>\n\nNew commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/a86bb0c6f290141d7d159d95f54ccbee7c8df3d5\"><code>a86bb0c</code></a></td><td><code>MPolynomialRing_polydict, degree of zero polynomial.</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/a30e468c2d9a01f53d9b9f9b4e8ba1feb87a0acb\"><code>a30e468</code></a></td><td><code>degree_histogram() for empty graph.</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/d6eb3d58b8e25736b4d3dba22f59ef992f3e6a7b\"><code>d6eb3d5</code></a></td><td><code>Arghs.</code></td></tr></table>\n",
    "created_at": "2016-02-15T09:15:09Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287320",
    "user": "https://github.com/jm58660"
}

New commits:

a86bb0cMPolynomialRing_polydict, degree of zero polynomial.
a30e468degree_histogram() for empty graph.
d6eb3d5Arghs.

archive/issue_comments_287321.json:

{
    "body": "Author: **Jori M\u00e4ntysalo**",
    "created_at": "2016-02-15T09:15:09Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287321",
    "user": "https://github.com/jm58660"
}

Author: Jori Mäntysalo


archive/issue_comments_287322.json:

{
    "body": "Description changed:\n``````diff\n--- \n+++ \n@@ -1,9 +1,11 @@\n \n In [SageMath](../wiki/SageMath) Version 6.8, Release Date: 2015-07-26 I get\n \n+```\n R.<x,y> = GF(3037000453)[]\n R.zero().degree(x)\n \n ---> ValueError, max() arg is an empty sequence.\n+```\n \n With smaller coefficient domains it works. \n``````\n",
    "created_at": "2016-02-15T09:15:09Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287322",
    "user": "https://github.com/jm58660"
}

Description changed:

--- 
+++ 
@@ -1,9 +1,11 @@
 
 In [SageMath](../wiki/SageMath) Version 6.8, Release Date: 2015-07-26 I get
 
+```
 R.<x,y> = GF(3037000453)[]
 R.zero().degree(x)
 
 ---> ValueError, max() arg is an empty sequence.
+```
 
 With smaller coefficient domains it works. 

archive/issue_comments_287323.json:

{
    "body": "<div id=\"comment:4\" align=\"right\">comment:4</div>\n\nThis is also one way to make an error:\n\n```\nfrom sage.rings.polynomial.real_roots import *\nbernstein_polynomial_factory_intlist([])\n```\n\nBut I don't know if this can be triggered by normal use. The class is meant to be for internal use only.",
    "created_at": "2016-02-15T11:23:42Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287323",
    "user": "https://github.com/jm58660"
}
comment:4

This is also one way to make an error:

from sage.rings.polynomial.real_roots import *
bernstein_polynomial_factory_intlist([])

But I don't know if this can be triggered by normal use. The class is meant to be for internal use only.


archive/issue_comments_287324.json:

{
    "body": "<div id=\"comment:5\" align=\"right\">comment:5</div>\n\nadd the doctests, please",
    "created_at": "2016-02-15T19:53:20Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287324",
    "user": "https://github.com/fchapoton"
}
comment:5

add the doctests, please


archive/issue_comments_287325.json:

{
    "body": "<div id=\"comment:6\"></div>\n\nBranch pushed to git repo; I updated commit sha1. New commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/ef8703fcd8ce08048c81d1723cae6316353b1116\"><code>ef8703f</code></a></td><td><code>Added tests.</code></td></tr></table>\n",
    "created_at": "2016-02-15T21:34:24Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287325",
    "user": "https://github.com/sagetrac-git"
}

Branch pushed to git repo; I updated commit sha1. New commits:

ef8703fAdded tests.

archive/issue_comments_287326.json:

{
    "body": "Changed commit from **[`d6eb3d5`](https://github.com/sagemath/sagetrac-mirror/commit/d6eb3d58b8e25736b4d3dba22f59ef992f3e6a7b)** to **[`ef8703f`](https://github.com/sagemath/sagetrac-mirror/commit/ef8703fcd8ce08048c81d1723cae6316353b1116)**",
    "created_at": "2016-02-15T21:34:24Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287326",
    "user": "https://github.com/sagetrac-git"
}

Changed commit from d6eb3d5 to ef8703f


archive/issue_events_280703.json:

{
    "actor": "https://github.com/fchapoton",
    "created_at": "2016-02-16T08:37:41Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280703"
}

archive/issue_events_280704.json:

{
    "actor": "https://github.com/fchapoton",
    "created_at": "2016-02-16T08:37:41Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "label": "https://github.com/sagemath/sage/labels/positive%20review",
    "label_color": "dfffc0",
    "label_name": "positive review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280704"
}

archive/issue_comments_287327.json:

{
    "body": "Reviewer: **Fr\u00e9d\u00e9ric Chapoton**",
    "created_at": "2016-02-16T08:37:41Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287327",
    "user": "https://github.com/fchapoton"
}

Reviewer: Frédéric Chapoton


archive/issue_comments_287328.json:

{
    "body": "<div id=\"comment:7\" align=\"right\">comment:7</div>\n\ngood to go",
    "created_at": "2016-02-16T08:37:41Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287328",
    "user": "https://github.com/fchapoton"
}
comment:7

good to go


archive/issue_comments_287329.json:

{
    "body": "Changed branch from **[u/jmantysalo/deg_0______boom](https://github.com/sagemath/sagetrac-mirror/tree/u/jmantysalo/deg_0______boom)** to **[`ef8703f`](https://github.com/sagemath/sagetrac-mirror/commit/ef8703fcd8ce08048c81d1723cae6316353b1116)**",
    "created_at": "2016-02-17T21:12:33Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20048#issuecomment-287329",
    "user": "https://github.com/vbraun"
}

Changed branch from u/jmantysalo/deg_0______boom to ef8703f


archive/issue_events_280705.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2016-02-17T21:12:33Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "label": "https://github.com/sagemath/sage/labels/positive%20review",
    "label_color": "dfffc0",
    "label_name": "positive review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280705"
}

archive/issue_events_280706.json:

{
    "actor": "https://github.com/vbraun",
    "commit_id": "0b44f72bd6bea8bf2f0250fd72eb81e6d3ed3ceb",
    "commit_repository": "https://github.com/sagemath/sage",
    "created_at": "2016-02-17T21:12:33Z",
    "event": "closed",
    "issue": "https://github.com/sagemath/sage/issues/20048",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20048#event-280706"
}