[Python-ideas] Issue with sys.exit and a long
Guido van Rossum
guido at python.org
Thu Apr 23 21:00:49 CEST 2015
The bug tracker would be a good place for this. :-)
On Thu, Apr 23, 2015 at 11:52 AM, Ryan Gonzalez <rymg19 at gmail.com> wrote:
> Observe:
>
> ryan at DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1)'
> ryan at DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1L)'
> 1
> ryan at DevPC-LX:~/bfort$
>
> If I call sys.exit with a long value under Python 2, it prints it. I count
> this as a bug because:
>
> 1. int and long are supposed to be as similar as possible.
> 2. When you're using Hy (which implicitly makes all ints longs), this
> sucks.
>
> --
> Ryan
> [ERROR]: Your autotools build scripts are 200 lines longer than your
> program. Something’s wrong.
> http://kirbyfan64.github.io/
>
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150423/db1d95ff/attachment.html>
More information about the Python-ideas
mailing list