File: routines.version.rst

package info (click to toggle)
numpy 1%3A2.3.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 85,940 kB
  • sloc: python: 255,476; asm: 232,483; ansic: 212,559; cpp: 157,437; f90: 1,575; sh: 845; fortran: 567; makefile: 423; sed: 139; xml: 109; java: 97; perl: 82; cs: 62; javascript: 53; objc: 33; lex: 13; yacc: 9
file content (38 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.. currentmodule:: numpy.version

.. _routines.version:

*******************
Version information
*******************

The ``numpy.version`` submodule includes several constants that expose more
detailed information about the exact version of the installed ``numpy``
package:

.. data:: version

    Version string for the installed package - matches ``numpy.__version__``.

.. data:: full_version

    Version string - the same as ``numpy.version.version``.

.. data:: short_version

    Version string without any local build identifiers.

    .. rubric:: Examples

    >>> np.__version__
    '2.1.0.dev0+git20240319.2ea7ce0'  # may vary
    >>> np.version.short_version
    '2.1.0.dev0'  # may vary

.. data:: git_revision

    String containing the git hash of the commit from which ``numpy`` was built.

.. data:: release

    ``True`` if this version is a ``numpy`` release, ``False`` if a dev version.