This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients llllllllll, martin.panter, serhiy.storchaka, vstinner, yselivanov
Date 2016-04-19.14:25:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461075913.22.0.354060602162.issue26802@psf.upfronthosting.co.za>
In-reply-to
Content
+        if (!nstar) {
+            /* There are no positional arguments on the stack or in in a
+               sequence that was unpacked. */
+            return PyTuple_New(0);
+        }

It's possible that stararg is already an empty tuple. Is it worth to use it?

+        if (!nstar) {
+            if (stararg != NULL && PyTuple_CheckExact(stararg)) {
+                Py_INCREF(stararg);
+                return stararg;
+            }
+            else {
+                /* There are no positional arguments on the stack or in in a
+                   sequence that was unpacked. */
+                return PyTuple_New(0);
+            }
+        }
History
Date User Action Args
2016-04-19 14:25:13vstinnersetrecipients: + vstinner, martin.panter, serhiy.storchaka, yselivanov, llllllllll
2016-04-19 14:25:13vstinnersetmessageid: <1461075913.22.0.354060602162.issue26802@psf.upfronthosting.co.za>
2016-04-19 14:25:13vstinnerlinkissue26802 messages
2016-04-19 14:25:13vstinnercreate