[Python-3000] C API for ints and strings (original) (raw)

Barry Warsaw barry at python.org
Wed Sep 12 20:06:11 CEST 2007


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Sep 12, 2007, at 1:43 PM, Neil Schemenauer wrote:

Larry Hastings <larry at hastings.org> wrote:

I am opposed to using LGPL- or GPL-licensed code in Python. Me too. Also, I don't see the point. Python's current long integer performance is good enough for the large majority of Python users. For the few specialized users, an extension module should serve. Maybe I missed something but I thought the real concern was the performance of the PyLong type when representing relatively short integers. Is GMP a solution to that?

Back in the days of a previous employment, we used some homegrown
extensions to give us GMP support in our embedded app. In a fit of
rewrite-mania, we ditched it all and stuck with Python's own long
integer support. Made our lives easier and we didn't feel we lost
anything in terms of accuracy or functionality. We gained in
performance but I can't attribute that solely to Python's
implementation, since we also ditched a level of abstraction in the
process. In any event, I'd agree that Python's current support is
probably good enough for most people.

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRugqlHEjvBPtnXfVAQLu5AP/TolPljxJuqOeEUDrJo1cT0c3FgpJY3RE WSCiIC9+5GW1DSkcZvbO5DzHJH6qYd7HL7z1n2D+AMSH7NFQU4G7yXIkTd4AAibW U3M7KSLEh/q75+lnx5nIoHrPB1A0lJU+c34Ly/kuusE5x4JIeuITkorQYKRDCcKs ZcGFOtGs4pE= =Ysmv -----END PGP SIGNATURE-----



More information about the Python-3000 mailing list