Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Changes by Greg Stein (code) and GvR (design). | Guido van Rossum | 1998-10-08 | 1 | -2/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | Add a new member to the PyBufferProcs struct, bf_getcharbuffer. For backward compatibility, this member should only be used (this includes testing for NULL!) when the flag Py_TPFLAGS_HAVE_GETCHARBUFFER is set in the type structure, below. Note that if its flag is not set, we may be looking at an extension module compiled for 1.5.1, which will have garbage at the bf_getcharbuffer member (because the struct wasn't as long then). If the flag is one, the pointer may still be NULL. The function found at this member is used in a similar manner as bf_getreadbuffer, but it is known to point to 8-bit character data. (See discussion in getargs.c checked in later.) As a general feature for extending the type structure and the various structures that (may) hang off it in a backwards compatible way, we rename the tp_xxx4 "spare" slot to tp_flags. In 1.5.1 and before, this slot was always zero. In 1.5.1, it may contain various flags indicating extra fields that weren't present in 1.5.1. The only flag defined so far is for the bf_getcharbuffer member of the PyBufferProcs struct. Note that the new spares (tp_xxx5 - tp_xxx8), once they become used, should also be protected by a flag (or flags) in tp_flags. | ||||
* | Changes to support other object types besides strings | Guido van Rossum | 1998-10-07 | 1 | -1/+6 |
| | | | | | as the code string of code objects, as long as they support the (readonly) buffer interface. By Greg Stein. | ||||
* | Add Greg Stein's buffer object API. | Guido van Rossum | 1998-10-07 | 2 | -0/+62 |
| | |||||
* | Up version to 1.5a2 -- we're close enough (even though I'm still | Guido van Rossum | 1998-10-02 | 1 | -1/+1 |
| | | | | expecting some contributions). | ||||
* | Renamed thread.h to pythread.h. | Guido van Rossum | 1998-10-01 | 1 | -90/+0 |
| | |||||
* | On second though, NEXITFUNCS should be defined in pythonrun.c and not | Guido van Rossum | 1998-10-01 | 1 | -2/+0 |
| | | | | | here; pystate.h doesn't use it (I thought I wanted to move the array there but that won't work). | ||||
* | Move the #include of <sys/select> to *after* mytime.h (or <time.h>), | Guido van Rossum | 1998-09-28 | 1 | -2/+2 |
| | | | | as this is the logical order of dependencies. Suggested by Jeff Rush. | ||||
* | Patches from Greg Stein to support 'P' format in struct module's | Guido van Rossum | 1998-09-18 | 1 | -0/+2 |
| | | | | | native format, as void* (translated to Python int or long). Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c. | ||||
* | Duplicate the decls for PySys_WriteStd{out,err} here so the VC++ | Guido van Rossum | 1998-09-17 | 1 | -0/+9 |
| | | | | compiler doesn't grumble. Greg Stein's suggestion. | ||||
* | Patch by Mark Hammond to support 64-bit ints on MS platforms. | Guido van Rossum | 1998-08-25 | 1 | -4/+7 |
| | | | | | | The MS compiler doesn't call it 'long long', it uses __int64, so a new #define, LONG_LONG, has been added and all occurrences of 'long long' are replaced with it. | ||||
* | Move an indented #define to column 1. | Guido van Rossum | 1998-08-23 | 1 | -1/+1 |
| | |||||
* | Add missing prototypes for PyEval_CallFunction() and PyEval_CallMethod(). | Guido van Rossum | 1998-08-08 | 1 | -0/+10 |
| | |||||
* | Upgrade patchlevel to 1.5.2a1. | Guido van Rossum | 1998-08-05 | 1 | -1/+1 |
| | |||||
* | Changes for BeOS, QNX and long long, by Chris Herborth. | Guido van Rossum | 1998-08-04 | 4 | -0/+36 |
| | |||||
* | New global variables: PyExc_EnvironmentError and PyExc_OSError | Barry Warsaw | 1998-07-23 | 1 | -0/+3 |
| | | | | New function: PyErr_SetFromErrnoWithFilename(PyObject* char*) | ||||
* | Add macros for direct access to the members of CFunction objects. | Guido van Rossum | 1998-07-10 | 1 | -0/+9 |
| | |||||
* | Move the definition of PyMethodObject to classobject.h, so it can define | Guido van Rossum | 1998-07-10 | 1 | -0/+16 |
| | | | | macros for more efficient access to the fields. | ||||
* | Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObject | Guido van Rossum | 1998-07-10 | 1 | -0/+15 |
| | | | | to the .h file and add macros there for inlined access to the fields. | ||||
* | Get rid of some obsolete opcodes. | Guido van Rossum | 1998-07-07 | 1 | -5/+0 |
| | |||||
* | Add PyImport_AppendInittab() an PyImport_ExtendInittab(). | Guido van Rossum | 1998-06-29 | 1 | -0/+3 |
| | |||||
* | Define new macro Py_InitModule3(name, methods, doc) which calls | Guido van Rossum | 1998-06-27 | 1 | -0/+4 |
| | | | | Py_InitModule4() with appropriate arguments. | ||||
* | On SGI, we need to define _SGI_MP_SOURCE before including errno.h when | Guido van Rossum | 1998-05-26 | 1 | -0/+4 |
| | | | | we are threading, otherwise accessing errno doesn't work right. | ||||
* | Renamed PySequence_In() to PySequence_Contains(). | Guido van Rossum | 1998-05-22 | 1 | -1/+2 |
| | |||||
* | Add | Guido van Rossum | 1998-05-12 | 1 | -0/+9 |
| | | | | | PySys_WriteStdout(format, ...) PySys_WriteStderr(format, ...) | ||||
* | Mac CodeWarrior has faulty declaration for hypot, which we hide with a | Guido van Rossum | 1998-04-28 | 1 | -5/+13 |
| | | | | | #define. (Jack) | ||||
* | Fred's right -- we need PyList_SET_ITEM(). | Guido van Rossum | 1998-04-24 | 1 | -0/+1 |
| | |||||
* | Add new spares to the end of the type object struct. | Guido van Rossum | 1998-04-23 | 1 | -0/+6 |
| | |||||
* | Move 'dict' struct member to end of struct. This ensures binary | Guido van Rossum | 1998-04-13 | 1 | -2/+2 |
| | | | | | | compatibility for shared libraries. *** WARNING -- IF YOU BUILT 1.5.1BETA1, DO A "MAKE CLEAN" *** | ||||
* | Add prototypes for Py_Repr{Enter,Leave}. | Guido van Rossum | 1998-04-10 | 1 | -0/+4 |
| | | | | (Jeremy will hardly recognize his patch :-) | ||||
* | Add dict struct member and PyThreadState_GetDict() prototype. | Guido van Rossum | 1998-04-10 | 1 | -0/+3 |
| | |||||
* | Set the patch level to 1.5.1. (I'm not going to release this as a | Guido van Rossum | 1998-04-10 | 1 | -1/+1 |
| | | | | | beta -- if there are bugs, I'll post a patch page and release 1.5.2 sooner.) | ||||
* | Added Tabcheck flag. | Guido van Rossum | 1998-04-10 | 1 | -0/+1 |
| | |||||
* | Add E_INDENT -- new error to check for bad indentation | Guido van Rossum | 1998-04-09 | 1 | -0/+1 |
| | |||||
* | Add PyObject_Not(). | Guido van Rossum | 1998-04-09 | 2 | -0/+13 |
| | |||||
* | Add internal routine _PyModule_Clear(), which does approximately what | Guido van Rossum | 1998-02-19 | 1 | -0/+1 |
| | | | | | | | | | clear_carefully() used to do in import.c. Differences: leave only __builtins__ alone in the 2nd pass; and don't clear the dictionary (on the theory that as long as there are references left to the dictionary, those might be destructors that might expect __builtins__ to be alive when they run; and __builtins__ can't normally be part of a cycle). | ||||
* | Added PyImport_ExecCodeModuleEx(), which adds an extra parameter to pass | Guido van Rossum | 1998-02-11 | 1 | -0/+2 |
| | | | | it the true file. | ||||
* | - Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow | Guido van Rossum | 1998-02-06 | 1 | -0/+4 |
| | | | | | | | | embedders to force a different PYTHONHOME. - Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but flag determines whether sys.last_* are set or not. PyErr_Print() now simply calls PyErr_PrintEx(1). | ||||
* | - Add Py_FrozenFlag, intended to suppress error messages fron | Guido van Rossum | 1998-02-06 | 1 | -0/+1 |
| | | | | getpath.c in frozen binaries. | ||||
* | Set the patch level to 1.5. | Guido van Rossum | 1997-12-30 | 1 | -1/+1 |
| | |||||
* | Start calling it 1.5b2 | Guido van Rossum | 1997-12-10 | 1 | -1/+1 |
| | |||||
* | Remove the last bits of log from the leading comments. | Guido van Rossum | 1997-12-08 | 1 | -13/+1 |
| | |||||
* | Use the proper OS2 test symbol: PYOS_OS2. | Guido van Rossum | 1997-12-05 | 1 | -1/+1 |
| | |||||
* | Merge between my version and Jim Fulton's version; removed RCS keywords | Guido van Rossum | 1997-12-04 | 1 | -8/+2 |
| | | | | but otherwise unchanged. | ||||
* | Patch for QNX, by Chris Herborth. | Guido van Rossum | 1997-12-02 | 1 | -0/+3 |
| | |||||
* | os2 patch by Jeff Rush | Guido van Rossum | 1997-11-22 | 1 | -1/+1 |
| | |||||
* | Add declaration for _Py_PackageContext -- needed to fix importing | Guido van Rossum | 1997-11-19 | 1 | -0/+2 |
| | | | | of shared libraries from inside packages. | ||||
* | Add declaration for PyNumber_CoerceEx(). | Guido van Rossum | 1997-11-19 | 1 | -0/+1 |
| | |||||
* | start numbering things 1.5b1 now | Guido van Rossum | 1997-11-18 | 1 | -1/+1 |
| | |||||
* | This fix (across 4 files in 3 directories) solves a subtle problem with | Guido van Rossum | 1997-11-14 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | signal handlers in a fork()ed child process when Python is compiled with thread support. The bug was reported by Scott <scott@chronis.icgroup.com>. What happens is that after a fork(), the variables used by the signal module to determine whether this is the main thread or not are bogus, and it decides that no thread is the main thread, so no signals will be delivered. The solution is the addition of PyOS_AfterFork(), which fixes the signal module's variables. A dummy version of the function is present in the intrcheck.c source file which is linked when the signal module is not used. | ||||
* | Remove the declaration of "internal" table _PyImport_Inittab[]; add | Guido van Rossum | 1997-10-31 | 1 | -3/+1 |
| | | | | new "official" pointer *PyImport_Inittab. |