[issue20282] Argument Clinic: int with boolean default

2014-01-18 Thread Larry Hastings
Larry Hastings added the comment: I think these shouldn't be "int", they should be "bool". "bool" will allow you to use a default of False. It maps to the "p" format unit, which was new in 3.3. Back before 3.3, when someone wanted a boolean they just used "i", and relied on the fact that Tr

[issue20282] Argument Clinic: int with boolean default

2014-01-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently in many functions boolean argument parsed as int, with 'i' code. When converting this to Argument Clinic we can't write just interactive: int = False because C default becomes "Py_False". Instead we need explicitly specify c_default. in