Commit Graph

36 Commits

Author SHA1 Message Date
Fred Drake 0dd7507e51 What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT. 2000-02-21 18:19:06 +00:00
Fred Drake 2a6875e172 parser__pickler(): Don't drop the third argument to
parser_ast2tuple().  Create an temporary empty dictionary to
        use.  Bug reported by Mark Favas <m.favas@per.dem.csiro.au>.

Fix a couple of comments.
1999-09-20 22:32:18 +00:00
Fred Drake 7a15ba595a Added keyword parameter support to all public interfaces; keyword
names match the documentation.

Removed broken code that supports the __methods__ attribute on ast
objects; the right magic was added to Py_FindMethod() since this was
originally written.  <ast-object>.__methods__ now works, so dir() and
rlcompleter are happy.
1999-09-09 14:21:52 +00:00
Fred Drake 1a566ff2e8 When the parameter to PyInt_AsLong() has already been checked with
PyInt_Check(), use PyInt_AS_LONG() instead (two places).
1999-02-17 17:35:53 +00:00
Guido van Rossum 3886bb6997 Add DL_EXPORT() to all modules that could possibly be used
on BeOS or Windows.
1998-12-04 18:50:17 +00:00
Fred Drake 7f875ef749 parser__pickler(): Use Py_DECREF() when reference is known to be non-NULL. 1998-08-04 15:58:10 +00:00
Guido van Rossum 3c8c5981b1 Sorry, the initializer for ob_type must really be NULL,
else the damn thing won't compile on Windows :-(
1998-05-29 02:58:20 +00:00
Fred Drake ed3da23e44 parser_compare_nodes(): Corrected a minor type error; eliminate one GCC
warning (at least under Linux).
1998-05-11 03:31:16 +00:00
Fred Drake 268397f513 Made lint a bit happier.
Fixed a memory leak in an error handler.
1998-04-29 14:16:32 +00:00
Guido van Rossum 19efc5fb80 Add a declaration for strdup() for the Mac.
(Jack)
1998-04-28 16:10:19 +00:00
Fred Drake 301b5bea3f In method & function tables, added a cast for the function pointers to keep
compilers happy.

initparser():  Remove unused variable.

gcc -Wall is now happy.
1998-04-21 22:31:45 +00:00
Fred Drake 503d8d66cc The documentation threatened it would happen -- the functions that should
have been methods now are!  Still available as functions for compatibility.
1998-04-13 18:45:18 +00:00
Fred Drake 43f8f9b894 Added support for pickling ast objects. 1998-04-13 16:25:46 +00:00
Guido van Rossum 730806d3d9 Make new gcc -Wall happy 1998-04-10 22:27:42 +00:00
Fred Drake c542bc79c8 Support raise with no parameters. 1998-04-10 04:43:28 +00:00
Fred Drake d49266eeed Remove requirement for strdup() since it causes so many troubles for too many
platforms.  Argh!
1997-10-09 16:29:31 +00:00
Guido van Rossum 1f14ccf6d1 Put back the extern declaration for strdup(), between #ifndef MS_WINDOWS.
This should make everybody happy, especially since we don't say what
the argument type is (there is disagreement on that, too :-( ).
1997-10-08 15:45:53 +00:00
Fred Drake 0225a38907 initparser(): Use PyErr_NewException() to create the exception. 1997-10-07 19:32:00 +00:00
Fred Drake fd9ef4a26d Removed extern declaration of strdup(). Doesn't appear to be important and
causes ugly noises under Windows.
1997-09-30 19:20:01 +00:00
Fred Drake 69b9ae4e0b Add doc string to type object. 1997-05-23 04:04:17 +00:00
Guido van Rossum 925e547fcc Support assert stmt. 1997-04-02 05:32:13 +00:00
Guido van Rossum f2b2dac5eb Initialize the ob_type field of PyAST_Type dynamically (in
initparser()) instead of statically (in the initializer).  The static
initialization, using the address of an object in a different DLL, is
too much for the Microsoft VC++ compiler, and we want to be able to
build this module as a separate DLL (it's nice to have but we don't
want to increase the core DLL's size by 25K).  This same trick has
been applied to a number of modules, e.g. NumPy and _tkinter.
1997-01-23 23:29:44 +00:00
Guido van Rossum a376cc5cc8 Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
Guido van Rossum d266eb460e New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
Fred Drake e1607a8d0e (parsermodule.c): Fixed sloppy typo: '==' -> '=' 1996-09-11 21:58:26 +00:00
Guido van Rossum 2a2884645d Patches to make it compile with K&R C 1996-08-21 21:55:43 +00:00
Guido van Rossum 360a934609 Support for old CPP 1996-08-21 19:04:10 +00:00
Guido van Rossum 4747887880 New batch from Fred 1996-08-21 14:32:37 +00:00
Guido van Rossum 3d602e31b1 New submission by Fred Drake. 1996-07-21 02:33:56 +00:00
Guido van Rossum c0fd1c0b83 fix argcount bug for build_node_children 1996-01-12 01:37:02 +00:00
Guido van Rossum d9e9f9c05d Fred Drake's new parser module 1995-10-11 17:35:38 +00:00
Guido van Rossum cd938fc5a1 Made some more things static, and other cleanup for new naming scheme 1995-01-17 16:13:48 +00:00
Guido van Rossum 524b588553 Added 1995 to copyright message.
Setup.in: clarified Tk comments somewhat.
structmodule.c: use memcpy() instead of double precision assignment.
1995-01-04 19:10:35 +00:00
Guido van Rossum 3bbc62e9c2 Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets,
renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
1995-01-02 19:30:30 +00:00
Guido van Rossum b6775db241 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
Guido van Rossum 52f2c05401 * parsermodule.c, Makefile, config.c: rudimentary interface to the Python
parser.
* mappingobject.c (lookmapping): 'freeslot' was never used due to a bug in
  the code.
1993-11-10 12:53:24 +00:00