Greg Ewing, 12.07.2010 02:30: > Stefan Behnel wrote: >> Well, 'long' is exactly the reason: Since there are 'int' and 'long' in >> Py2, which are completely interchangeable, it's impossible to type a >> variable as Python 'int' or 'long' without restricting your code too much. > > ... If there was only Py3 (with only one Python 'int' >> type), this problem would have occurred much more often (and I predict that >> it will become more apparent when more people start developing Py3 code). > > What use cases do you think there will be for typing something > as a Python int, even in Py3? I'm having trouble thinking of > any.
My point was more why people currently don't run into it and why I think there is a difference to a boolean type. I didn't mean to say that not being able to type something as Python int is a real world problem that we need to work on, just that people would run into it more easily in a Py3 world than in code targeting Py2, where it's clearly counterproductive. Stefan _______________________________________________ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev