On 3/20/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Jim Jewett wrote:
> > To do things correctly, you really have to change > > your call to the new version (and add the #ifdef) > > #if PY_VERSION_HEX < 0x02050000 > > typedef int Py_ssize_t; > > #endif > > You can downcast if you aren't ready to > > support 64-bits, but ... setting up a possible > > buffer overflow is a bit worse than simply > > not supporting. > Sure. In that case, the compiler will give you a > compiler warning, on a 64-bit system. You > certainly should react to that warning. The person compiling on a 64-bit system may not be the developer. The buildbot was started in part because the Windows build didn't work -- many developers didn't have a windows environment to test with. This change will put 64 bit systems in the same awkward position -- they need different code, which many developers can't really test properly. > I personally doubt that somebody would go > through the list of the 100-something APIs > that changed, memorize them, and then go > to his source code, to find out what to change; Agreed; they would be more likely to run a grep for a one-time conversion. Catching the error as it creeps back in later would be ... something people learn the hard way. But not having that list for a grep makes the situation even worse. -jJ _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com