Files
gnatcoll-bindings/python/gnatcoll-any_types-python.ads
Vasiliy Fofanov a3cd16cb24 Initial version of gnatcoll-bindings module.
Part of major reorganization of gnatcoll for better modularity and
maintainability.

Change-Id: I24defa7165e4158987b147849882f4295a453da3
TN: P909-033
2017-10-29 15:53:38 +01:00

40 lines
2.4 KiB
Ada

------------------------------------------------------------------------------
-- G N A T C O L L --
-- --
-- Copyright (C) 2009-2017, AdaCore --
-- --
-- This library is free software; you can redistribute it and/or modify it --
-- under terms of the GNU General Public License as published by the Free --
-- Software Foundation; either version 3, or (at your option) any later --
-- version. This library is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
------------------------------------------------------------------------------
-- This package provides a utilities to manipulate Python objects. This is not
-- meant to be very performance-efficient, but to provide an interface simpler
-- than the direct manipulation of PyObjects.
with GNATCOLL.Python; use GNATCOLL.Python;
package GNATCOLL.Any_Types.Python is
function From_PyObject (Object : PyObject) return Any_Type;
-- Create an Any_Type from the contents of Object. This creates copies in
-- of any data in Object.
-- Empty_Any_Type is returned if the underlying Python type (or its
-- children in case of container types) is not supported.
-- The result must be freed by the caller, by calling Free.
end GNATCOLL.Any_Types.Python;