Message263741
+ 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);
+ }
+ } |
|
Date |
User |
Action |
Args |
2016-04-19 14:25:13 | vstinner | set | recipients:
+ vstinner, martin.panter, serhiy.storchaka, yselivanov, llllllllll |
2016-04-19 14:25:13 | vstinner | set | messageid: <1461075913.22.0.354060602162.issue26802@psf.upfronthosting.co.za> |
2016-04-19 14:25:13 | vstinner | link | issue26802 messages |
2016-04-19 14:25:13 | vstinner | create | |
|