Changeset 9218e1d in git for modules


Ignore:
Timestamp:
Sep 24, 2005, 4:12:46 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
ab8c32a4fe42867e782301943eaf5f0c16f6d6e8
Parents:
440264f5d1002d3934762b2a0b19f059a50484f7
Message:
*bricken: better seperated


git-svn-id: file:///usr/local/Singular/svn/trunk@8659 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
modules/python
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • modules/python/interpreter.py

    r440264 r9218e1d  
    11from Singular import *
     2from _Singular import *
    23try:
    34    import psyco
  • modules/python/poly_wrap.cc

    r440264 r9218e1d  
    1919void export_poly()
    2020{
    21    boost::python::class_<Poly>("polynomial")
     21   boost::python::class_<Poly>("polynomial", "Wrapper for poly of Singular")
    2222    .def("ring",Poly_get_Ring)
    2323    .def(boost::python::init <int>())
  • modules/python/python.cc

    r440264 r9218e1d  
    133133#line 2 "python.mod"
    134134/*
    135  *  $Id: python.cc,v 1.3 2005-09-13 19:16:23 bricken Exp $
     135 *  $Id: python.cc,v 1.4 2005-09-24 14:12:46 bricken Exp $
    136136 *
    137137 *  Test mod fuer modgen
     
    185185  enter_id("category","tests", STRING_CMD);
    186186#line 22 "python.mod"
    187   enter_id("version","$Id: python.cc,v 1.3 2005-09-13 19:16:23 bricken Exp $", STRING_CMD);
     187  enter_id("version","$Id: python.cc,v 1.4 2005-09-24 14:12:46 bricken Exp $", STRING_CMD);
    188188#line 23 "python.mod"
    189189  enter_id("info","LIBRARY: kernel.lib  PROCEDURES OF GENERAL TYPE WRITEN IN C python(input); eval a string  in python", STRING_CMD);
     
    192192  Py_Initialize();
    193193  initSingular();
     194  init_Singular();
    194195
    195196#line 36 "python.mod"
  • modules/python/wrapper.h

    r440264 r9218e1d  
    1 //$Id: wrapper.h,v 1.29 2005-09-20 07:16:01 bricken Exp $
     1//$Id: wrapper.h,v 1.30 2005-09-24 14:12:46 bricken Exp $
    22#ifndef PYTHON_SINGULAR_WRAPPER_HEADER
    33#define PYTHON_SINGULAR_WRAPPER_HEADER
     
    6060  export_playground();
    6161  export_ideal();
    62   export_interpreter();
     62  //export_interpreter();
    6363  export_ring();
    6464  export_intvec();
     
    7979
    8080}
     81BOOST_PYTHON_MODULE(_Singular){
     82export_interpreter();
     83
     84}
    8185#endif
Note: See TracChangeset for help on using the changeset viewer.