| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 524b588 commit 6d023c9
32 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
@@ -922,16 +922,31 @@ builtin_pow(self, args) | |||
| 922 | 922 | } | |
| 923 | 923 | if (coerce(&v, &w) != 0) | |
| 924 | 924 | return NULL; | |
| 925 | - if (z!=None) { | ||
| 926 | - if (coerce(&w, &z) != 0) | ||
| 927 | - return NULL; | ||
| 928 | - if (coerce(&v, &z) != 0) | ||
| 929 | - return NULL; | ||
| 925 | + if (z == None) { | ||
| 926 | + x = (*v->ob_type->tp_as_number->nb_power)(v, w, z); | ||
| 927 | + } | ||
| 928 | + else { | ||
| 929 | + object *v1, *z1, *w2, *z2; | ||
| 930 | + x = NULL; | ||
| 931 | + v1 = v; | ||
| 932 | + z1 = z; | ||
| 933 | + if (coerce(&v1, &z1) != 0) | ||
| 934 | + goto error2; | ||
| 935 | + w2 = w; | ||
| 936 | + z2 = z1; | ||
| 937 | + if (coerce(&w2, &z2) != 0) | ||
| 938 | + goto error1; | ||
| 939 | + x = (*v1->ob_type->tp_as_number->nb_power)(v1, w2, z2); | ||
| 940 | + DECREF(w2); | ||
| 941 | + DECREF(z2); | ||
| 942 | + error1: | ||
| 943 | + DECREF(v1); | ||
| 944 | + DECREF(z1); | ||
| 945 | + error2: | ||
| 946 | + ; | ||
| 930 | 947 | } | |
| 931 | - x = (*v->ob_type->tp_as_number->nb_power)(v, w, z); | ||
| 932 | 948 | DECREF(v); | |
| 933 | 949 | DECREF(w); | |
| 934 | - if (z!=None) {DECREF(w); DECREF(v); DECREF(z); DECREF(z);} | ||
| 935 | 950 | return x; | |
| 936 | 951 | } | |
| 937 | 952 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | /*********************************************************** | |
| 2 | - Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, | ||
| 3 | - Amsterdam, The Netherlands. | ||
| 2 | + Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | ||
| 3 | + The Netherlands. | ||
| 4 | 4 | ||
| 5 | 5 | All Rights Reserved | |
| 6 | 6 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments