Message156481
| Author |
mark.dickinson |
| Recipients |
gdr@garethrees.org, mark.dickinson |
| Date |
2012年03月21日.08:27:15 |
| SpamBayes Score |
2.601396e-08 |
| Marked as misclassified |
No |
| Message-id |
<1332318436.39.0.532296945624.issue14376@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> It would be simple to change line 1112 of pythonrun.c from
>
> if (PyInt_Check(value))
>
> to
>
> if (PyInt_Check(value) || PyLong_Check(value))
Wouldn't you also have to deal with possible errors from the PyInt_AsLong call? E.g., after sys.exit(2**64), an OverflowException would be set. I don't know if not dealing with that exception (perhaps with PyErr_Clear) before exit might cause issues, though it seems to work in practice (with the -1 value indicating an error being turned into an exit code of 255). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月21日 08:27:16 | mark.dickinson | set | recipients:
+ mark.dickinson, gdr@garethrees.org |
| 2012年03月21日 08:27:16 | mark.dickinson | set | messageid: <1332318436.39.0.532296945624.issue14376@psf.upfronthosting.co.za> |
| 2012年03月21日 08:27:15 | mark.dickinson | link | issue14376 messages |
| 2012年03月21日 08:27:15 | mark.dickinson | create |
|