Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/doc/python-2.2.3/html/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 15.4 mpz -- GNU arbitrary magnitude integers
Deprecated since release 2.2.
See the references at the end of this section for
information about packages which provide similar
functionality. This module will be removed in Python
2.3.
This is an optional module. It is only available when Python is configured to include it, which requires that the GNU MP software is installed. This module implements the interface to part of the GNU MP library, which defines arbitrary precision integer and rational number arithmetic routines. Only the interfaces to the integer (mpz_*()) routines are provided. If not stated otherwise, the description in the GNU MP documentation can be applied. Support for rational numbers can be implemented in Python. For an example, see the Rat module, provided as Demos/classes/Rat.py in the Python source distribution.
In general, mpz-numbers can be used just like other standard
Python numbers, e.g., you can use the built-in operators like
You create an mpz-number by calling the function mpz() (see
below for an exact description). An mpz-number is printed like this:
A number of extra functions are defined in this module. Non mpz-arguments are converted to mpz-values first, and the functions return mpz-numbers.
An mpz-number has one method:
See Also:
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0043 ]-- |