head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.54 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.52 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.44 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2 netbsd-1-3-PATCH002:1.1; locks; strict; comment @# @; 1.2 date 98.07.11.20.33.13; author tsarna; state dead; branches; next 1.1; 1.1 date 98.05.04.19.29.20; author tron; state Exp; branches; next ; desc @@ 1.2 log @Two changes: - Use -fPIC instead of -fpic (latter breaks py-Numeric on sparc). Suggested by tv@@netbsd.org. This is inherited by most py-* packages. Change sent to guido@@cnri.reston.va.us. - Remove official patches from patches dir. Use PATCHFILES mechanism instead to get them from www.python.org. @ text @Index: Modules/parsermodule.c =================================================================== RCS file: /projects/cvsroot/python/dist/src/Modules/parsermodule.c,v retrieving revision 2.25 retrieving revision 2.26 diff -c -r2.25 -r2.26 *** parsermodule.c 1998/04/13 18:45:18 2.25 --- parsermodule.c 1998/04/21 22:31:45 2.26 *************** *** 473,483 **** static PyMethodDef parser_methods[] = { ! {"compile", parser_compileast, METH_VARARGS}, ! {"isexpr", parser_isexpr, METH_VARARGS}, ! {"issuite", parser_issuite, METH_VARARGS}, ! {"tolist", parser_ast2list, METH_VARARGS}, ! {"totuple", parser_ast2tuple, METH_VARARGS}, {NULL} }; --- 473,488 ---- static PyMethodDef parser_methods[] = { ! {"compile", (PyCFunction)parser_compileast, METH_VARARGS, ! "Compile this AST object into a code object."}, ! {"isexpr", (PyCFunction)parser_isexpr, METH_VARARGS, ! "Determines if this AST object was created from an expression."}, ! {"issuite", (PyCFunction)parser_issuite, METH_VARARGS, ! "Determines if this AST object was created from a suite."}, ! {"tolist", (PyCFunction)parser_ast2list, METH_VARARGS, ! "Creates a list-tree representation of this AST."}, ! {"totuple", (PyCFunction)parser_ast2tuple, METH_VARARGS, ! "Creates a tuple-tree representation of this AST."}, {NULL} }; *************** *** 2685,2711 **** * inheritance. */ static PyMethodDef parser_functions[] = { ! {"ast2tuple", parser_ast2tuple, METH_VARARGS, "Creates a tuple-tree representation of an AST."}, ! {"ast2list", parser_ast2list, METH_VARARGS, "Creates a list-tree representation of an AST."}, ! {"compileast", parser_compileast, METH_VARARGS, "Compiles an AST object into a code object."}, ! {"expr", parser_expr, METH_VARARGS, "Creates an AST object from an expression."}, ! {"isexpr", parser_isexpr, METH_VARARGS, "Determines if an AST object was created from an expression."}, ! {"issuite", parser_issuite, METH_VARARGS, "Determines if an AST object was created from a suite."}, ! {"suite", parser_suite, METH_VARARGS, "Creates an AST object from a suite."}, ! {"sequence2ast", parser_tuple2ast, METH_VARARGS, "Creates an AST object from a tree representation."}, ! {"tuple2ast", parser_tuple2ast, METH_VARARGS, "Creates an AST object from a tree representation."}, /* private stuff: support pickle module */ ! {"_pickler", parser__pickler, METH_VARARGS, "Returns the pickle magic to allow ast objects to be pickled."}, {0, 0, 0} --- 2690,2716 ---- * inheritance. */ static PyMethodDef parser_functions[] = { ! {"ast2tuple", (PyCFunction)parser_ast2tuple, METH_VARARGS, "Creates a tuple-tree representation of an AST."}, ! {"ast2list", (PyCFunction)parser_ast2list, METH_VARARGS, "Creates a list-tree representation of an AST."}, ! {"compileast", (PyCFunction)parser_compileast, METH_VARARGS, "Compiles an AST object into a code object."}, ! {"expr", (PyCFunction)parser_expr, METH_VARARGS, "Creates an AST object from an expression."}, ! {"isexpr", (PyCFunction)parser_isexpr, METH_VARARGS, "Determines if an AST object was created from an expression."}, ! {"issuite", (PyCFunction)parser_issuite, METH_VARARGS, "Determines if an AST object was created from a suite."}, ! {"suite", (PyCFunction)parser_suite, METH_VARARGS, "Creates an AST object from a suite."}, ! {"sequence2ast", (PyCFunction)parser_tuple2ast, METH_VARARGS, "Creates an AST object from a tree representation."}, ! {"tuple2ast", (PyCFunction)parser_tuple2ast, METH_VARARGS, "Creates an AST object from a tree representation."}, /* private stuff: support pickle module */ ! {"_pickler", (PyCFunction)parser__pickler, METH_VARARGS, "Returns the pickle magic to allow ast objects to be pickled."}, {0, 0, 0} *************** *** 2761,2767 **** /* register to support pickling */ module = PyImport_ImportModule("copy_reg"); if (module != NULL) { ! PyObject *func, *constructor, *pickler; func = PyObject_GetAttrString(module, "pickle"); pickle_constructor = PyDict_GetItemString(dict, "sequence2ast"); --- 2766,2772 ---- /* register to support pickling */ module = PyImport_ImportModule("copy_reg"); if (module != NULL) { ! PyObject *func, *pickler; func = PyObject_GetAttrString(module, "pickle"); pickle_constructor = PyDict_GetItemString(dict, "sequence2ast"); @ 1.1 log @Update python to version 1.5.1 using package by Jaromir Dolecek. Fixes PR pkg/5361. @ text @@