Guido van Rossum
b2395ebd51
Upgrade patchlevel to 1.5.2a1.
1998-08-05 21:16:18 +00:00
Guido van Rossum
1a8791e0b8
Changes for BeOS, QNX and long long, by Chris Herborth.
1998-08-04 22:46:29 +00:00
Barry Warsaw
62a21a2ebe
New global variables: PyExc_EnvironmentError and PyExc_OSError
...
New function: PyErr_SetFromErrnoWithFilename(PyObject* char*)
1998-07-23 15:57:34 +00:00
Guido van Rossum
ba0d0611e7
Add macros for direct access to the members of CFunction objects.
1998-07-10 15:47:08 +00:00
Guido van Rossum
d4ba73c75b
Move the definition of PyMethodObject to classobject.h, so it can define
...
macros for more efficient access to the fields.
1998-07-10 15:46:33 +00:00
Guido van Rossum
9223351617
Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObject
...
to the .h file and add macros there for inlined access to the fields.
1998-07-10 15:21:55 +00:00
Guido van Rossum
9d865e1a30
Get rid of some obsolete opcodes.
1998-07-07 14:58:39 +00:00
Guido van Rossum
16926bd75e
Add PyImport_AppendInittab() an PyImport_ExtendInittab().
1998-06-29 20:34:46 +00:00
Guido van Rossum
a70d160095
Define new macro Py_InitModule3(name, methods, doc) which calls
...
Py_InitModule4() with appropriate arguments.
1998-06-27 18:21:59 +00:00
Guido van Rossum
90ce848848
On SGI, we need to define _SGI_MP_SOURCE before including errno.h when
...
we are threading, otherwise accessing errno doesn't work right.
1998-05-26 18:38:07 +00:00
Guido van Rossum
44e4d5a6fd
Renamed PySequence_In() to PySequence_Contains().
1998-05-22 00:47:25 +00:00
Guido van Rossum
bf6a9b165a
Add
...
PySys_WriteStdout(format, ...)
PySys_WriteStderr(format, ...)
1998-05-12 14:58:52 +00:00
Guido van Rossum
50cc04ee03
Mac CodeWarrior has faulty declaration for hypot, which we hide with a
...
#define.
(Jack)
1998-04-28 16:02:29 +00:00
Guido van Rossum
a937d14898
Fred's right -- we need PyList_SET_ITEM().
1998-04-24 18:22:02 +00:00
Guido van Rossum
a9c2d7a87c
Add new spares to the end of the type object struct.
1998-04-23 19:16:44 +00:00
Guido van Rossum
ee0a63bec5
Move 'dict' struct member to end of struct. This ensures binary
...
compatibility for shared libraries.
*** WARNING -- IF YOU BUILT 1.5.1BETA1, DO A "MAKE CLEAN" ***
1998-04-13 20:24:05 +00:00
Guido van Rossum
26d4ac30be
Add prototypes for Py_Repr{Enter,Leave}.
...
(Jeremy will hardly recognize his patch :-)
1998-04-10 22:32:24 +00:00
Guido van Rossum
204751b127
Add dict struct member and PyThreadState_GetDict() prototype.
1998-04-10 20:19:01 +00:00
Guido van Rossum
c9ea7572e9
Set the patch level to 1.5.1. (I'm not going to release this as a
...
beta -- if there are bugs, I'll post a patch page and release 1.5.2
sooner.)
1998-04-10 18:08:06 +00:00
Guido van Rossum
4d856ee652
Added Tabcheck flag.
1998-04-10 17:59:44 +00:00
Guido van Rossum
e77a992a0d
Add E_INDENT -- new error to check for bad indentation
1998-04-09 21:37:20 +00:00
Guido van Rossum
c3d3f9692d
Add PyObject_Not().
1998-04-09 17:53:59 +00:00
Guido van Rossum
f1dc0615e9
Add internal routine _PyModule_Clear(), which does approximately what
...
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).
1998-02-19 20:51:52 +00:00
Guido van Rossum
fccb68ef2a
Added PyImport_ExecCodeModuleEx(), which adds an extra parameter to pass
...
it the true file.
1998-02-11 05:47:24 +00:00
Guido van Rossum
66d4b90791
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
...
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).
1998-02-06 22:28:05 +00:00
Guido van Rossum
95c745b5fc
- Add Py_FrozenFlag, intended to suppress error messages fron
...
getpath.c in frozen binaries.
1998-02-06 22:27:46 +00:00
Guido van Rossum
d8a0be775f
Set the patch level to 1.5.
1997-12-30 04:29:49 +00:00
Guido van Rossum
d5559576c9
Start calling it 1.5b2
1997-12-10 05:51:13 +00:00
Guido van Rossum
cd8732a482
Remove the last bits of log from the leading comments.
1997-12-08 15:16:08 +00:00
Guido van Rossum
60aff2c0a6
Use the proper OS2 test symbol: PYOS_OS2.
1997-12-05 21:39:25 +00:00
Guido van Rossum
36facb086e
Merge between my version and Jim Fulton's version; removed RCS keywords
...
but otherwise unchanged.
1997-12-04 01:14:08 +00:00
Guido van Rossum
7bf22de753
Patch for QNX, by Chris Herborth.
1997-12-02 20:34:19 +00:00
Guido van Rossum
8e9ebfd337
os2 patch by Jeff Rush
1997-11-22 21:53:48 +00:00
Guido van Rossum
ee6fd1c392
Add declaration for _Py_PackageContext -- needed to fix importing
...
of shared libraries from inside packages.
1997-11-19 18:51:35 +00:00
Guido van Rossum
127b8dd8d4
Add declaration for PyNumber_CoerceEx().
1997-11-19 16:04:54 +00:00
Guido van Rossum
33635f818a
start numbering things 1.5b1 now
1997-11-18 19:21:47 +00:00
Guido van Rossum
359bcaa539
This fix (across 4 files in 3 directories) solves a subtle problem with
...
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.
1997-11-14 22:24:28 +00:00
Guido van Rossum
66959aff68
Remove the declaration of "internal" table _PyImport_Inittab[]; add
...
new "official" pointer *PyImport_Inittab.
1997-10-31 18:36:47 +00:00
Guido van Rossum
1f84449fd8
New CObject from Jim Fulton, adds PyCObject_FromVoidPtrAndDesc() and
...
PyCObject_GetDesc().
1997-10-21 19:48:35 +00:00
Guido van Rossum
e85da651dd
Some patches to Lee Busby's fpectl mods that accidentally didn't make it
...
into 1.5a4.
1997-10-20 23:50:01 +00:00
Guido van Rossum
eec6ef1aa2
Use K&R function prototypes.
1997-10-07 14:44:48 +00:00
Guido van Rossum
b4cfdfa077
Removed special Windows defines, at Mark Hammond's request.
1997-09-29 23:29:08 +00:00
Guido van Rossum
2d2c34445b
New API PyErr_NewException(name, base, dict) to create simple new exceptions.
1997-09-16 21:50:37 +00:00
Barry Warsaw
65349a3936
[Py_Exc]NumberError => [Py_Exc]ArithmeticError
1997-09-16 21:50:36 +00:00
Guido van Rossum
0474832d9c
Introduce PyExc_Exception as the conceptual root class for all exceptions.
1997-09-16 18:43:15 +00:00
Guido van Rossum
7ca65abb2f
Set it to 1.5a4, now we have dotted-name import...
1997-09-08 02:17:31 +00:00
Guido van Rossum
114c1eabbb
#Added prototype for PyObject_HasAttr() -- must've been an oversight.
1997-09-06 18:44:59 +00:00
Fred Drake
49bb0e32a0
Fix in trailing comment: PyDict_SetItemString() does *not* consume a reference
...
count, PyList_SetItem() does. Very confusing!
1997-09-05 17:53:53 +00:00
Guido van Rossum
026de19906
Added PyImport_ImportModuleEx(name, globals, locals, fromlist); this
...
is like PyImport_ImporModule(name) but receives the globals and locals
dict and the fromlist arguments as well. (The name is a char*; the
others are PyObject*s).
1997-09-05 07:11:32 +00:00
Guido van Rossum
d7ed683a7e
Inline PyObject_CallObject (Marc-Andre Lemburg).
1997-08-30 15:02:50 +00:00