Observe: ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1)' ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1L)' 1 ryan@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/
The bug tracker would be a good place for this. :-) On Thu, Apr 23, 2015 at 11:52 AM, Ryan Gonzalez <rymg19@gmail.com> wrote:
Observe:
ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1)' ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1L)' 1 ryan@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@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido van Rossum (python.org/~guido)
In article <CAP7+vJ+YRrT-OX3L5CHM2HL5rA=pt850uin07fUHODvhZLjFpg@mail.gmail.com>, Guido van Rossum <guido@python.org> wrote:
The bug tracker would be a good place for this. :-) On Thu, Apr 23, 2015 at 11:52 AM, Ryan Gonzalez <rymg19@gmail.com> wrote:
Observe:
ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1)' ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1L)' 1 ryan@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.
An open issue already exists about this: http://bugs.python.org/issue14376 -- Ned Deily, nad@acm.org
On 23/04/2015 19:52, Ryan Gonzalez wrote:
Observe:
ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1)' ryan@DevPC-LX:~/bfort$ python -c 'import sys; sys.exit(1L)' 1 ryan@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.
Yes the same happens from the [2.7.3] interpreter if you exit from it with import sys; sys.exit(0L)
-- 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@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2014.0.4800 / Virus Database: 4311/9607 - Release Date: 04/23/15
participants (4)
-
Guido van Rossum
-
Ned Deily
-
Rob Cliffe
-
Ryan Gonzalez