A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-January/070810.html below:

[Python-Dev] Python's C interface for types

[Python-Dev] Python's C interface for types [Python-Dev] Python's C interface for typesJosiah Carlson jcarlson at uci.edu
Fri Jan 26 20:49:27 CET 2007
Nick Maclaren <nmm1 at cus.cam.ac.uk> wrote:
> 
> Oops.  Something else fairly major I forgot to ask.  Python long.
> I can't find any clean way of converting to or from this, and
> would much rather not build a knowledge of long's internals into
> my code.  Going via text is, of course, possible - but is not very
> efficient, even using hex/octal.

See _PyLong_FromByteArray and _PyLong_AsByteArray .

 - Josiah

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4