Ken Manheimer
74a43470b1
Looks like mention of http://quest.jpl.nasa.gov/zlib/ got added but
...
not checked in, so i'm doing it.
1998-03-03 16:42:53 +00:00
Guido van Rossum
d0f432b840
A bug in PCRE could cause core dumps in patterns such as
...
'((a)*)*'. Andrew Kuchling posted a fix to the string-sig.
1998-02-20 21:45:14 +00:00
Guido van Rossum
1c0d31565d
Delete the 'exit' command from the Tcl interpreter -- it would allow
...
users to exit Python without the normal precautions. (The can do this
using os._exit() anyway, but at least that's documented.)
1998-02-19 21:28:49 +00:00
Guido van Rossum
1ad1b3f911
Forgot to return NULL in joinfields() when a type error was detected
...
in one of the sequence items.
1998-02-06 22:37:12 +00:00
Guido van Rossum
64608cfb86
Updated URL for zlib.
1998-02-06 22:36:10 +00:00
Guido van Rossum
07e9fbf6b9
Register Tcl_Finalize as a Python exit handler.
1998-02-06 22:35:46 +00:00
Guido van Rossum
40769dd073
Don't store the exception info from an unhandled exception in a thread
...
in sys.last_*; it prevents proper calling of destructors of local
variables.
1998-02-06 22:32:08 +00:00
Guido van Rossum
131c92c069
- Use Py_GetPythonHome() instead of getenv("PYTHONHOME").
...
- Don't print error messages when Py_FrozenFlag is set.
1998-02-06 22:29:30 +00:00
Guido van Rossum
57d9f2e6ec
Renamed Jim's PyErr_[JF]Format() to cPickle_ErrFormat(). It's not a
...
standard Python API function so it should not have a Py prefix.
1998-01-19 23:18:18 +00:00
Guido van Rossum
d29806c37e
Instead of a single exists(), differentiate between files, modules,
...
executable files, and directories. When expecting a module, we also
look for the .pyc or .pyo file.
1998-01-19 22:06:22 +00:00
Guido van Rossum
73bacfc3d7
Add unistd.h for isatty().
1998-01-19 22:05:22 +00:00
Guido van Rossum
3dacdc306e
Add LOG_SYSLOG if defined.
1998-01-19 22:05:08 +00:00
Guido van Rossum
3dd264cc0f
Deleted targets used only by Jim Fulton's now deleted "gMakefile".
...
Also change the build rules to use $(LIBRARY) instead of
-L.. -lpython$(VERSION)
since the latter trips up the SunOS 4.1.x linker (sigh).
1998-01-13 18:57:24 +00:00
Guido van Rossum
74608f8b8a
Oops, big glitch. Charles had put a 1 in the column for argument list
...
type for all functions. However many function call PyArg_Parse() and
need a 0. This is so that when they didn't change anything, the can
do Py_INCREF(args); return args. Reverted this back. For atof(),
there's no reason not to use PyArg_ParseTuple(), so I changed the code
(atoi and atol already used that).
1997-12-30 05:44:10 +00:00
Guido van Rossum
786205e385
Oops, the last checkin left a blank line in a string literal.
1997-12-30 05:10:14 +00:00
Guido van Rossum
1d0d7e4e48
At Jeff Rush' request, add Py_BEGIN/END_ALLOW_THREADS around call to
...
DosSleep().
1997-12-29 20:03:10 +00:00
Guido van Rossum
bfaf3d6186
Moved some #ifdefs around that got put in the wrong place by the
...
latest OS/2 patch set.
1997-12-29 20:02:27 +00:00
Guido van Rossum
23e21e7cf3
Minor editing corrections.
1997-12-29 19:57:36 +00:00
Guido van Rossum
983c930c8d
Added doc string, provided by Charles Waldman (with some reformatting
...
and a little editing my me).
1997-12-29 19:52:29 +00:00
Guido van Rossum
557dea1ca2
AMK's latest -- synchronized with PCRE 1.04.
1997-12-22 22:46:52 +00:00
Guido van Rossum
9897f0f847
Oops, left in a non-standard multi-line doc string that GCC finds okay
...
but other compilers don't like.
1997-12-21 06:46:20 +00:00
Guido van Rossum
414fd4843a
Added doc strings, suggested by Charles G. Waldman (but massaged quite a bit).
1997-12-19 04:24:24 +00:00
Guido van Rossum
3c4bb802d0
Patch by Brian Gallew for DG/UX. I'm not quite sure what it does but
...
it seems harmless for other platforms. It plays tricks with the name
of the library used to link with. Apparently DG/UX really wants a
shared library to link with if it wants shared modules to use symbols
from the library. I'm not sure why this wasn't an issue with 1.4;
DG/UX seems to be the only platform where moving to a single library
made things harder!
BTW This adds a target to create libpython$(VERSION).so; however this
target is *only* for DG/UX.
1997-12-18 23:55:32 +00:00
Guido van Rossum
9ec0f8b405
Win32 treatment.
1997-12-18 05:21:29 +00:00
Guido van Rossum
58132c6799
AMK's latest; plus three null bytes that I added for purify
1997-12-17 00:24:13 +00:00
Guido van Rossum
e7951976ad
Fix mysterious undetected error -- call to non-existant Py_Err_SetStr()
...
which shoulda coulda woulda oughta been PyErr_SetString().
1997-12-16 23:58:15 +00:00
Guido van Rossum
bef74b5605
Add -lld option for AIX to _tkinter rules.
1997-12-16 18:12:30 +00:00
Guido van Rossum
aa6fa6bbeb
Patch by Oliver Andrich for Lunix using glibc.
1997-12-15 18:07:10 +00:00
Guido van Rossum
97250cb288
Untested change to include gmp-mparam.h instead of gmp-impl.h.
...
Chris Lawrence <quango@ix.netcom.com>
1997-12-15 17:55:53 +00:00
Guido van Rossum
1eadb41036
Patch (by Andrew Kuchling of course) to prevent named back references
...
in the pattern to wear out the reference count on small integers.
1997-12-15 17:33:24 +00:00
Guido van Rossum
9afad049e0
Move the dbm module around and add an introductory paragraph for dbm,
...
gdbm and bsddb, as suggested by Skip Montanaro.
1997-12-11 16:20:36 +00:00
Guido van Rossum
79f016a262
Remove "Lib/test" from the default path; this is now a package!
1997-12-10 23:38:26 +00:00
Guido van Rossum
bd49ac4492
The 'l' flag (locale specific matching) has been renamed to 'L'.
1997-12-10 23:05:53 +00:00
Guido van Rossum
c525e43b42
Add a test for a bad format character.
1997-12-09 20:37:25 +00:00
Guido van Rossum
ebd05eb10b
Typo: RUSAGE_CHILDERN -> RUSAGE_CHILDREN.
1997-12-09 19:35:48 +00:00
Guido van Rossum
8d9c2e33e1
LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES.
1997-12-09 19:35:11 +00:00
Guido van Rossum
be1eb0d9ed
(1) call mktime() just before strftime(); it normalizes the buffer and
...
may set the timezone name for BSD systems...
(2) fake all of the timezone variables for the mac.
1997-12-08 21:56:43 +00:00
Guido van Rossum
5070060d40
New pcre version from AMK
1997-12-08 17:15:20 +00:00
Guido van Rossum
9716aaa14c
Jim Fulton:
...
- Loading non-binary string pickles checks for insecure
strings. This is needed because cPickle (still)
uses a restricted eval to parse non-binary string pickles.
This change is needed to prevent untrusted
pickles like::
"S'hello world'*2000000\012p0\012."
from hosing an application.
- User-defined types can now support unpickling without
executing a constructor.
The second value returned from __reduce__ can now be None,
rather than an argument tuple. On unpickling, if the second
value returned from __reduce__ during pickling was None, then
rather than calling the first value returned from __reduce__,
directly, the __basicnew__ method of the first value returned
from __reduce__ is called without arguments.
1997-12-08 15:15:16 +00:00
Guido van Rossum
d48f252ce5
Another large batch of patches from Jeff Rush for OS/2.
...
I hope this time I've taken out all // comments and indended #ifdefs.
1997-12-05 22:19:34 +00:00
Guido van Rossum
a075ce1618
Two changes by Jeff Rush (slightly tweaked):
...
- New option -x, to skip first line of script
- Use the correct platform-specific delimiter and library location in
the usage message
(Also removed two blank lines and moved one line around so that each
part of the usage message is again under 512 bytes and the whole usage
message still fits in 23 lines.)
1997-12-05 21:56:45 +00:00
Guido van Rossum
fdde96ce98
New versions of cPickle and cStringIO, from Jim Fulton's cPickle 1.0b1
...
distribution.
1997-12-04 01:13:01 +00:00
Guido van Rossum
a0cbb3dbae
Moved the thread module to its own Setup.thread(.in) file,
...
which is edited by the config.status script depending on whether
--with-thread is specified or not. Also needs changes to configure(.in).
1997-12-04 00:48:27 +00:00
Guido van Rossum
57ba4f35f7
Patches by Fred Lundh to make it compile better with K&R compilers.
...
(Should really let AMK do this, but don't know when he'll give me a
new version.)
1997-12-02 20:40:28 +00:00
Guido van Rossum
e59d3f8ae1
Small bugfixes for broken old style use of the syntax table. AMK, of
...
course.
1997-12-02 20:39:23 +00:00
Guido van Rossum
f259a8e5c3
Yes, Virginia, Tix does have a Tix_SafeInit() function.
1997-12-02 20:38:38 +00:00
Guido van Rossum
b447d118ff
Understand -Xlinker option.
1997-12-02 20:38:11 +00:00
Guido van Rossum
32c575da0a
Left-aligned preprocessor directives and changed C++ comments to C
...
comments.
1997-12-02 20:37:32 +00:00
Guido van Rossum
c5a0f532e7
Patch for QNX, by Chris Herborth. Also left-aligned preprocessor
...
directives and changed C++ comments to C comments.
1997-12-02 20:36:02 +00:00
Guido van Rossum
7bf22de753
Patch for QNX, by Chris Herborth.
1997-12-02 20:34:19 +00:00
Guido van Rossum
30e817ef32
Changed the occurrence of *shared* in the example so people won't
...
accidentally uncomment it...
1997-12-02 16:46:39 +00:00
Guido van Rossum
f58575ea16
Comment out crypt by default; it's not used very much and messes up
...
the default build on Linux (because it requires -lcrypt which isn't
availabel everywhere).
Some improvements to the _tkinter build line suggested by Case Roole.
1997-12-02 03:23:01 +00:00
Barry Warsaw
93be92d309
split_whitespace(): Make sure delimiter is stripped from the beginning
...
of the remainder item (last item in list) when maxsplit is < the
number of occurrences.
1997-12-02 00:29:30 +00:00
Guido van Rossum
f6e8316b01
Initialize __version__ to the correct version string regardless of
...
what RCS checkout options are used. Problem first diagnosed by Marc
Lemburg.
1997-12-01 15:57:40 +00:00
Barry Warsaw
f577c08683
mymemreplace(), strop_replace(): Add support for optional 4th argument
...
maxsplit which is implemented in string.py but wasn't here. The
reference manual doesn't define what happens when maxsplit is negative
or larger than the number of occurrences, but in either case, I
implemented this as all get replaced. Default value is zero which
replaces all occurrences.
1997-11-29 00:10:07 +00:00
Guido van Rossum
8e9ebfd337
os2 patch by Jeff Rush
1997-11-22 21:53:48 +00:00
Guido van Rossum
8700fe62f8
Redone the _tkinter configuration section with support for popular packages.
1997-11-22 17:35:19 +00:00
Guido van Rossum
7a206c8a05
New tkappinit supporting several popular packages.
1997-11-22 17:34:41 +00:00
Barry Warsaw
0d2d759d8c
PySocketSock_methods: Added "connect_ex" so the method can actually be
...
called!
1997-11-20 21:39:02 +00:00
Guido van Rossum
3df69bca0a
Add support for _locale.
1997-11-19 18:57:48 +00:00
Guido van Rossum
fc4255db75
Add s.connect_ex() which returns errno instead of raising an exception.
1997-11-19 18:57:13 +00:00
Guido van Rossum
aec7497f6f
Add optional support fort Tix and BLT.
1997-11-19 18:56:17 +00:00
Guido van Rossum
220ecc8c4b
Martin von Loewis' _locale module (locale.py follows tomorrow).
1997-11-18 21:03:39 +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
851e7d5159
Got rid of the errorstr dictionary, which is redundant now that
...
there's os.strerror() -- also, it would form a locale liability.
1997-11-04 20:22:24 +00:00
Guido van Rossum
8f3c812e22
Fix due to Bill Noon for problem discovered by Ken Manheimer: packing
...
0.0 as float or double would yield the representation for 1.0!
1997-11-04 17:12:33 +00:00
Guido van Rossum
8607ae2e57
Move the Py_{{BEGIN,END}_ALLOW,BLOCK}_THREADS macros in time_sleep()
...
to inside floatsleep(). This is necessary because floatsleep() does
the error handling and it must have grabbed the interpreter lock and
thread state before it can do so.
1997-11-03 22:04:46 +00:00
Guido van Rossum
7ff20ac9c7
Change the signal finialization so that it also resets the signal
...
handlers. After this has been called, our signal handlers are no
longer active!
1997-11-03 21:53:55 +00:00
Guido van Rossum
6345ac6d61
Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov)
1997-10-31 20:32:13 +00:00
Guido van Rossum
873c35c437
Take out the setlocale() call. It affects atof() and will break
...
floating point literals. Need to do this differently...
1997-10-31 18:25:15 +00:00
Guido van Rossum
86aeb900e5
Add #include "mytime.h", needed for SunOS 4.1 (Matthias Klose).
1997-10-31 16:55:51 +00:00
Guido van Rossum
16cb6f4612
Forgot to add .cxx and .cpp to the second case statement.
...
Thanks to Daniel Larsson.
1997-10-21 19:30:29 +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
f6a84db034
Add getintarg(), getlongarg(), getstrarg() to macros since these no
...
longer exist in the general headers.
1997-10-20 23:22:07 +00:00
Guido van Rossum
cb4d3032ae
Add proper (getattrfunc) cast in Pcre_Type.
1997-10-20 23:21:23 +00:00
Guido van Rossum
266033e89b
Change sharedmodules to lib-dynload.
...
### If you still have sharedmodules in your Modules/Setup file, remove it! ###
1997-10-20 23:20:32 +00:00
Guido van Rossum
a59406abdf
Darn. When thread support is disabled, the BEGIN/END macros don't
...
save and restore the tstate, but explicitly calling
PyEval_SaveThread() does reset it! While I think about how to fix
this for real, here's a fix that avoids getting a fatal error.
1997-10-10 17:39:19 +00:00
Guido van Rossum
91922677ea
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
1997-10-09 20:24:13 +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
44c36bb114
Add call to setlocale(LC_ALL, "").
1997-10-08 22:49:17 +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
Guido van Rossum
e6a4b7bf3e
timezone support for macintosh (Jack)
1997-10-08 15:27:56 +00:00
Guido van Rossum
5bd919b6d7
Include macbuildno.h here (mac only) (Jack)
1997-10-08 15:26:56 +00:00
Guido van Rossum
b189a2f997
lots of "goto error" replaced by "return" (Jack)
1997-10-08 15:26:28 +00:00
Guido van Rossum
7dbb48a67f
Converted to new exception style (Jack)
1997-10-08 15:26:07 +00:00
Guido van Rossum
b0105444e2
Mac does support createfilehandler now (Jack)
1997-10-08 15:25:37 +00:00
Guido van Rossum
c386107838
Checking in AMK's latest installement.
...
(Two small changes to shup up gcc added.)
1997-10-08 02:07:40 +00:00
Fred Drake
0225a38907
initparser(): Use PyErr_NewException() to create the exception.
1997-10-07 19:32:00 +00:00
Guido van Rossum
0e8457c4ec
Fix EventHook (the trick to make widgets appear when using GNU
...
readline) to create and use a new thread state object -- otherwise it
would dump core!
1997-10-07 18:51:41 +00:00
Guido van Rossum
176bb41efa
Add the Setup line for the pcre module.
1997-10-07 16:17:55 +00:00
Guido van Rossum
79378ffd91
Add get_line_buffer() and insert_text(), suggested by Michael McLay.
1997-10-07 14:53:21 +00:00
Guido van Rossum
51b3aa3d38
New "re" regular expression support.
...
This code is written by Philip Hazel and Andrew Kuchling.
It requires a new "re.py" module, too.
1997-10-06 14:43:11 +00:00
Guido van Rossum
88d8beec0a
Oops, forgot one.
1997-10-01 04:43:39 +00:00
Guido van Rossum
0cb96de269
Apply two changes, systematically:
...
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the
exception object.
(2) Remove all calls to Py_FatalError(); instead, return or
ignore the errors -- the import code now checks PyErr_Occurred()
after calling a module's init function, so it's no longer a
fatal error for the initialization to fail.
Also did some small cleanups, e.g. removed unnecessary test for
"already initialized" from initfpectl(), and unified
initposix()/initnt().
I haven't checked this very thoroughly, so while the changes are
pretty trivial -- beware of untested code!
1997-10-01 04:29:29 +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
Guido van Rossum
54e2091ba2
Add an optional hack for threads in Tkinter.
...
This one works! However it requires using a modified version of
tclNotify.c (provided), which requires access to the Tcl source
to compile it. In order to enable this hack, add the following
to the Setup line for _tkinter:
tclNotify.c -DHAVE_PYTCL_WAITUNTILEVENT -I$(TCL)/generic
where TCL points to the source tree of Tcl 8.0. Other versions
of Tcl are not supported.
The tclNotify.c file is copyrighted by Sun Microsystems; the
licensing terms are in the file license.terms. According to this
file, no further permission to distribute this is required,
provided the file license.terms is included. Hence, I am checking
that in, too.
1997-09-28 05:52:41 +00:00
Guido van Rossum
a9f02b8bad
Add plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP.
1997-09-28 05:45:40 +00:00
Guido van Rossum
49f9d8e405
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
...
maps errno numbers to errno names (e.g. EINTR), and errorcode maps
them to message strings. (The latter is redundant because
the new call posix.strerror() now does the same, but alla...)
1997-09-28 05:41:56 +00:00
Guido van Rossum
4518823ad0
In whichmodule(), use __module__ if set.
1997-09-28 05:38:51 +00:00
Guido van Rossum
b6c935a933
Set the completer's word break characters appropriate for Python.
1997-09-26 23:00:37 +00:00