Message241860
| Author |
serhiy.storchaka |
| Recipients |
larry, serhiy.storchaka |
| Date |
2015年04月23日.10:33:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429785188.86.0.806042190219.issue24037@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The 'i' format unit is often used for semantically boolean values. When the parameter has a default value, in Argument clinic you should specify it twice, as Python and C values:
closefd: int(c_default="1") = True
or
keepends: int(py_default="False") = 0
Proposed patch adds the boolint converter which makes a conversion for you.
closefd: boolint = True
keepends: boolint = False |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年04月23日 10:33:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, larry |
| 2015年04月23日 10:33:08 | serhiy.storchaka | set | messageid: <1429785188.86.0.806042190219.issue24037@psf.upfronthosting.co.za> |
| 2015年04月23日 10:33:08 | serhiy.storchaka | link | issue24037 messages |
| 2015年04月23日 10:33:08 | serhiy.storchaka | create |
|