summaryrefslogtreecommitdiffstats
path: root/gobject/pygflags.c
diff options
context:
space:
mode:
authorJohn Ehresman <jpe@wingware.com>2010-04-14 16:12:22 -0400
committerJohn Ehresman <jpe@wingware.com>2010-04-15 12:18:00 -0400
commit4572baf15f87cc0ef21d731fc7ba0ecf0de2f463 (patch)
tree7d345fac8090155fafb1ddc1fb0d99876665b3ce /gobject/pygflags.c
parentb28ac0322bf7b1316b5ed8b19492a3848b090ab0 (diff)
downloadpygobject-4572baf15f87cc0ef21d731fc7ba0ecf0de2f463.tar.gz
pygobject-4572baf15f87cc0ef21d731fc7ba0ecf0de2f463.tar.xz
pygobject-4572baf15f87cc0ef21d731fc7ba0ecf0de2f463.zip
Changes to module init, and to compile under python3. Doesn't work though
Diffstat (limited to 'gobject/pygflags.c')
-rw-r--r--gobject/pygflags.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/gobject/pygflags.c b/gobject/pygflags.c
index 1865abb..abac423 100644
--- a/gobject/pygflags.c
+++ b/gobject/pygflags.c
@@ -439,7 +439,7 @@ static PyNumberMethods pyg_flags_as_number = {
(binaryfunc)pyg_flags_warn, /* nb_multiply */
(binaryfunc)pyg_flags_warn, /* nb_divide */
(binaryfunc)pyg_flags_warn, /* nb_remainder */
- (binaryfunc)pyg_flags_warn, /* nb_divmod */
+// (binaryfunc)pyg_flags_warn, /* nb_divmod */
(ternaryfunc)pyg_flags_warn, /* nb_power */
0, /* nb_negative */
0, /* nb_positive */
@@ -451,27 +451,6 @@ static PyNumberMethods pyg_flags_as_number = {
(binaryfunc)pyg_flags_and, /* nb_and */
(binaryfunc)pyg_flags_xor, /* nb_xor */
(binaryfunc)pyg_flags_or, /* nb_or */
- 0, /* nb_coerce */
- 0, /* nb_int */
- 0, /* nb_long */
- 0, /* nb_float */
- 0, /* nb_oct */
- 0, /* nb_hex */
- 0, /* nb_inplace_add */
- 0, /* nb_inplace_subtract */
- 0, /* nb_inplace_multiply */
- 0, /* nb_inplace_divide */
- 0, /* nb_inplace_remainder */
- 0, /* nb_inplace_power */
- 0, /* nb_inplace_lshift */
- 0, /* nb_inplace_rshift */
- 0, /* nb_inplace_and */
- 0, /* nb_inplace_xor */
- 0, /* nb_inplace_or */
- 0, /* nb_floor_divide */
- 0, /* nb_true_divide */
- 0, /* nb_inplace_floor_divide */
- 0, /* nb_inplace_true_divide */
};
void