[issue10880] do_mkvalue and 'boolean'
Sergey Shepelev
report at bugs.python.org
Tue Jan 11 21:51:58 CET 2011
Sergey Shepelev <temotor at gmail.com> added the comment:
Here's patch against 2.6
--- a/Python/modsupport.c Tue Aug 24 18:19:58 2010 +0200
+++ b/Python/modsupport.c Tue Jan 11 23:50:40 2011 +0300
@@ -459,6 +459,16 @@
return v;
}
+ case '?':
+ {
+ int n;
+ n = va_arg(*p_va, int);
+ if (n == 0)
+ Py_RETURN_FALSE;
+ else
+ Py_RETURN_TRUE;
+ }
+
case ':':
case ',':
case ' ':
----------
nosy: +temoto
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10880>
_______________________________________
More information about the Python-bugs-list
mailing list