Guido van Rossum
c821d1ecc0
Add a cast that a picky SGI compiler found was necessary.
1998-07-07 22:25:47 +00:00
Guido van Rossum
9f29990a90
Fix a benign problem found by a picky SGI compiler (unreachable break
...
after a return).
1998-07-07 22:23:22 +00:00
Guido van Rossum
04e00a4cf4
Fix benign problems found by a picky SGI compiler (unreachable break
...
after a return or goto).
1998-07-07 22:22:22 +00:00
Guido van Rossum
c69bac539c
Fix benign problems found by a picky SGI compiler (unreachable break
...
after a return).
1998-07-07 22:21:45 +00:00
Guido van Rossum
eaa1ed6b42
Fix some problems that a picky SGI compiler reported. Two were benign
...
(unreachable break after a return) but one was a real bug:
ReadFrames() was getting a bogus framecount because of a missing '&'.
1998-07-07 22:19:27 +00:00
Guido van Rossum
82a5c66a51
Added copious docstrings, plus two minor layout tweaks.
1998-07-07 20:45:43 +00:00
Guido van Rossum
d20781b518
On Windows, put the select file descriptor arrays on the heap.
...
This is because they are huge and the stack is limited on Windows.
Other platforms keep declaring it on the stack.
1998-07-02 02:53:36 +00:00
Guido van Rossum
39ef2274a3
Unsigned 1 and 2 byte sized formats shouldn't result in long integer values!
1998-06-29 04:00:40 +00:00
Guido van Rossum
911ec188c8
# Added missing semicolon (was #ifdef'ed out in edit on Windows).
1998-06-28 17:00:19 +00:00
Guido van Rossum
1d8fb2d894
Added doc strings.
1998-06-28 16:54:49 +00:00
Guido van Rossum
0ef577b966
Added doc strings.
1998-06-27 20:38:36 +00:00
Guido van Rossum
d2264bb5c3
# Remove an extra blank line from a doc string.
1998-06-27 19:45:17 +00:00
Guido van Rossum
75e9fc31d3
Added doc strings. Also export LockType from the modoule, and give it
...
a doc string.
1998-06-27 18:21:06 +00:00
Guido van Rossum
5cd70f4f66
Added <ctype.h>, needed for Windows.
1998-06-19 04:33:30 +00:00
Guido van Rossum
f766e23f63
There was an error check in a loop in PythonCmd which called
...
PythonCmd_Error() but failed to return. The error wasn't very likely
(only when we run out of memory) but since the check is there we might
as well return the error. (I think that Barry introduced this buglet
when he added error checks everywhere.)
1998-06-19 04:28:10 +00:00
Guido van Rossum
5e97783c8f
# Note: a previous checkin message was lost because I can now use CVS
...
# from my PC at home, but it can't send email :-(
Add a clarifying comment about the new ENTER_OVERLAP and
LEAVE_OVERLAP_TCL macros; get rid of all the bogus tests for deleted
interpreters (Tcl already tests for this; they were left over from an
earlier misguided attempt to fix the threading).
1998-06-15 14:03:52 +00:00
Guido van Rossum
62320c9b9b
# (My first checkin from Windows NT using remote CVS!)
...
There were some serious problem with the thread-safety code.
The basic problem was that often the result was gotten out of
the Tcl interpreter object after releasing the Tcl lock.
Of course, another thread might have changed the return value
already, and this was indeed happening. (Amazing what trying
it on a different thread implementation does!)
The solution is to grab the Python lock without releasing the
Tcl lock, so it's safe to create a string object or set the
exceptions from the Tcl interpreter. Once that's done, the
Tcl lock is released.
Note that it's now legal to acquire the Python lock while the
the Tcl lock is held; but the reverse is not true: the Python
lock must be released before the Tcl lock is acquired. This
in order to avoid deadlines. Fortunately, there don't seem to
be any problems with this.
1998-06-15 04:36:09 +00:00
Guido van Rossum
ad4db17552
Fixed the EventHook() code so that it also works on Windows, sort of.
...
(The "sort of" is because it uses kbhit() to detect that the user
starts typing, and then no events are processed until they hit
return.)
Also fixed a nasty locking bug: EventHook() is called without the Tcl
lock set, so it can't use the ENTER_PYTHON and LEAVE_PYTHON macros,
which manipulate both the Python and the Tcl lock. I now only acquire
and release the Python lock.
(Haven't tested this on Unix yet...)
1998-06-13 13:56:28 +00:00
Guido van Rossum
b3f9f4b729
On Windows, make the pipe() call return Unix file descriptors instead
...
of Windows file handles. Now it is at least compatible with itself on
Unix!
1998-06-12 15:05:15 +00:00
Guido van Rossum
e7c4193755
In tcsetattr(), first initialize the mode structure by calling
...
tcgetattr(). This seems to be the only correct way to cope with
platform-specific structure members...
1998-06-12 14:26:18 +00:00
Guido van Rossum
87ce7bbc39
Added strptime, if it exists. Modified after a patch by Jesse Hallio.
1998-06-09 16:30:31 +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
Guido van Rossum
2a5119b680
On Windows, need #include <windows.h>; and it's MS_WINDOWS, not MS_WIN32.
1998-05-29 01:28:40 +00:00
Guido van Rossum
00d93066b0
Changes to make it possible to write multi-threaded programs using
...
Tkinter. This adds a separate lock -- read the comments. (This was
also needed for Mark Hammond's attempts to make PythonWin
Tkinter-friendly.)
The changes have affected the EventHook slightly, too; and I've done
some more cleanup of the code that deals with the different versions
of Tcl_CreateFileHandler().
1998-05-28 23:06:38 +00:00
Guido van Rossum
578de30fd7
Some systems (e.g. Linux) use enums for some symbols (like IPPROTO_IP)
...
so that our #ifdef test has the wrong effect. Substitute hardcoded
values for some important symbols (but not for the whole range -- some
are pretty obscure so it's not worth it).
1998-05-28 20:18:18 +00:00
Fred Drake
d3dbb38e98
get_long(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).
1998-05-28 04:35:49 +00:00
Fred Drake
bebc97fcd7
t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).
1998-05-28 04:35:12 +00:00
Fred Drake
764b984db5
Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred() == ... in two
...
places.
1998-05-28 04:33:37 +00:00
Guido van Rossum
7bf15648a4
Use a different implementation of EventHook(). The new version
...
registers an input file handler for stdin with Tcl and handles Tcl
events until something is available on stdin; it then deletes the
handler and returns from EventHook().
This works with or without GNU readline, and doesn't busy-wait.
It still doesn't work for Mac or Windows :-(
1998-05-22 18:28:17 +00:00
Guido van Rossum
832f6d2890
Add an alias (and preferred name) "contains" for "sequenceIncludes".
...
Rationalized the doc strings.
Also simplify the module initialization -- we don't need a __version__
which is set to "$Rev" :-) and we don't need a fatal error when the
initialization fails.
1998-05-22 18:12:59 +00:00
Guido van Rossum
b88679b2a4
I think there was a tiny bug in new_function() -- the 'defaults'
...
argument was initialized to Py_None, but later checked for NULL.
Consistently use Py_None.
1998-05-22 00:57:31 +00:00
Guido van Rossum
b1ed9c5295
PySequence_In() -> PySequence_Contains().
1998-05-22 00:54:16 +00:00
Guido van Rossum
7df115de65
Make sure that no use of a function pointer gotten from a
...
tp_as_sequence or tp_as_mapping structure is made without checking it
for NULL first.
1998-05-22 00:53:47 +00:00
Guido van Rossum
a88c5f30c7
Correct bug doc string (discovered by Berthold Hoellmann):
...
get_line_buffer() does not take an optional argument.
1998-05-20 15:50:56 +00:00
Guido van Rossum
fa1fb7df31
When a .o file is an absolute pathname, assume it's a file for which
...
we have no .c source.
1998-05-14 02:37:45 +00:00
Guido van Rossum
4ccda15cd3
strop_replace(): balk if the pattern string is empty.
1998-05-14 02:36:29 +00:00
Guido van Rossum
ed33a3f415
whichmodule(): remove redundant PyErr_Clear(); add explicit setting
...
of error when sys.modules isn't there.
1998-05-14 02:34:46 +00:00
Guido van Rossum
02759c03f1
Don't delete glmodule.c on 'make clobber' (it's a checked in file!).
1998-05-14 02:33:57 +00:00
Guido van Rossum
b41addf6a6
Replace all calls to fprintf(stderr, ...) with calls to PySys_WriteStderr(...).
1998-05-12 15:02:41 +00:00
Guido van Rossum
597ac20708
Trivial little change: timer tokens shouldn't have a Print() function,
...
they should have a Repr() function.
1998-05-12 14:36:19 +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
Guido van Rossum
ae94cf292b
Fix by Sean Reifschneider:
...
- When facility not specified to syslog() method, use default from openlog()
(This is how it was claimed to work in the documentation)
- Potential resource leak of o_ident, now cleaned up in closelog()
- Minor comment accuracy fix.
1998-05-08 21:52:55 +00:00
Guido van Rossum
821a5e42bf
Added URLs for zlib's home page and the Windows DLL's home page .
1998-05-08 14:56:29 +00:00
Guido van Rossum
dda6696be6
AMK's revised version of the previous patch.
1998-05-07 15:32:44 +00:00
Guido van Rossum
a5e54d02a0
Use (void) to throw away a function result, not (void *) !
1998-05-01 18:58:59 +00:00
Guido van Rossum
302be44e96
When following symlinks to the real executable, use a loop so a
...
symlink to a symlink can work.
(Jack)
1998-04-29 21:07:06 +00:00
Guido van Rossum
212643f199
Still somewhat experimental speedup. This appears to speed up the
...
most common interface to Tcl, the call() method, by maybe 20-25%.
The speedup code avoids the construction of a Tcl command string from
the argument list -- the Tcl argument list is immediately parsed back
by Tcl_Eval() into a list that is *guaranteed* (by Tcl_Merge()) to be
exactly the same list, so instead we look up the command info and call
the command function directly. If the lookup fails, we fall back to
the old method (Tcl_Merge() + Tcl_Eval()) so we don't need to worry
about special cases like undefined commands or the occasional command
("after") that sets the info.proc pointer to NULL -- let TclEval()
deal with these.
1998-04-29 16:22:14 +00:00
Guido van Rossum
9d1b7ae65b
Add a new method of interpreter objects, interpaddr(). This returns
...
the address of the Tcl interpreter object, as an integer. Not very
useful for the Python programmer, but this can be called by another C
extension that needs to make calls into the Tcl/Tk C API and needs to
get the address of the Tcl interpreter object. A simple cast of the
return value to (Tcl_Interp *) will do the trick now.
1998-04-29 16:17:01 +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
2ea1c94b9a
On the Mac a call to TkMacInitMenus is needed. Also, we pass
...
appropriate events to Sioux so the console window remains functional.
(Jack)
1998-04-28 16:12:43 +00:00
Guido van Rossum
19efc5fb80
Add a declaration for strdup() for the Mac.
...
(Jack)
1998-04-28 16:10:19 +00:00
Guido van Rossum
5c069fd4b1
Generate the clear() method manually (calling __GLclear(), another
...
name for clear()). This fixes the name clash with curses.
(Jack)
1998-04-28 16:09:16 +00:00
Guido van Rossum
239a218bac
Type casts, and added a strdup() declaration for the Mac.
...
(Jack)
1998-04-28 16:08:19 +00:00
Guido van Rossum
1f41f846a3
Instead of calling mktime(), which has all sorts of unwanted side
...
effects, simply zero out the struct tm buffer before using it; this
should take care of the BSD folks' concern just as well.
1998-04-27 19:04:26 +00:00
Guido van Rossum
690119621e
Purported fixes for 64-bit platforms with help from John Jorgensen
1998-04-23 20:23:00 +00:00
Guido van Rossum
115f517f77
Tiny patch for zlib 1.1.2
1998-04-23 20:22:11 +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
Guido van Rossum
2621637835
Add #ifdefs so Tcl_Finalize isn't referenced when it's not defined.
1998-04-20 18:47:52 +00:00
Guido van Rossum
7c33095b6b
Typo in usage message.
1998-04-13 20:28:18 +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
Guido van Rossum
cef113c524
Don't allow unescaped newlines in doc strings.
1998-04-13 18:11:55 +00:00
Fred Drake
43f8f9b894
Added support for pickling ast objects.
1998-04-13 16:25:46 +00:00
Fred Drake
10032ebb48
Module docstring indicated seek() isn't implemented, but it is.
1998-04-11 19:54:54 +00:00
Guido van Rossum
730806d3d9
Make new gcc -Wall happy
1998-04-10 22:27:42 +00:00
Guido van Rossum
39b0f8976c
Address warnings issued by the MSVC++ compiler
1998-04-10 21:52:06 +00:00
Guido van Rossum
5d30e740f5
Delete reference to reopmodule.c. Add comment about soundex' obsolescence.
1998-04-10 20:44:11 +00:00
Guido van Rossum
b53dc43769
Delete this obsolete module.
1998-04-10 20:38:41 +00:00
Guido van Rossum
bba92ca555
Add -t option to set the Py_TabcheckFlag flag.
1998-04-10 19:39:15 +00:00
Fred Drake
c542bc79c8
Support raise with no parameters.
1998-04-10 04:43:28 +00:00
Guido van Rossum
c6a681a57d
remove C++ entries of the form Class::method
1998-04-09 21:46:02 +00:00
Guido van Rossum
4f199eaa6e
Threading speedup patches by Christopher Lindblad <cjl@infoseek.com>.
1998-04-09 20:56:35 +00:00
Guido van Rossum
99c185e787
Add not_ and __not__.
1998-04-09 17:54:26 +00:00
Guido van Rossum
042ff9eb3a
AMK's latest
1998-04-03 21:13:31 +00:00
Guido van Rossum
104be4a4a7
Use %.17f to format floats/doubles
1998-04-03 21:13:02 +00:00
Fred Drake
fcc6c68e11
Export MPZType -- the type of mpz objects....
1998-04-03 15:33:43 +00:00
Guido van Rossum
031c6315e2
Check for boundary errors in [r]find -- find("x", "", 2) should return -1.
1998-03-24 04:19:22 +00:00
Guido van Rossum
816671c666
patch for re.sub bug, by AMK.
1998-03-10 04:55:29 +00:00
Guido van Rossum
60cd813810
Check for HAVE_MKTIME (if you don't have it, some tests will fail, but
...
at least the build will now succeed). For Sony NEWS-OS, BSD 4.3 based.
1998-03-06 17:16:21 +00:00
Guido van Rossum
22ffac1b1f
Don't use setvbuf unless HAVE_SETVBUF is defined.
1998-03-06 15:30:39 +00:00
Guido van Rossum
8a6dba3562
Clear class_map in constructor so that when it later detects an error
...
and the destructor is called early, it doesn't DECREF garbage.
1998-03-06 01:39:39 +00:00
Guido van Rossum
7853570651
Raise ValueError: "unconvertible time" when ctime() returns NULL,
...
instead of dumping core.
1998-03-03 22:19:10 +00:00
Guido van Rossum
1aca4d803d
Doc strings added by Mitch Chapman.
1998-03-03 22:10:18 +00:00
Guido van Rossum
3e79c4492e
Doc strings added by Mitch Chapman.
1998-03-03 22:03:26 +00:00
Guido van Rossum
bfc49e8c75
Doc strings added by Mitch Chapman.
...
Also got rid of some inconsistent change log comments near the top.
1998-03-03 22:02:24 +00:00
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
Guido van Rossum
290900a5d7
Reordered and reformatted, and added some cool new features:
...
set_completer(function)
parse_and_bind(string)
read_init_file(filename)
The first is the most exciting feature: with an appropriate Python
completer function, it can do dynamic completion based on the contents
of your namespace!
1997-09-26 21:51:21 +00:00
Guido van Rossum
3bbeb7a318
Fix by Sjoerd: don't want to resize to zero length.
1997-09-22 16:14:27 +00:00
Guido van Rossum
3d26cc9542
Move the "import readline" to an earlier place so it is also done when
...
"-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted
this :-)
1997-09-16 16:11:28 +00:00
Guido van Rossum
b6a4716298
Add strerror() interface.
1997-09-15 22:54:34 +00:00
Guido van Rossum
83551bfeda
Export names for the types defined by this module: TkappType and TkttType.
1997-09-13 00:44:23 +00:00
Guido van Rossum
75626a3b93
Indent the #error so that a strict K&R cpp doesn't complain.
1997-09-08 02:04:00 +00:00
Guido van Rossum
ab61c6b290
Change the names of the subdirectories tkinter and stdwin to
...
lib-tk and lib-stdwin. (BTW this was also done in the previous
checkin of (toplevel)/Makefile.in, though not noted in the checkin
message.)
1997-09-08 01:54:43 +00:00
Guido van Rossum
970f5d33c7
Reverse the order in which Setup and Setup.local are passed to the
...
makesetup script. (Sorry Sjoerd -- I know you proposed this a while
ago and I didn't think it would work then. I looked again and it
does work.)
1997-09-07 16:44:37 +00:00
Guido van Rossum
9eb671fac3
Contribution by Hannu Krosing (with some changes).
...
Added 'p' format character for Pascal string (i.e. leading length
byte). This uses the count prefix line 's' does, except that the
count includes the length byte; i.e. '10p' takes 10 bytes packed but
has space for a length byte and 9 data bytes.
1997-09-05 07:08:39 +00:00
Guido van Rossum
bd4435abcc
Don't use ANSI string literal concatenation (everything is K&R compatible).
1997-09-05 07:01:19 +00:00
Guido van Rossum
8102c005e0
Get rid of most silly #include and #ifdefs near the top; these are all
...
obsolete now it includes Python.h.
Make all functions K&R compatible (Sue Williams).
1997-09-05 01:48:48 +00:00
Jeremy Hylton
cb91404890
Several changes:
...
1. Fix bug in (de)compression objects. The final string resize used
zst.total_out to determine the length of the string, but the
(de)compression object will output data a little bit at a time, which
means total_out is not the string size. Fix: save original value of
total_out at the start of the call.
2. Be sure to Py_DECREF the result value if you exit with an
exception.
3. Use PyInt_FromLong instead of Py_BuildValue
4. include more constants from the zlib header file
5. Use PyErr_Format instead of using a local buffer and sprintf.
1997-09-04 23:39:23 +00:00
Barry Warsaw
c7736b9d49
Added first line to set Emacs makefile mode (pretty colors :-)
1997-09-04 13:05:14 +00:00
Guido van Rossum
9efe8ef7a1
#Plug small memory leaks in constructors.
1997-09-03 18:19:40 +00:00
Guido van Rossum
c3beda2f27
Plug small leaks: the [de]compress object itself was never freed.
1997-09-03 18:14:30 +00:00
Guido van Rossum
d19c04a88e
Change [_Py_]re_compile_pattern() to return a char*.
...
Since it only returns an error message (or NULL) there's no reason
for it to be unsigned char *, and various compilers like this better.
1997-09-03 00:47:36 +00:00
Guido van Rossum
5ade084902
Mod suggested by Donn Cave -- invoke makexp_aix relative to $0
...
so it doesn't have to be on $PATH.
1997-09-03 00:45:30 +00:00
Guido van Rossum
3f0bff666d
Disable the portable multimedia modules (audioop, imageop, rgbimg) by
...
default since they don't work on 64-bit platforms.
1997-09-03 00:44:14 +00:00
Guido van Rossum
15a40394b0
Fix the bug Jeremy was experiencing: both the close() and the
...
dealloc() functions contained code to free/DECREF the buffer
(there were differences between I and O objects but the logic bug was
the same). Fixed this be setting the buffer pointer to NULL and
testing for that. (This also makes it safe to call close() more than
once.)
XXX Worry: what if you try to read() or write() once the thing is
closed?
1997-09-03 00:09:26 +00:00
Guido van Rossum
7922bd7382
Added -X option to suppress default import of site.py. Also split the
...
usage message in *three* parts under 510 bytes, for low-end ANSI
compatibility.
1997-08-29 22:34:47 +00:00
Barry Warsaw
83b6709d8e
Swap the sense of the -X option vis-a-vis Py_UseClassExceptionsFlag so
...
that class based exceptions are enabled by default. -X disables them
in favor of the old-style string exceptions.
1997-08-29 22:20:16 +00:00
Barry Warsaw
f488af3360
Parse new command line option -X which enables exception classes.
1997-08-29 21:57:49 +00:00
Guido van Rossum
c1f088201f
Added (binaryfunc) casts to function pointers in method lists.
1997-08-28 21:21:22 +00:00
Guido van Rossum
24a49941b3
Some long variables should have been int to match the 'i' format specifier.
1997-08-28 18:11:05 +00:00
Guido van Rossum
e20aef574a
Ignore whitespace between formats (not internal to a count+format).
1997-08-26 20:39:54 +00:00
Guido van Rossum
d14c06819e
Add unsupported variable EXE which can be set to .exe on systems where
...
the executable must have that suffix. Note that there is no
corresponding support in the top-level Makefile because I'm not sure
that the install targets there make sense under these circumstances.
1997-08-22 20:53:47 +00:00
Guido van Rossum
1171ee6aaf
Added configuration tests for presence of alarm(), pause(), and getpwent()
1997-08-22 20:42:00 +00:00
Barry Warsaw
779133c707
Removed JF's dollar-Log-dollar RCS turd that caused compilation to
...
crash due to GvR's last check in message :-). Will try to convince JF
to remove all this evilness.
1997-08-21 22:36:26 +00:00
Guido van Rossum
d7a7100c99
Remove redundant decl for PyOS_InputHook.
1997-08-21 17:26:04 +00:00
Guido van Rossum
c6ef204830
Added /**/ around #end tags
1997-08-21 02:30:45 +00:00
Guido van Rossum
bae6523a75
Must remove conflicting files from archive
...
*before* adding signalmodule.o, because some ar programs
are too smart for us...
1997-08-21 02:30:20 +00:00
Guido van Rossum
6b9fdf529a
Globally renamed join() to joinpath() to avoid compilation error on Cray.
1997-08-20 23:48:16 +00:00
Guido van Rossum
725d941f0f
Renamed strndup to pystrndup, to avoid conflicting prototype
...
in GNU libc on some platforms.
1997-08-20 23:38:57 +00:00
Guido van Rossum
4f46fc6d57
When we have signalmodule.o, remove intrcheck.o as well as sigcheck.o.
1997-08-20 22:45:52 +00:00
Guido van Rossum
5b02078e31
Alas, the thread support for Tk didn't work. Withdraw it, until I
...
figure out how to do this right.
1997-08-19 01:00:50 +00:00
Guido van Rossum
25f93036bb
Moved inclusion of PURIFY in LINKCC to configure
1997-08-18 16:00:04 +00:00
Guido van Rossum
ed2554a396
Casts by Jack to shut up the Mac compiler.
1997-08-18 15:31:24 +00:00
Guido van Rossum
bad3c013d2
DeleteTimerHandler was accidentally #ifdef'ed out for macintosh with
...
Tk 8.0; this was a mistake.
1997-08-18 15:28:52 +00:00
Guido van Rossum
79fa8b0abe
When making all, don't make sharedmods. That's now called separately
...
from the toplevel Makefile. (For AIX, but doesn't hurt elsewhere.)
1997-08-18 14:23:13 +00:00
Guido van Rossum
57e846f803
Use a trick to make the test for GMP v2 to work when GMP v1 defines
...
__GNU_MP__ as empty: #if __GNU_MP__ + 0 == 2
(Untested.)
1997-08-17 19:08:33 +00:00
Guido van Rossum
607b33a1fe
Different strategy regarding whether to declare getrusage() and
...
getpagesize() -- #ifdef doesn't work, Linux has conflicting decls in
its headers. Choice: only declare the return type, not the argument
prototype, and not on Linux.
1997-08-17 16:24:30 +00:00
Guido van Rossum
53665e571f
Last minute changes for \B. AMK.
1997-08-15 15:45:25 +00:00
Guido van Rossum
7c14103d77
Keep gcc -Wall happy
1997-08-15 02:52:08 +00:00
Guido van Rossum
f84a539d38
Added std copyright notice.
1997-08-15 00:04:24 +00:00
Guido van Rossum
f1c018de87
Fixed refcount bug (thank you, Purify and AMK).
1997-08-14 21:19:13 +00:00
Jeremy Hylton
644c17d2af
Several bug fixes.
...
-- initialize length to DEFAULTALLOC and not 0
-- resize string before returning (to remove '\000' padding)
Also converted some compression routines to use PyString instead of
buffer.
1997-08-14 21:06:42 +00:00
Guido van Rossum
6d8841c079
Added a bunch of XXX comments about things I'd like to see changed...
1997-08-14 19:57:39 +00:00
Guido van Rossum
0d2390c549
Merge Mac and Windows mods (which mostly affect the same problem -- no
...
usable createfilehandler). Define HAVE_CREATEFILEHANDLER to test
later. Also other Mac specific patches by Jack.
1997-08-14 19:57:07 +00:00
Guido van Rossum
0318bd6ae6
Use _Py_re_match/search instead of re_match/search; these may become
...
different in a future version.
1997-08-14 14:35:12 +00:00
Jeremy Hylton
41b9f00e8f
Many changes.
...
Change default alloc size for uncompressing to 16K.
Remove comment about core dumps when an invalid window sizes is used.
This bug has been fixed in zlib 1.0.4.
Two new optional arguments to decompress, wbits and bufsize. wbits
specifies the window size and bufsize specifies the initial output
string size.
In decompression code -- decompress and decompressobj methods -- use a
Python string (and _PyString_Resize) to collect the uncompressed
stream. Replaces a separate buffer that was copied into a string.
Fix bug in decompress that caused it to always realloc the buffer when
it was finished decompressing.
Modernized handling of optional arguments to compressobj.
Updated doc strings.
1997-08-13 23:19:55 +00:00
Guido van Rossum
95e8053a9f
1.5a3 prerelease 1 from AMK
1997-08-13 22:34:14 +00:00
Jeremy Hylton
a74ef66ac8
Must update the available space in the output buffer after
...
realloc. (Fixed in PyZlib_unflush.)
1997-08-13 21:39:18 +00:00
Guido van Rossum
abed54ab4a
Fix bug with \< (AMK).
1997-08-13 16:35:04 +00:00
Guido van Rossum
c24f038464
Changes by AMK:
...
Removed handling of \e, \cX escapes, following a string-SIG discussion.
Fixed minor typos in re.py
re.error is now set equal to reop.error.
Move definition of constants like NORMAL and CHARCLASS into reop, which
exports them; re.py was changed to import them from reop.
Added C equivalents of _expand and expand_escape to reop, and changed
re.py to use them.
1997-08-13 03:24:53 +00:00
Guido van Rossum
52d6832554
Add syntax for hex,octal
1997-08-13 03:21:14 +00:00
Guido van Rossum
142eeb8339
cPickle release 0.3 from Jim Fulton
1997-08-13 03:14:41 +00:00
Guido van Rossum
7242905385
Megapatch for IRIX 6 by Sjoerd.
1997-08-12 14:58:54 +00:00
Guido van Rossum
de4a4ca2dd
Added buffer_info() method that returns address and length in bytes of
...
the buffer used to hold the array -- for dangerous low-level I/O.
1997-08-12 14:55:56 +00:00
Guido van Rossum
44620646fd
Renamed Py_input_hook to PyOS_InputHook.
...
Also cleaned out some CR's left by the VC++ editor.
1997-08-11 18:57:29 +00:00
Guido van Rossum
98d9d09090
Added O_BINARY and O_TEXT (for Windows).
1997-08-08 21:48:51 +00:00
Guido van Rossum
02c0467f67
Rather unsatisfactory temporary hack to get it to run
...
under WIN32 -- remove file handler interface, don't use Py_input_hook.
1997-08-07 00:12:22 +00:00
Guido van Rossum
fb84255e67
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
1997-08-06 23:42:07 +00:00
Guido van Rossum
9b5dbedf43
Attempt to import readline at interactive startup.
1997-08-05 21:34:14 +00:00
Guido van Rossum
0969d36275
New mechanism for GNU readline interface, via module
1997-08-05 21:27:50 +00:00
Guido van Rossum
7f400be210
Add pointer to new BSDDB module.
1997-08-05 02:25:24 +00:00
Guido van Rossum
668e441a86
purported linux portability patch (Oliver Andrich)
1997-08-05 02:24:57 +00:00
Guido van Rossum
5d1770ee24
Py_Cleanup() is now Py_Finalize().
1997-08-05 02:23:48 +00:00
Guido van Rossum
5c159bd855
Plug memory leak (DECREF doc string properly after inserting in dict).
1997-08-04 23:55:25 +00:00
Guido van Rossum
b02158efa3
Oops, one more checkin. Use the new tstate/interp interface.
1997-08-02 03:13:11 +00:00
Guido van Rossum
08c166152e
Add finialization routines; fixed some memory leaks related to this.
...
Reset the SIGINT handler when the finalization is invoked.
1997-08-02 03:01:42 +00:00
Guido van Rossum
05f7c50bfd
Free the malloc'ed buffer that holds the command once we're done with it.
...
Instead of calling Py_Exit(sts), call Py_Cleanup() and return sts.
1997-08-02 03:00:42 +00:00
Guido van Rossum
d0924f4585
Add a simple way to enable purify; now you can set the Make variable
...
PURIFY (e.g. in the Setup file or on the make command line) to point
to the purify command, to run purify.
1997-08-02 02:06:20 +00:00
Guido van Rossum
35d43377b4
Functionality enhancement: allow other threads to use Tk commands
...
while one thread is blocked in mainloop(). Also, handle signals (not
just interrupts) as soon as they happen.
Cleanup: remove support for Tcl/Tk versions 7.4/4.0. (I've confirmed
that it works for 7.5/4.1 and 7.6/4.2, as well as 8.0b2.)
Coding style change: instead of ``func (args)'', write ``func(args)''
everywhere.
Minor functionality change: use PyArg_ParseTuple everywhere. This
should only affect the errors reported for bad argument lists; in
particular, deletefilehandler() is much clearer about what's going
on.
(XXX Still to do: Mac and Win ports to 8.0b2.)
1997-08-02 00:09:09 +00:00
Guido van Rossum
3e819a7aa8
Compatibility with Tcl/Tk 8.0b*.
1997-08-01 19:29:02 +00:00
Guido van Rossum
f4e32c729b
Add definitions for symbolic constants LOCK_{EX,NB,SH,UN}.
1997-07-31 19:39:54 +00:00
Guido van Rossum
5ec8e4b5ff
Moved the special compile of getbuildno.o to ../Makefile.in.
...
A dummy getbuildno.o (with a number of 0) still gets built here,
to make the library complete.
1997-07-25 22:35:24 +00:00
Guido van Rossum
496f8f632b
Removed remaining support for Tk versions below 4.0.
1997-07-19 19:57:42 +00:00
Guido van Rossum
4c125700d1
Adapted to new build procedure (hopefully correct -- can't test it!).
1997-07-19 19:54:25 +00:00
Guido van Rossum
534ac094f9
Removed a bunch of extern declarations of functions that are now
...
properly declared in Python.h.
1997-07-19 19:51:43 +00:00
Guido van Rossum
f6ca6aa869
New build procedure.
1997-07-19 19:39:57 +00:00
Guido van Rossum
4c04be64b3
This is now the "real" main program -- it calls Py_Main(argc, argv)
...
which is in the library and does all the work.
1997-07-19 19:25:33 +00:00
Guido van Rossum
ed52aacb33
This is no longer the real main program; it now defines Py_Main(), so
...
it can be placed in the library.
Other, related changes:
- Moved the inspection of some environment variables to
Py_Initialize().
- Got rid of -s option.
- Moved Py_GetProgramName() and related logic to pythonrun.c; call
Py_SetProgramName() instead.
- Print the version header *after* successful initialization.
1997-07-19 19:20:32 +00:00
Guido van Rossum
75aa0d6abe
Use the new functions PyEval_AcquireThread() and
...
PyEval_ReleaseThread() (in ceval.c) to set/reset the current thread,
and at the same time acquire/release the interpreter lock.
Much saner.
1997-07-18 23:57:50 +00:00
Guido van Rossum
77eecfa94d
Patches by AMK to check that the db is still open.
1997-07-17 22:56:01 +00:00
Guido van Rossum
b8ad024a4e
Add 'return' keyword before error calls.
1997-07-17 22:55:06 +00:00
Guido van Rossum
74fb303997
Jeffrey's latests
1997-07-17 22:41:38 +00:00
Guido van Rossum
04a1d74229
Jeffrey's newest
1997-07-15 14:38:13 +00:00
Guido van Rossum
faf490898d
Reformatted.
...
Fixed some problem with uninitialized syntax tables.
Jeffrey.
1997-07-15 01:47:08 +00:00
Guido van Rossum
007c80e5b7
Added reop (moved reop and regex to non-shared section).
...
Added -I$(DBPORT) for bsddb compilation line.
1997-07-11 18:40:46 +00:00
Guido van Rossum
1243ae7f07
Allow '@' character as end of line padding in uuencode format.
...
Not sure why this is generated, but this fixes a problem with a
particular file that was received with the following final line:
F-WE<-*A5]AY]%7>8'&!!(_Y<F*55_"*%46"<OFG=>_5(F/\'``!@
1997-07-11 18:36:28 +00:00
Guido van Rossum
63e18195b8
New version from Jeffrey after I complained about some glaring bugs.
1997-07-11 11:08:38 +00:00
Guido van Rossum
db25f32849
New versions straight from Jeffrey Ollie's web site
1997-07-10 14:31:32 +00:00
Barry Warsaw
3b1c89e244
MACDEPPATH: Remove `sharedmodules' from default value of this variable
...
since calculate_path() in getpath.c will automatically add this.
Including this here will put the sharedmodules directory on sys.path
twice.
1997-06-13 22:03:23 +00:00
Guido van Rossum
295b8e5608
Add sys/types.h include for pid_t when threading.
1997-06-06 21:16:41 +00:00
Roger E. Masse
0318fd6050
Moved the definition of posix_times__doc__ to outside of #ifdef HAVE_TIMES
...
so that MSVC 4.2 doesn't complain under NT.
1997-06-05 22:07:58 +00:00
Guido van Rossum
97b5457467
Small changes (casts etc.) by Jack, for Mac compilation.
1997-06-03 22:21:47 +00:00
Guido van Rossum
3c540307af
Doc strings (AMK).
1997-06-03 22:21:03 +00:00
Guido van Rossum
ec4f4ac8c0
Added doc strings (Neil Schemenauer).
1997-06-02 22:20:51 +00:00
Guido van Rossum
21f8497a46
Use string.h, not strings.h
1997-06-02 22:18:31 +00:00
Guido van Rossum
91ba64ddd9
socket_type -> SocketType
1997-06-02 22:18:09 +00:00
Guido van Rossum
24995b99e1
array_type -> ArrayType
1997-06-02 22:17:49 +00:00
Guido van Rossum
290283bb39
Mac hack to make select() work again...
1997-06-02 22:16:43 +00:00
Fred Drake
69b9ae4e0b
Add doc string to type object.
1997-05-23 04:04:17 +00:00
Guido van Rossum
c8b6df9004
PyObject_Compare can raise an exception now.
1997-05-23 00:06:51 +00:00
Guido van Rossum
0b82fe773f
Partial(?) 64bit patch (AMK).
1997-05-22 20:24:07 +00:00
Guido van Rossum
b9f866cb7c
Enable putenv and waitpid (== wait4) for NeXT.
1997-05-22 15:12:39 +00:00
Guido van Rossum
b6190d35fc
Defined array.array_type, the type object.
1997-05-22 14:56:36 +00:00
Guido van Rossum
3b4b6fc602
Add socket.socket_type, as discussed on c.l.p.
1997-05-21 14:37:37 +00:00
Guido van Rossum
49bff65deb
Include config.h so it can define const away for K&R.
1997-05-20 22:40:26 +00:00
Guido van Rossum
7929c6fe95
Make delimiter and separator static for K&R C.
1997-05-20 22:38:21 +00:00
Guido van Rossum
b24c9ea514
fixed ratecv to continue working if product of rates is bigger than 32 bits
...
(Sjoerd)
1997-05-20 15:59:35 +00:00
Guido van Rossum
511f16357c
Removed MetroWerks workaround, replaced by defines in mymath.h (Jack)
1997-05-20 15:59:04 +00:00
Guido van Rossum
19a6c8acb8
workaround for Mac MSL header definitions of TRUE and FALSE (Jack)
1997-05-20 15:58:36 +00:00
Guido van Rossum
fe4dfc7ce3
Add platform to welcome message.
1997-05-19 18:33:01 +00:00
Guido van Rossum
5a37d7d150
Renamed strndup to my_strndup to avoid conflict witth GNU libc.
1997-05-16 16:36:52 +00:00
Guido van Rossum
1a747f894a
Address the following problem on DOS and Win 3.1, reported by Jim
...
Ahlstrom:
Arraymodule.c has static functions H_getitem and h_getitem, and a
few others which differ only in case. These are a problem on
Windows 3.1, since a case-sensitive link causes Winsock to fail
(hey, it's not my fault). Please convert H_etc to HH_etc etc.
1997-05-16 16:21:38 +00:00
Guido van Rossum
fe28fa05e9
Remove the last three uses of PyArg_GetInt() from the source.
1997-05-15 19:09:26 +00:00
Guido van Rossum
1cbdfb9187
Add sections for PIL (Fred Lundh).
1997-05-14 19:22:11 +00:00
Guido van Rossum
fc4f503762
Fix showstopping bug (^ wouldn't match after \n). Jeffrey Ollie.
1997-05-14 18:27:51 +00:00
Guido van Rossum
34570d7669
A new set of symbols. Hopefully this will be sufficient, I have no
...
idea how this is used, really.
1997-05-14 17:59:37 +00:00
Guido van Rossum
445efa9602
Add a cast to a malloc to shut up the DEC Unix compiler.
1997-05-14 15:30:32 +00:00
Guido van Rossum
7d3246d0e4
Keep gcc -Wall happy.
1997-05-13 19:19:41 +00:00
Guido van Rossum
de8d6d73fb
Use compile-time test for 64-bit hardware instead of run-time test.
...
This silences some compilers.
1997-05-13 18:00:44 +00:00
Guido van Rossum
2ef21efad3
Removed symbols that are no longer defined.
...
Still have to find a way to add symbols that *are* defined...
1997-05-13 17:56:38 +00:00
Guido van Rossum
4917d93ca9
Keep picky compilers happy.
1997-05-13 17:53:34 +00:00
Guido van Rossum
d77636216c
Another change suggested by Donn Cave -- forget "step 5", which
...
searches /usr/local, /usr and /.
1997-05-12 20:53:23 +00:00
Guido van Rossum
573a24a4f7
Fix problem reported by Donn Cave: if VPATH is an absolute path, it
...
would always be a hit. Prevent this by only using VPATH if we know
we are in the build directory.
1997-05-12 20:49:39 +00:00
Guido van Rossum
4a807f5939
Fix big ineficciency in regobj.search/match (introduced by Barry in an
...
otherwise laudible attempt to rationalize the argument parsing): it
would save a copy of the original string instead of a reference to it.
Go back to saving a reference, but keep the "s#" format (using a hack
that involves two argument parsing steps, first using "O", then using
"s#").
1997-05-12 16:04:09 +00:00
Guido van Rossum
004c1e1d07
Latest from Jeffrey Ollie.
...
Infinite failure stack, some bugs fixed (fastmap, star_jump, register bug).
1997-05-09 02:35:58 +00:00
Guido van Rossum
db4a629ba0
Avoid warning from gcc on Linux about dropping const.
1997-05-09 02:17:12 +00:00
Guido van Rossum
ee2373b930
Oops, missed some renamings.
1997-05-07 23:51:07 +00:00
Guido van Rossum
b05a5c7698
Instead of importing graminit.h whenever one of the three grammar 'root'
...
symbols is needed, define these in Python.h with a Py_ prefix.
1997-05-07 17:46:13 +00:00
Guido van Rossum
8813b58ffa
On popular demand, re-enable the readline event hook.
1997-05-07 17:42:41 +00:00
Guido van Rossum
aa948df877
In makesockaddr(), if we don't know the address family, don't raise an
...
exception -- return it as a tuple. Seems useful in promiscuous mode.
1997-05-07 17:41:48 +00:00
Guido van Rossum
fdf95dd525
Checkin of Jack's buffer mods.
...
Not really checked, but didn't fail any tests either...
1997-05-05 22:15:02 +00:00
Guido van Rossum
a027efa5bf
Massive changes for separate thread state management.
...
All per-thread globals are moved into a struct which is manipulated
separately.
1997-05-05 20:56:21 +00:00
Guido van Rossum
d3d6f8ffad
Add -lgl and -lm for imgfile. Better way to configure zlib.
1997-05-05 20:48:00 +00:00
Guido van Rossum
03ef647847
Add PYTHONHOME to the usage message.
1997-04-30 19:48:59 +00:00
Guido van Rossum
ebde385fc0
One copy is enough; we already had resource.c.
1997-04-30 19:43:15 +00:00
Guido van Rossum
1ed5e57684
Keep gcc -Wall happy.
1997-04-29 21:34:16 +00:00
Guido van Rossum
87490eb3b0
Renamed inittab.
1997-04-29 20:31:59 +00:00
Guido van Rossum
e2b4f0906d
Track updates in rename2.h.
1997-04-29 16:27:09 +00:00
Guido van Rossum
8105821bf5
Added -I$(srcdir) to line for glmodule so we can move cgensupport.h here.
1997-04-29 16:07:45 +00:00
Guido van Rossum
ba9d7c5612
Change the exception objects to have the string value "os.error"
...
instead "posix.error" or "nt.error".
1997-04-29 15:49:54 +00:00
Guido van Rossum
8ec9e639ab
Adapt Mac specific code to new universal headers (I think -- this is
...
Jack's code).
1997-04-29 15:49:04 +00:00
Guido van Rossum
dfed920e51
Hm. What was previously checked in was the edited *output* of the old
...
cgen.py. Now that cgen.py and cstubs have been quickly renamed, check
in the actual output. This has some "old-style" names left in
(getilongarg etc.) but these are now take care of by macros in
cgensupport.h (which is now specific to glmodule.c).
1997-04-29 15:46:43 +00:00
Guido van Rossum
3837de00a9
Moved here from ../Python and quickly renamed.
1997-04-29 15:43:55 +00:00
Guido van Rossum
4f1099fcf4
Added cgensupport.o.
1997-04-29 15:41:53 +00:00
Guido van Rossum
7fa3b75f28
Added cgensupport.c to Setup line for gl module.
...
Addeed Andrew Kuchling's zlib module.
1997-04-29 15:41:26 +00:00
Guido van Rossum
9e3a812306
Added Jeremy's resource module.
1997-04-29 15:39:45 +00:00
Guido van Rossum
0a3eaf0838
Quickly renamed.
1997-04-29 15:39:28 +00:00
Guido van Rossum
fb221562a3
Added Andrew Kuchling's zlib module.
1997-04-29 15:38:09 +00:00
Guido van Rossum
1818b7702b
Moved rename2's macros relevant to this module here and added comment
...
about the file's obsolescence.
1997-04-29 15:35:28 +00:00
Guido van Rossum
b31c7dcb43
OK, I lied. On Windows, _IOLBF seems to be the same as full
...
buffering, so to get the normal behavior back, I set it to
unbuffered.
1997-04-11 22:19:12 +00:00
Guido van Rossum
2a212191f8
Change in when and how stdin and stdout are set to line-buffering.
...
This used to be done whenever stdin was interactive. Now we only do
it when the -i flag is given. Also (and this is the real reason for
this fix) we explicitly allocate a buffer -- this seems to be
necessary on Windows.
1997-04-11 21:57:53 +00:00
Guido van Rossum
7844e38a98
Keep Microsoft VC happy.
1997-04-11 20:44:04 +00:00
Guido van Rossum
6bf62dad9e
Keep gcc -Wall and Microsoft VC happy.
1997-04-11 20:37:35 +00:00
Barry Warsaw
90126035ca
Removed two unused static function: string_addsep() and
...
string_append(). These must be artifacts of GvR's rewrite.
Fixed some typos in the leading comment (and re-filled the
paragraphs).
Hope you don't mind, Guido.
1997-04-11 20:27:03 +00:00
Guido van Rossum
3dc35b0c66
My own patch: support writable 'softspace' attribute.
1997-04-11 19:56:06 +00:00
Guido van Rossum
fd16d9438d
(Jack:) fopen arg typo (?) "rw" changed to "rb".
1997-04-11 19:12:20 +00:00
Guido van Rossum
fb421c82a9
(Jack:) Mac only: get GUSI errno.h values too.
1997-04-11 19:11:25 +00:00
Guido van Rossum
3d82972b85
Remove the Emacs shell-script line. It's not a shell script.
1997-04-11 18:42:45 +00:00
Guido van Rossum
97227814a9
The default path components are now all relative instead of absolute paths.
...
This completes the getpath.c checkin. Note that to enable this in an
existing build tree, you'll have to edit your Setup and Setup.in file
to remove the $(DESTLIB) from all the PATH variable definitions.
1997-04-11 17:19:54 +00:00
Guido van Rossum
305e5d0d4f
Completely revamped the way the default path is constructed.
...
Idea and first three implementation rounds due to Barry -- after that
I spent another day on it, hopefully it's enough for now :-)
(Wait for the checkin to Setup.in.)
1997-04-11 17:18:45 +00:00
Guido van Rossum
ec61b77216
Pass VERSION and VPATH into getpath.c.
1997-04-11 17:04:49 +00:00
Guido van Rossum
1e0b19e9e4
Bugfix by Sjoerd:
...
/* x_ocount is in bytes, wheras play.samples is in frames */
/* we want frames */
1997-04-11 15:23:52 +00:00
Guido van Rossum
644a12b00c
Tweaks to keep the Microsoft compiler quier.
1997-04-09 19:24:53 +00:00
Guido van Rossum
d385d59c09
Give PyErr_Format a new name and make it static.
1997-04-09 17:47:47 +00:00
Guido van Rossum
60456fdcfe
Jim Fulton's version 2.2.
1997-04-09 17:36:32 +00:00
Guido van Rossum
154417e27b
Unknown changes by Jim Fulton.
1997-04-09 17:35:33 +00:00
Guido van Rossum
d641d67b89
New version by Sjoerd, with support for IRIX 6 audio library.
1997-04-03 17:06:32 +00:00
Guido van Rossum
101923bba6
Added replace() implementation by Perry Stoll (debugged and reformatted by me).
1997-04-02 06:11:18 +00:00
Guido van Rossum
3917c22125
Win32 precision clock() -- Mark Hammond.
1997-04-02 05:35:28 +00:00
Guido van Rossum
9bf8445541
Support include statement :-(
1997-04-02 05:33:00 +00:00
Guido van Rossum
925e547fcc
Support assert stmt.
1997-04-02 05:32:13 +00:00
Guido van Rossum
9199f62aa1
remove ConflictError
1997-03-31 17:19:05 +00:00
Roger E. Masse
e5a9c8fa31
As per GvR recomendation, added support for a 'sync' attribute for the
...
GDBM module.
1997-03-25 17:39:56 +00:00
Guido van Rossum
45b83915f8
New form of PyFPE_END_PROTECT macro.
1997-03-14 04:32:50 +00:00
Guido van Rossum
1aeb1047ba
Include setjmp.h so it compiles if WANT_SIGFPE_HANDLER is undefined.
1997-03-14 04:32:25 +00:00
Guido van Rossum
7b7c578616
Add optional 4th argument to [r]find and [r]index (end of slice).
1997-03-14 04:13:56 +00:00
Guido van Rossum
159b77fd5e
Add Emacs shell-script directive, SunPro version#, and fix typo
1997-03-04 23:44:15 +00:00
Guido van Rossum
53bb550a5f
Solaris and IRIX specific instructions for fpectl.
1997-03-04 23:36:04 +00:00
Guido van Rossum
7614da6b87
Add -O option which sets Py_OptimizeFlag to avoid emitting SET_LINENO.
...
Fred: sorry, I hadn't checked these changes in. This should fix your
tracebacks!
1997-03-03 19:14:45 +00:00
Guido van Rossum
5680906cdb
Change all three fopen calls to use binary mode.
1997-02-21 15:19:03 +00:00
Guido van Rossum
05bc4af47d
Lee's next version. Careful: this now dumps core for me on SGI IRIX 5.3.
...
Lee is wondering whether to withdraw his patchs. Sigh.
1997-02-21 01:22:47 +00:00
Barry Warsaw
909d7c3284
regex_get_syntax(): New module function exported to Python.
1997-02-18 18:48:50 +00:00
Guido van Rossum
10efb05d51
Add fpectl and fpetest modules.
1997-02-14 23:03:31 +00:00
Guido van Rossum
52fa3a6909
Changes for Lee Busby's SIGFPE patch set.
...
Two new modules fpectl and fpetest.
Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros.
1997-02-14 22:59:58 +00:00
Guido van Rossum
129e91aa77
Add parentheses around && within || as gcc -Wall advises.
1997-02-14 21:00:50 +00:00
Guido van Rossum
775af91911
My version of Lee Busby's patches to make '-i' pretend stdin is a tty
...
even if it isn't. Changes:
- set the global flag Py_InteractiveFlag when -i is given
- call Py_FdIsInteractive() instead of isatty()
- make stdin unbuffered, too, when using -u
- make stdin and stdout line buffered, when stdin is interactive and not -u
Note that setting the environment variable PYTHONINSPECT does not have
these extra effects of -i. (Should it?)
Unlike Lee's changes, I don't set change the prompt to go to stderr
when -i is given.
1997-02-14 19:50:32 +00:00
Guido van Rossum
babacb0369
Added .cxx and .cpp to extensions recognized as source files.
1997-02-14 16:44:04 +00:00
Guido van Rossum
c1cc8ab1a4
djgpp fix (SIGMAX).
1997-02-14 16:35:36 +00:00
Guido van Rossum
a78bfe1985
Issue a more meaningful error if strftime keeps returning a NULL pointer.
...
Run the loop up to and including 8k.
1997-02-14 16:35:10 +00:00
Guido van Rossum
1851a67695
Changes by Sjoerd (reformatted).
...
add(): better handling of overflow (substitute maxval instead of
throwing away higher order bits).
ratecv(): some bugfixes, Sjoerd says.
1997-02-14 16:14:03 +00:00
Barry Warsaw
5ed19dcc0e
posix_execve(): Accept any mapping protocol object for the env
...
argument, not hardwired to a dictionary.
1997-01-29 15:08:24 +00:00
Guido van Rossum
47110d7f44
Change bsddbmodule.o -> bsddbmodule.c.
1997-01-28 02:21:56 +00:00
Guido van Rossum
bd5f193ee5
Added LDLAST variable, substituted by configure script, for the final
...
argument to the linker (required for DEC Alpha threads).
1997-01-28 02:21:24 +00:00
Guido van Rossum
463e55a916
Two more arguments to newcodeobject -- first lineno and lineno table.
1997-01-24 03:58:52 +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
f631d13ac7
Bump install version to 1.5.
1997-01-22 03:45:38 +00:00
Guido van Rossum
fcdd0e40a4
Arrange for PyErr_CheckSignals() to be called via Py_AddPendingCall().
...
This avoids having to call sigcheck() (the same routine by its old
name :-) in the ticker code in ceval.c's main interpreter loop.
1997-01-21 06:13:09 +00:00
Guido van Rossum
2fff2e6b05
work build# into version string
1997-01-20 18:34:26 +00:00
Guido van Rossum
3e7ae7ab17
Fix the _setmode() patch for MS_WINDOWS: include <fcntl.h> and use
...
fileno(std*).
1997-01-17 22:05:38 +00:00
Guido van Rossum
e9fd28dae5
Add stacksize argument to new.code().
1997-01-17 21:12:06 +00:00
Roger E. Masse
c905fffa15
Added Sjoerd's submitted 'ratecv' method. Made corrections for new names.
...
Reindented.
1997-01-17 18:12:04 +00:00
Roger E. Masse
ed648a25bd
Renamed, but not tested. Guido will you try your test script on this?
1997-01-17 16:08:55 +00:00
Roger E. Masse
e474fb36ab
Renamed.
1997-01-17 16:00:02 +00:00
Barry Warsaw
e886ea916e
(puremodule.c): New module which exports the Purify and Quantify C API
...
to Python. Minimal documentation is included in comments at the top
of the file, and in the Misc/PURIFY.README file. Note that this
module must be statically linked since Pure doesn't provide shared
stubs libraries.
(Setup.in): Added commented template for pure module
(syslogmodule.c): ins() function wasn't declared static.
1997-01-17 00:01:33 +00:00
Roger E. Masse
d9240d19b2
Already renamed. Indented.
1997-01-16 22:05:33 +00:00
Roger E. Masse
5f4ce18898
Renamed.
1997-01-16 17:10:22 +00:00
Barry Warsaw
47d3500787
set_key(): Use Py_CHARMASK macro to get the character from the array
...
unsigned. This fixes the 8bit-char-in-key platform incompatibility.
I also removed the old backwards compatibility code, and the commented
lisp rotor code. I retained the lisp docstrings as comments preceding
each function.
1997-01-16 16:49:44 +00:00
Barry Warsaw
fa701a88ab
reformatted
...
memory leak in Tkapp_(Create|Delete)FileHandler plugged.
standard eyeballing
1997-01-16 00:15:11 +00:00
Barry Warsaw
9a0313cd62
Removed _xdr module
1997-01-14 18:20:26 +00:00
Barry Warsaw
93d29b6895
Eliminated gcc -Wall complaints:
...
- Quieted gcc -Wall by removing unused local variables.
- Added some choice parentheses around assignments in conditional
tests.
- Removed an unused (and seemingly unreachable) err label in
load_short_binstring().
- in Unpickler_load(), removed \. in string format.
- init_stuff() was declared to return an int, but had these
problems:
- it was returning NULL instead of 0 or 1 in some cases
- it was falling of the end of the routine without returning
anything
- the call of init_stuff() in initcPickle() was never checking
the return value anyway.
I changed all this by returning 1 in the case of errors, 0 when
no error occurred. Then in initcPickle(), if init_stuff()
returns non-zero, I call Py_FatalError().
Suppressing my urge to reformat according to Python coding standards!
:-)
1997-01-14 17:45:08 +00:00
Barry Warsaw
61a63e152d
Quieted gcc -Wall by removing unused local variables.
...
Suppressing my urge to reformat according to Python coding standards!
:-)
1997-01-14 17:38:28 +00:00
Barry Warsaw
54dbf02da2
Quieted gcc -Wall by removing unused local variables.
1997-01-14 17:37:32 +00:00
Barry Warsaw
845a4c6bb7
Formatting.
1997-01-14 17:36:36 +00:00
Barry Warsaw
41317d120d
Obsolete, now that xdrlib.py uses the new-and-improved struct module.
1997-01-14 17:34:06 +00:00
Barry Warsaw
58d40a7400
Renamed.
1997-01-13 22:57:42 +00:00
Barry Warsaw
4a6cf4167b
Formatting, and minor error detection
1997-01-13 22:44:55 +00:00
Barry Warsaw
64278cf5f7
initthread(): Removed extraneous Py_INCREF(ThreadError)
1997-01-13 22:09:43 +00:00
Guido van Rossum
9c6ba5e901
Fix leak involving BuildValue("...O...").
1997-01-12 20:02:04 +00:00
Guido van Rossum
ee88ff9d05
Add entries for cStringIO and cPickle
1997-01-11 19:29:30 +00:00
Guido van Rossum
f22d7e2c69
On Windows, -u implies binary mode for stdin/stdout
...
(as well as unbuffered stdout/stderr).
1997-01-11 19:28:55 +00:00
Barry Warsaw
5709dcfaec
The usual return-value and memory management checks. I'm not planning
...
a test for this module though (it does compile at least on Solaris
2.5)
1997-01-10 18:42:18 +00:00
Barry Warsaw
43a476ac00
Formatting changes, plus memory management in initsyslog()
1997-01-09 23:51:21 +00:00
Barry Warsaw
73a75eb79b
initsignal(): Py_DECREFs really should be Py_XDECREFs in case the
...
PyInt_FromLong's failed.
1997-01-09 23:50:28 +00:00
Barry Warsaw
42185a2d7a
Plugged a couple of potential return value problems, memory leaks, and
...
descriptor leaks.
1997-01-09 22:29:57 +00:00
Barry Warsaw
2dc8c2c26b
Primarily formatting changes, but I also plugged a couple of potential
...
return value problems, memory leaks, and descriptor leaks.
1997-01-09 22:29:12 +00:00
Barry Warsaw
4bc9d39560
Nailed a couple of memory leaks, caught by Purify.
1997-01-09 22:22:05 +00:00
Guido van Rossum
2f4caa4c48
cPickle, version 0.1.
1997-01-06 22:59:08 +00:00
Guido van Rossum
55702f8d6a
Jim's latest version.
1997-01-06 22:57:52 +00:00
Barry Warsaw
d4ff1b908b
New strop_joinfields implementation, highly optimized for Lists. All
...
other sequences use the Sequence protocol from the abstract API. The
algorithm has changed so that only one pass through the sequences are
made.
1997-01-06 22:48:32 +00:00
Guido van Rossum
e0548b8da7
Rewrote translate() as follows:
...
- 'delete' is a C++ keyword; use 'del_table' instead
- apply Py_CHARMASK() to del_table[i] before using it as an index
*** this fixes a bug that was just reported on the list ***
- if the translation didn't make any changes, INCREF and return
the original string
- when del_table is empty or omitted, don't copy the translation
table to a table of ints (should be a bit faster)
Rewrote maketrans() to avoid copying the table (2-3% faster).
1997-01-06 16:50:09 +00:00
Barry Warsaw
04d2d15b6b
strop_upper(), strop_lower(): shared code version caused to much of a
...
performance hit. Urg. Reverted.
strop_joinfields(): re-instate optimizations for lists and tuples, but
support arbitrary other kinds of sequences as well.
1997-01-03 23:46:51 +00:00
Roger E. Masse
bf0c3ca9bd
Renamed but not well tested.
1997-01-03 23:00:51 +00:00
Barry Warsaw
e8fc29cde7
Several changes:
...
- split_whitespace(): slightly better memory ref handling when errors
occur.
- strop_joinfields(): First argument can now be any sequence-protocol
conformant object.
- strop_find(), strop_rfind(): Use PyArg_ParseTuple for optional
arguments
- strop_lower(), strop_upper(): Factor logic into a common function
do_casechange().
- strop_atoi(), strop_atol(): Use PyArg_ParseTuple.
- strop_maketrans(): arguments used to be optional, although the
documentation doesn't reflect this. Make the source conform to the
docs. Arguments are required, but two empty strings will return the
identity translation table.
- General pass fixing up formatting, and checking for return values.
1997-01-03 22:45:34 +00:00
Roger E. Masse
a2a8b27221
Renamed, but not throughly tested.
1997-01-03 22:40:34 +00:00
Roger E. Masse
7ba4c07768
Renamed, but untested.
1997-01-03 22:17:11 +00:00
Guido van Rossum
9bc7e0af50
Added PyLong*UnsignedLong and PyCobject interfaces.
1997-01-03 21:05:44 +00:00
Roger E. Masse
eaa6e1102f
Renamed, reindented. (was already partially complete)
1997-01-03 19:26:27 +00:00
Guido van Rossum
549ab711aa
Add new formats B, H, I, L for unsigned data types (analogous to the
...
recent changes in the struct module).
1997-01-03 19:09:47 +00:00
Guido van Rossum
6c87ecaff1
Changed the ``add/sub_offset'' hacks for dealing with C's unsigned
...
int/long types, and use the new PyLong_FromUnsignedLong() and
PyLong_AsUnsignedLong() interfaces instead.
Semantic change: the 'I' format will now always return a long int.
1997-01-03 19:08:16 +00:00
Roger E. Masse
5b0eba3ced
Reindented.
1997-01-03 18:51:01 +00:00
Barry Warsaw
752300bbdf
Check of return values and proper error handling.
1997-01-03 17:18:10 +00:00
Guido van Rossum
b9d338cbfb
Fill pad bytes with zeros (fixing a bug dating from the very first version!).
1997-01-03 15:40:33 +00:00
Barry Warsaw
b9a781e177
Scratch the ears of gcc -Wall.
1997-01-03 00:26:28 +00:00
Barry Warsaw
929711765e
Several changes:
...
- Conform to standard Python C coding styles.
- All static symbols were renamed and shorted.
- Eyeballed all return values and memory references.
- Fixed a bug in signal.pause() so that exceptions raised in signal
handlers are now properly caught after pause() returns.
- Removed SIGCPU and SIGFSZ. We surmise that these were typos for the
previously missing SIGXCPU and SIGXFSZ.
1997-01-03 00:14:25 +00:00
Guido van Rossum
4ccc531f34
Ok, ok, I've fixed gradual underflow on packing too.
...
Still don't know what to do with Inf/NaN, so I raise an exception on
pack(), and something random decided by ldexp() will happen on
unpack().
1997-01-02 23:23:20 +00:00
Guido van Rossum
07ef655222
Oops -- unpack float/double didn't do the right thing if e==0.
1997-01-02 22:31:07 +00:00
Guido van Rossum
74679b455f
Support float and double in non-native formats.
...
These use the ANSI/IEEE standard, which is also used by XDR;
so the _xdr module may become obsolete.
1997-01-02 22:21:36 +00:00
Barry Warsaw
9e3fceb5b3
rotorobj_setkey(): A single string argument is now required (i.e. no
...
long optional with nearly-no-op missing).
1997-01-02 20:36:36 +00:00
Guido van Rossum
60c50614e1
Added better handling of unsigned longs -- a Python long returned by
...
unpack('L', ...) is now acceptable to pack('L', ...).
1996-12-31 16:29:52 +00:00
Guido van Rossum
3aa27fd315
Fix the first bugs... treatment of 0 count was wrong, and memchr()
...
should be memset().
1996-12-31 02:10:45 +00:00
Guido van Rossum
f7e6b4b388
Pretty much rewritten to fulfull several long-standing wishes:
...
-- The whole implementation is now more table-driven.
-- Unsigned integers. Format characters 'B', 'H', 'I' and 'L'
mean unsigned byte, short, int and long. For 'I' and 'L', the return
value is a Python long integer if a Python plain integer can't
represent the required range (note: this is dependent on the size of
the relevant C types only, not of the sign of the actual value).
-- A new format character 's' packs/unpacks a string. When given a
count prefix, this is the size of the string, not a repeat count like
for the other format characters; e.g. '10s' means a single 10-byte
string, while '10c' means 10 characters. For packing, the string is
truncated or padded with null bytes as appropriate to make it fit.
For unpacking, the resulting string always has exactly the specified
number of bytes. As a special case, '0s' means a single, empty
string (while '0c' means 0 characters).
-- Various byte order options. The first character of the format
string determines the byte order, size and alignment, as follows:
First character Byte order size and alignment
'@' native native
'=' native standard
'<' little-endian standard
'>' big-endian standard
'!' network (= big-endian) standard
If the first character is not one of these, '@' is assumed.
Native byte order is big-endian or little-endian, depending on the
host system (e.g. Motorola and Sun are big-endian; Intel and DEC are
little-endian).
Native size and alignment are determined using the C compiler's sizeof
expression. This is always combined with native byte order.
Standard size and alignment are as follows: no alignment is required
for any type (so you have to use pad bytes); short is 2 bytes; int and
long are 4 bytes. In this mode, there is no support for float and
double.
Note the difference between '@' and '=': both use native byte order,
but the size and alignment of the latter is standardized.
The form '!' is available for those poor souls who can't remember
whether network byte order is big-endian or little-endian.
There is no way to indicate non-native byte order (i.e. force
byte-swapping); use the appropriate choice of '<' or '>'.
1996-12-31 01:41:25 +00:00
Roger E. Masse
fbd1d74286
Renamed.
...
However: "cgensupport.h" is still present... otherwise I get
maaaany type errors... not sure if this needs more attention.
1996-12-24 19:39:23 +00:00
Barry Warsaw
aeb207c6b6
Reworked to check for memory problems (one potential found),
...
non-checked error return values, and where appropriate,
PyArg_ParseTuple() style argument parsing.
I also changed some function names and converted all malloc/free calls
to PyMem_NEW/PyMem_DEL.
Some stylistic changes and formatting standardization.
1996-12-23 23:36:24 +00:00
Roger E. Masse
7f33e403a4
Renamed.
1996-12-20 21:56:08 +00:00
Barry Warsaw
c357325663
Several changes. Test program to follow.
...
- Where optional arguments were being used, converted to
PyArg_ParseTuple() style instead of nested PyArg_Parse() style.
- Check for and handle many potential error conditions that were never
being tested.
- internal reg_* functions renamed to regobj_* (makes it easier to
figure out which are global regex functions and which are for regex
objects).
- reg_group (now regobj_group) was quite extensively reworked. it no
longer recurses to do its job (by factoring core functionality into
a separate function that knows about string and integer indexes).
- some minor formatting fixes.
- regex_set_syntax() now invalidates the cache. Without this change
(in the example below), the second search would produce different
output depending on whether the first search were performed or not
(since performing the first search would cache the compiled object
with RE_SYNTAX_EMACS, causing the second test to unexpectedly fail).
regex.search('(a+)|(b+)', 'cdb')
prev = regex.set_syntax(RE_SYNTAX_AWK)
regex.search('(a+)|(b+)', 'cdb')
1996-12-20 21:56:07 +00:00
Roger E. Masse
a141f8a31a
Renamed.
1996-12-20 20:50:39 +00:00
Barry Warsaw
4a34209468
1. Export open(2) flag constants for every defined constant
...
2. Reworked error checking in initposix() and initnt().
1996-12-19 23:50:02 +00:00
Barry Warsaw
bab218e420
Minor formatting changes.
1996-12-19 22:22:32 +00:00
Barry Warsaw
43d68b8fb0
Minor formatting changes.
1996-12-19 22:10:44 +00:00
Guido van Rossum
25405c786b
Added the new getprotobyname() call to the module overview at the top.
1996-12-19 16:42:52 +00:00
Guido van Rossum
3901d85277
Added getprotobyname() interface.
1996-12-19 16:35:04 +00:00
Roger E. Masse
20c6381856
Removed references to getdoublearg and get2doublearg rename macros and
...
substituted the appropriate PyArg_Parse calls. Retested. All appears well.
1996-12-18 21:59:01 +00:00
Roger E. Masse
ec0b4af3d4
Eradicated all references to getintarg and getstrarg and substituded the
...
proper functions as defined in rename2.h. Thanks Barry!
1996-12-18 20:07:39 +00:00
Roger E. Masse
cfe3b61c02
Opps, left out two defines needed for argument parsing.
1996-12-18 19:56:48 +00:00
Barry Warsaw
19f61ae196
Tabification changes only; the module was already newly named.
1996-12-18 19:50:00 +00:00
Roger E. Masse
b2b44e5b8a
Renamed.
1996-12-18 19:37:32 +00:00
Guido van Rossum
2e6313930e
Added Jeremy's resource module.
1996-12-18 18:37:27 +00:00
Guido van Rossum
4a4880966b
Correct *another* mistake (initmath() always fell through to fatal error).
...
Watch it, Barry! :-)
1996-12-18 14:14:33 +00:00
Guido van Rossum
4c4cbf397b
Correct 1-char typo / syntax error.
1996-12-18 14:12:22 +00:00
Guido van Rossum
c88c9cb23f
Corrected two errors introduced by the renaming (and the subsequent
...
style corrections, I presume), found by Jack. Added warning that this
has not been tested (Jack could only compile and link it).
1996-12-17 20:43:55 +00:00
Roger E. Masse
b15bef85a7
Renamed in a grand-ee-ous way!
1996-12-17 19:55:33 +00:00
Roger E. Masse
4ca4b07516
Opps, left in a /*#include "modsupport.h"*/
1996-12-17 17:46:28 +00:00
Roger E. Masse
919213a098
Grandly renamed.
1996-12-17 17:42:22 +00:00
Guido van Rossum
4004e21484
Another fix for Split() -- don't refuse {"} but turn it into ".
...
This is needed because if a configure option has " as its value,
it will be rendered as {"}; after stripping one level of quoting it's
just ", on which splitlist will barf.
1996-12-17 01:25:36 +00:00
Guido van Rossum
0f868375ff
Check errors returned by recursive call to Split().
1996-12-17 01:02:18 +00:00
Barry Warsaw
fc93f75da7
Better error checking in initmath().
1996-12-17 00:47:03 +00:00
Barry Warsaw
d0c1042ff2
Renamed.
1996-12-17 00:05:22 +00:00
Barry Warsaw
10f124c951
Updated to standard Python C coding style, and fixed a few error
...
checking nits.
1996-12-17 00:01:40 +00:00
Barry Warsaw
14ed5fb1ec
initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions for
...
SIGCPU and SIGFSZ but we're (Jeremy and I) are actually unsure whether
these were typos or if there are systems that use these alternate
names. We've checked Solaris, SunOS, and IRIX; they contain only the
SIGX* names.
1996-12-16 20:24:22 +00:00
Barry Warsaw
529fcfe31f
list2set(): correct return value (an int, not a PyObject*).
1996-12-16 18:15:34 +00:00
Roger E. Masse
81a6fe9b98
Removed a #inlclude <errno.h> since it's implied with "Python.h"
1996-12-13 23:29:09 +00:00
Barry Warsaw
24c4b3d4e8
list2set(): PyList_GetItem could fail.
1996-12-13 23:22:42 +00:00
Roger E. Masse
0e12032748
Renamed.
1996-12-13 20:33:44 +00:00
Guido van Rossum
4e7f62229e
Get rid of it -- use bsddb!
1996-12-13 16:24:06 +00:00
Roger E. Masse
bd4b961a0d
Opps, fixed a couple of newly introduced wrapping problems.
1996-12-13 15:59:22 +00:00
Roger E. Masse
e7ee8c3753
Reindented via GvR recomendation ala Bwarsaw cppy-style.el
1996-12-13 15:55:22 +00:00
Guido van Rossum
fbcfd52a9a
Added the example "thin ice" from the extensions manual.
1996-12-13 02:57:25 +00:00
Barry Warsaw
f630f6b93d
Renamed, and scrutinized for missed potential error conditions.
...
Alas, I don't have an Indigo, so I could not even compile this.
1996-12-13 01:24:29 +00:00
Barry Warsaw
8496d39478
Renamed, however there is no test case. I did test some of the module
...
out manually, and it does compile, but I'm not sure how to write a
useful portable test case. Maybe later...
1996-12-13 00:11:04 +00:00
Barry Warsaw
30695fa3cd
Renamed.
1996-12-12 23:32:31 +00:00
Barry Warsaw
c2feec3378
Renamed, but *not* tested or compiled. I don't even have the STDWIN
...
library.
1996-12-12 22:48:20 +00:00
Barry Warsaw
c1cb360683
Reworked to eliminate all potential memory problems, including
...
deletion of object from list argument during callout to fileno().
1996-12-12 22:16:21 +00:00
Barry Warsaw
e4ac0aa618
Several changes... Guido *please* take a look!
...
1. Renamed
2. Several coding styles were being used here, owing to the multiple
contributors. I tried to convert everything to standard "python"
coding style for indentation, paren and brace placement, etc.
3. There were several potential error conditions that were never being
checked, and where I saw them, I added checks of return values,
etc. I'm pretty sure I got them all.
4. There were some old-style (pre PyArg_ParseTuple) argument
extraction and these were converted to use PyArg_ParseTuple.
All changes compile and run with the new test_select.py module, at
least on my Solaris/Sparc box.
1996-12-12 00:04:35 +00:00
Barry Warsaw
7bd9fbdea2
Grandly renamed.
...
Note that since I have no idea how to test this, I didn't write a test
case. It does seem to at least compile on my system though.
1996-12-11 21:33:16 +00:00
Barry Warsaw
50c5cf132a
Renamed.
1996-12-11 16:54:40 +00:00
Barry Warsaw
1abda0fb12
cat and puste errors
1996-12-11 01:00:46 +00:00
Barry Warsaw
3696c524a4
nis_maplist(): Use check of yp_get_default_domain() return value
...
that's used in other parts of this module.
nis_maps(): use PyArg_NoArgs().
1996-12-11 00:29:14 +00:00
Barry Warsaw
adbf4e66df
Renamed, and bug fixed:
...
Two interesting problems in nis_maplist(). First, it is possible that
clnt_create() will return NULL. This was being caught, but no Python
error was being set. I use clnt_spcreateerror() to generate the value
of the exception.
But why would clnt_create() fail? It's because no server was being
found. And why was this? It was because nis_maplist() tried only to
get the NIS master for the first map in the aliases list, which is
passwd.byname, and guess what? That's the one NIS map CNRI does *not*
export! So the yp_master() call was failing to return a valid
server. I now cycle through all the map aliases until I find a valid
master. If not, a different exception is set.
I'm not sure this is the completely correct way to do all this, but
short of rewriting the entire nismodule.c (to expose the proper API to
Python), it should do the trick.
1996-12-11 00:15:58 +00:00
Barry Warsaw
53699e9ec1
Renamed.
...
Note that there is no test suite for this module, and I don't plan to
write one just now.
1996-12-10 23:23:01 +00:00
Barry Warsaw
a6b7c7146c
Renamed.
1996-12-10 16:25:56 +00:00
Guido van Rossum
caf783793d
Added remaining declarations needed/used in glmodule.c; keeps gcc -Wall happy.
1996-12-10 15:41:19 +00:00
Guido van Rossum
36dd0d27c4
Fix operator priority bug found thanks to gcc -Wall.
1996-12-10 15:23:00 +00:00
Guido van Rossum
e29ed8fa7c
Make gcc -Wall happy; remove dummy variable (can't see where it's needed).
1996-12-10 15:21:30 +00:00
Guido van Rossum
fb4130d1f1
Added extern decl for gethostname() to keep gcc -Wall happy.
1996-12-10 15:17:08 +00:00
Guido van Rossum
55db515a51
Great renaming.
...
Also got rid of the dummy variable, which was last needed in IRIX 4.x.
1996-12-10 00:32:31 +00:00
Guido van Rossum
09f99dfdba
Removed redundant inclusion of <errno.h> (sorry, Roj!).
1996-12-10 00:12:14 +00:00
Roger E. Masse
b0dfe969d9
renamed in a grand fashion.
1996-12-10 00:07:00 +00:00
Barry Warsaw
abb7efeb7c
Renamed a few symbols that were found in comments.
1996-12-09 23:22:35 +00:00
Barry Warsaw
3bdf746c5c
Renamed, ungrandly. We don't have the GNU MP library here so we can't
...
really test this module, or even compile it without a lot of work.
I'll make a note of it that this has not been tested!
1996-12-09 23:16:31 +00:00
Roger E. Masse
56c345b235
renamed grandly.
1996-12-09 23:14:26 +00:00
Roger E. Masse
24070ca391
Renamed Grandly
1996-12-09 22:59:53 +00:00
Barry Warsaw
8b43b19ec9
Renamed
1996-12-09 22:32:36 +00:00
Roger E. Masse
5817f8f717
Removed some unneeded header files and reedited with a fixed-width font
...
from emacs as per recomendation from GvR
1996-12-09 22:24:19 +00:00
Roger E. Masse
2919eaaf08
Renamed Grandly (I think).
1996-12-09 20:10:36 +00:00
Guido van Rossum
ece35bc22f
Changes to keep gcc -Wall happy.
1996-12-09 18:52:11 +00:00
Guido van Rossum
7ce52be627
Added `void' to declaration of initgl(), to keep gcc -Wall happy.
1996-12-09 18:51:51 +00:00
Guido van Rossum
665f9198fe
Added a bunch of extern void decls, to keep gcc -Wall happy.
1996-12-09 18:49:42 +00:00
Guido van Rossum
3d65fa3488
Include <sys/ioctl.h>, to keep gcc -Wall happy.
1996-12-09 18:49:14 +00:00
Guido van Rossum
cd165cc092
Make dummy int public (with _Py_ prefix), to keep gcc -Wall happy.
1996-12-09 18:48:32 +00:00
Guido van Rossum
37273177be
Add ``extern void bzero();'' for SGI, to keep gcc -Wall happy.
1996-12-09 18:47:43 +00:00
Guido van Rossum
66a7013c5c
Include unistd.h to keep gcc -Wall happy.
1996-12-09 18:46:58 +00:00
Guido van Rossum
259552dbd9
Added ``extern int get_default_domain();'' for SGI, to keep gcc -Wall happy.
1996-12-09 18:46:28 +00:00
Guido van Rossum
52174577eb
Added #ifdef around ``extern int ftime();'' for MS WINDOWS (which has
...
a conflicting definition somewhere).
Resolved line wrap for error message in ins().
1996-12-09 18:38:52 +00:00
Barry Warsaw
f52560197f
Greatly renamed.
1996-12-09 18:35:56 +00:00
Barry Warsaw
ec775c52a2
ins(): missed a renaming in a string: dictinsert =>
...
PyDict_SetItemString.
GvR: note the long line > 80 chars. Wrapping suggestions?
1996-12-09 18:24:35 +00:00
Barry Warsaw
9a2a8a8d31
Greatly renamed.
1996-12-06 23:32:14 +00:00
Guido van Rossum
1bb126fa13
Add extern decl of ftime() to make gcc -Wall happy.
1996-12-06 20:17:44 +00:00
Guido van Rossum
a376cc5cc8
Keep gcc -Wall happy.
1996-12-05 23:43:35 +00:00
Guido van Rossum
60fca2c90f
Add case for 'R' and a little bit of cleanup. Andrew Kuchling.
1996-12-05 23:41:26 +00:00
Guido van Rossum
049cd90b93
Jim F's brainchild
1996-12-05 23:30:48 +00:00
Guido van Rossum
81b24c0221
Fix bad format char in error msg (%s should be %d).
...
Keep gcc -Wall happy.
1996-12-05 23:30:16 +00:00
Guido van Rossum
36a484fb52
Correct typo -- repeat implements *, not +.
1996-12-05 19:01:16 +00:00
Guido van Rossum
b916faf66a
Upgraded new.function() contributed by Tommy. Also got rid of #if 0'ed code.
1996-11-21 16:02:12 +00:00
Guido van Rossum
0b1ff66920
Should compare errno to 0, not NULL
1996-11-02 17:31:22 +00:00
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
1996-10-25 14:44:06 +00:00
Guido van Rossum
0cbaff440d
Fix case where you start a new group immediately after a label.
...
Thanks to Ka-Ping Yee.
1996-10-23 17:53:06 +00:00
Guido van Rossum
1d6fddb776
Changed _Py_EllipsesObject -> _Py_EllipsisObject.
1996-10-21 15:11:12 +00:00
Guido van Rossum
a1b1cdbab2
Major upgrade by Vladimir Marangozov.
1996-10-21 15:10:39 +00:00
Guido van Rossum
084814624d
Don't close an already closed socket.
1996-10-12 14:07:22 +00:00
Guido van Rossum
6e8583dcb3
Check for NULL pointer returned from localtime()/gmtime().
1996-10-08 14:19:52 +00:00
Guido van Rossum
c196202e3d
Speedup of makeresult() by keeping a filler of (-1, -1) around.
1996-10-08 14:18:42 +00:00
Guido van Rossum
a0ca4c402d
Replace all uses of strncmp (in split, find, rfind) with memcmp, so
...
embedded \0 in the delimiter is handled properly. Thanks to Sjoerd
for suggesting this.
1996-10-04 13:39:37 +00:00
Guido van Rossum
07886d0e01
Rationalize MS #ifdefs
1996-09-11 23:31:42 +00:00
Guido van Rossum
f156f503cd
Correct typo: return -1 for error, not 0
1996-09-11 23:31:23 +00:00
Guido van Rossum
3863abb921
Correct typo: return -1 for error, not NULL
1996-09-11 23:31:07 +00:00
Guido van Rossum
c35f933c44
Add text of argument to errors for atoi(), atol(), atof().
1996-09-11 23:30:42 +00:00
Guido van Rossum
6beb479b39
Force O_BINARY in flags if defined, for e.g. Microsoft platforms.
1996-09-11 23:22:25 +00:00
Guido van Rossum
622f577eac
Dynamically initialize ob_type field, for Windows DLL
1996-09-11 23:18:43 +00:00
Guido van Rossum
c864364395
Added lockf() call
1996-09-11 23:17:20 +00:00
Guido van Rossum
6fe01d4ba0
Added Setup.local feature; make shared libs readonly
1996-09-11 23:13:07 +00:00
Fred Drake
e1607a8d0e
(parsermodule.c): Fixed sloppy typo: '==' -> '='
1996-09-11 21:58:26 +00:00
Guido van Rossum
f62e5bf339
Update based on Python 1.4b3.
1996-09-10 18:09:44 +00:00
Guido van Rossum
87755a24c2
Use #ifdef MS_WIN32 instead of _MSC_VER > 850.
1996-09-07 00:59:43 +00:00
Guido van Rossum
b2fb36498d
Sleep() turns out to be win32 specific.
...
The timezone etc. overrides are win16 specific.
Hope I got this right now...
1996-09-07 00:47:35 +00:00
Guido van Rossum
cac6c72105
Some changes for better Windows portability.
1996-09-06 13:34:02 +00:00
Guido van Rossum
6eed906533
Typo (missing _) in _xdr line.
1996-08-30 20:41:30 +00:00
Guido van Rossum
6c0b234006
#include <netconfig.h> seems not needed and is harmful on NeXT, so drop it.
...
Add proper initialization of rtn = NULL in unpack_double.
1996-08-30 20:39:43 +00:00
Guido van Rossum
213a685cd8
Move backup definition for hypot() to Python/hypot.c.
1996-08-29 18:13:16 +00:00
Guido van Rossum
c9970eecc2
Call __initialize(), not __sinit() on Mac dynamic loading entry.
1996-08-26 14:37:15 +00:00
Guido van Rossum
497aedd2ff
Get rid of unused local variable.
1996-08-21 23:46:01 +00:00
Guido van Rossum
4f903463b8
Removed environment, objc, sybase modules
1996-08-21 22:15:03 +00:00
Guido van Rossum
f00eb71d90
Get rid of some obsolete modules:
...
- environment.c (we now have os.putenv)
- sybase (a better one is in contrib/Databases/Sybase.*)
- objc.c (incomplete and unsupportable by us)
1996-08-21 22:11:54 +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
3bcf7d2f0b
Avoid complaint about inconsistent hypot() linkage on NT.
1996-08-21 20:36:52 +00:00
Guido van Rossum
171191efb2
Raise ValueError on empty string passed into atoi(), atol(), atof().
1996-08-21 20:02:25 +00:00
Guido van Rossum
360a934609
Support for old CPP
1996-08-21 19:04:10 +00:00
Guido van Rossum
ae92f01029
Hacks to support being a Windows DLL
1996-08-21 19:03:36 +00:00
Guido van Rossum
c9fb47ef08
Added delslice and delitem.
...
Renamed and, or to and_, or_.
Renamed all internal identifiers so as not to start with '__' (which is
a compiler privilege); remove AIX hack.
1996-08-21 17:40:51 +00:00
Guido van Rossum
4747887880
New batch from Fred
1996-08-21 14:32:37 +00:00
Guido van Rossum
bf0dc9fb14
Add #define MAC_TCL for Mac.
1996-08-20 20:49:56 +00:00
Guido van Rossum
613b943bf9
*noconfig* -> *shared*.
...
Add # -lm comment to modules that need it as sharedlib.
1996-08-20 19:50:17 +00:00
Guido van Rossum
4355454232
Support *shared* and *static* as aliases for *noconfig* and *config*.
1996-08-20 19:49:13 +00:00
Guido van Rossum
d62d8bced3
Test for xdrmem_create() failure.
...
Minor lay-out changes.
1996-08-20 19:47:44 +00:00
Guido van Rossum
cde317ae62
Install shared libs with executable mode -- needed for HPUX,
...
doesn't hurt elsewhere.
1996-08-20 19:46:35 +00:00
Guido van Rossum
272841c439
Changes by Rob Hooft for GMP 2.0.2
1996-08-19 23:06:45 +00:00
Guido van Rossum
73363b526e
Added _xdr module
1996-08-19 22:58:53 +00:00
Guido van Rossum
7cf1fcf347
Always include config.h
1996-08-19 22:12:39 +00:00
Guido van Rossum
8f3032da10
Declare initregex() as returning void, as it should be.
1996-08-19 22:03:12 +00:00
Guido van Rossum
860986812a
Remove some unused variables.
1996-08-19 22:02:43 +00:00
Guido van Rossum
2977e5d660
Declare a bunch of internal routines as returning void.
1996-08-19 22:02:19 +00:00
Guido van Rossum
1720230399
Made it palatable for K&R preprocessors. The spam macros don't have
...
to work as hard (but "stringizing" is still used, so we test the newly
introduced HAVE_OLD_CPP config define).
1996-08-19 22:01:39 +00:00
Guido van Rossum
a29756c1dd
Recognize *.sl and *.so as library (i.e. linker) arguments
1996-08-19 22:00:05 +00:00
Guido van Rossum
07b983da99
Incorporate LDFLAGS calculated by configure (for --with-readline)
1996-08-19 21:59:32 +00:00
Guido van Rossum
7ffa7617c7
Changes for Windows NT -- this time it works, with Tcl4.1p1 (p1!!!) etc.
...
- Use ckalloc(), ckfree() everywhere.
- Default FREECAST to (char *).
- Added comment with Tcl/Tk version info.
1996-08-13 21:10:16 +00:00
Guido van Rossum
99d90c0d0e
Include "mymath.h" instead of manually declaring math functions.
1996-08-08 19:17:45 +00:00
Guido van Rossum
7999a5c525
Added lstrip() and rstrip().
...
Extended split() (and hence splitfields(), which is the same function)
to support an optional third parameter giving the maximum number of
delimiters to parse.
1996-08-08 19:16:15 +00:00
Guido van Rossum
339cfa39d8
Need config.h (for Win etc.)
1996-08-08 19:12:37 +00:00
Guido van Rossum
ec185bde77
Added hack to get it to compile on AIX.
1996-08-08 19:12:05 +00:00
Guido van Rossum
8a170cbed6
Rearrange include headers (needed on some platforms).
1996-08-08 19:11:41 +00:00
Guido van Rossum
6412b1de5d
Hack for Mac (where fabs is not usable as a function pointer).
1996-08-08 19:10:21 +00:00
Guido van Rossum
97867b2ce2
Add optional casts to free() calls. (Jack)
...
Set Tk variable argv0 to classname passed in to Tkapp_New. (Fred)
1996-08-08 19:09:53 +00:00
Guido van Rossum
82df03e35f
Rationalized instructions for _tkinter.c
1996-08-08 19:08:47 +00:00
Guido van Rossum
6554419e1b
Also remove *.sl (AIX shared libs) in make clean.
1996-08-08 19:07:46 +00:00
Guido van Rossum
1dc19ba2ee
Removed
1996-08-08 19:07:06 +00:00
Guido van Rossum
a93b504a23
Latest AIX changes from Vlad
1996-08-08 19:06:31 +00:00
Guido van Rossum
b4ae6a3999
Re-install aix files (what happened?)
1996-08-08 19:05:09 +00:00
Guido van Rossum
3bedce0185
removed old file
1996-08-08 18:58:45 +00:00
Guido van Rossum
9e43ae4770
Use Tcl/Tk 7.5/4.1 by default.
1996-08-01 00:56:03 +00:00
Guido van Rossum
02530b0f74
Changes for AIX shared libs
1996-07-31 22:43:38 +00:00
Guido van Rossum
32aa1a72b2
getprogramname --> Py_GetProgramName
1996-07-31 19:51:15 +00:00
Guido van Rossum
0c5e3c8d6a
DESTLIB and MACHDESTLIB are now derived from variables set by the Makefile.
...
Clarified some comments.
1996-07-31 17:49:01 +00:00
Guido van Rossum
276de58927
Collect together all detailed installation directories.
1996-07-31 17:37:07 +00:00
Guido van Rossum
557d6d6608
Don't make an exception for NeXT (BBUM says it's no longer needed).
...
(But hypot() should really be defined in a separate file, triggered by
configure.)
1996-07-30 20:44:31 +00:00
Guido van Rossum
02ca3ab4f7
Remove "." from default path. Also rearrange so that SITEPATH comes
...
after DESTPATH.
1996-07-30 20:36:59 +00:00
Guido van Rossum
6e12d56cfd
Don't have "." in the default path.
1996-07-30 20:36:12 +00:00
Guido van Rossum
2b65444b9f
Converted to new style
1996-07-30 16:56:16 +00:00
Guido van Rossum
037b940cd7
Operators like __add__
1996-07-30 16:55:54 +00:00
Guido van Rossum
63df09acfb
Some NeXT changes (default certain symbols to others)
1996-07-30 16:55:34 +00:00
Guido van Rossum
d3c1bd3931
Added operator.c. Moved errno.c.
...
Changes to PYTHONPATH so it includes VERSION
1996-07-30 16:54:03 +00:00
Guido van Rossum
704fef2268
Refinements to installation, now uses $(VERSION) etc.
1996-07-30 16:53:14 +00:00
Guido van Rossum
4daf6adfe1
Added version number to destination.
...
Forget about the trick to create directories through dependencies --
it's impossible to get it right in the light of parallellizing Make
implementations and the inability to specify dependencies between
directories (because creating the subdirectory modifies the parent).
1996-07-24 02:33:33 +00:00
Guido van Rossum
4dc6622057
Added Sam Rushing's errno module
1996-07-24 00:51:51 +00:00
Guido van Rossum
dfe8ad969c
Converted to new style names by Skip Montanaro
1996-07-24 00:51:20 +00:00
Guido van Rossum
9687a921c8
Different lines for bsddb module.
1996-07-24 00:42:42 +00:00
Guido van Rossum
f1af3fe8eb
Added simple-minded (i.e. leaking :-) putenv() interface, if os has it.
1996-07-23 19:18:10 +00:00
Guido van Rossum
ed7253ca50
Added 3rd optional argument to translate(), a string of characters to delete.
...
Added maketrans(), a utility to create a translation table.
1996-07-23 18:12:39 +00:00
Guido van Rossum
450b9b33a2
Added Jim Fulton's "asharedmodule" target
1996-07-21 02:35:58 +00:00
Guido van Rossum
be6da271a1
Use INT_MAX/LONG_MAX instead of non-ANSI LONG_BIT
1996-07-21 02:34:55 +00:00
Guido van Rossum
3d602e31b1
New submission by Fred Drake.
1996-07-21 02:33:56 +00:00
Guido van Rossum
ac56b03f9a
New style names for getprogramname and getargcargv
1996-07-21 02:33:38 +00:00
Guido van Rossum
3be7140d31
Rewritten keys() and has_key() to avoid memory leaks.
1996-07-21 02:32:44 +00:00
Guido van Rossum
9e720e390a
complex -> Py_complex
1996-07-21 02:31:35 +00:00
Guido van Rossum
6f489d989d
Slightly different Windows ifdefs
1996-06-28 20:15:15 +00:00
Guido van Rossum
919c576254
added comments about tcl/tk -l options
1996-06-28 20:13:08 +00:00
Guido van Rossum
c012547142
Added plock() system call.
...
Changed test for Windows times() emulation.
1996-06-28 18:55:32 +00:00
Guido van Rossum
7d844a7c8a
aix sharedlib helpers
1996-06-26 21:15:02 +00:00
Guido van Rossum
845547d54b
Added CWI copyright.
...
Updated some comments.
Fixed bug in Merge() called with NULL args.
Get rid of TkDefaultAppName() -- it is not used anywhere.
Pass error message on when Appinit fails.
Create/Delete FileHandler assume fd is a socket on Windows.
1996-06-26 18:26:04 +00:00
Guido van Rossum
8d665e6b51
changed windows test symbols; removed debug printf from sockets
1996-06-26 18:22:49 +00:00
Guido van Rossum
8026febbd6
Made comment for getprogramname() more helpful.
1996-06-20 16:49:26 +00:00
Guido van Rossum
be32c8921c
More rational support for Windows (tested on Roj's NT 3.5 machine only).
...
Use PyArg_ParseTuple() where it makes sense.
1996-06-20 16:25:29 +00:00
Guido van Rossum
fd03e2b4b1
Clear waitpid() status arg in case there's no process to report with
...
WNOHANG set.
1996-06-19 23:17:02 +00:00
Guido van Rossum
2bd37e6c9b
Added more entries to create required target subdirectories for sharedinstall.
1996-06-17 17:33:11 +00:00
Guido van Rossum
529c963d36
Test for zero-length argument in capitalize().
1996-06-17 16:59:33 +00:00
Guido van Rossum
26b310a3fd
Added new.instance(class, dict).
1996-06-17 16:56:56 +00:00
Guido van Rossum
2745753b91
added capitalize()
1996-06-12 04:24:52 +00:00
Guido van Rossum
4f0fbf884b
Yet another pass at fd2obj -- this time for Windows
1996-06-12 04:22:53 +00:00
Guido van Rossum
c34c9a5001
provide access to $(exec_)prefix
1996-06-12 04:20:27 +00:00
Guido van Rossum
006bf91530
ntohs, ntohl, htons, htonl -- thanks to Lance
1996-06-12 04:04:55 +00:00
Guido van Rossum
d639d4d6d6
more changes for Windows, sigh
1996-06-12 04:04:22 +00:00
Guido van Rossum
8bac546e11
Avoid core dump in resizestring() on read() with 0 bytes.
1996-06-11 18:38:48 +00:00
Guido van Rossum
65af28a0f4
Calculate length of AF_UNIX addr struct portably in getsockaddrarg().
1996-06-11 18:36:33 +00:00
Guido van Rossum
53a9bf8164
Get rid of obsolete allowbroadcast().
...
Avoid core dumps in resizestring().
1996-06-11 18:35:24 +00:00
Guido van Rossum
ab28c56fd3
Avoid core dump on symcomp("").
1996-06-11 18:33:14 +00:00
Guido van Rossum
3c0b79ca0f
A fcntl implementation for systems (like Solaris) without flock() call.
...
By Sjoerd.
1996-06-11 15:11:34 +00:00
Guido van Rossum
1835c4f1b4
Use correct field of sigaction struct
1996-05-29 14:15:19 +00:00
Guido van Rossum
a0e71303d9
Changed NT -> MSC or WATCOM
1996-05-28 22:30:38 +00:00
Guido van Rossum
582646aecc
grand renaming; added copyright to some files
1996-05-28 22:30:17 +00:00
Guido van Rossum
ddcb36b5da
Use ../install-sh to install files.
1996-05-24 21:14:44 +00:00
Guido van Rossum
9c8a0c4b1c
Made all c_* symbols static.
1996-05-24 21:12:28 +00:00
Guido van Rossum
53d0de4b05
rename exported symbols with _Py_ prefix
1996-05-24 20:51:38 +00:00
Guido van Rossum
3d86cc0dbc
make soundex_hash static
1996-05-24 20:50:57 +00:00
Guido van Rossum
a4916fa54f
Added mkfifo, ftruncate. Windows/PC changes.
1996-05-23 22:58:55 +00:00
Guido van Rossum
dd96ca77da
Be more careful about default args.
1996-05-23 22:57:54 +00:00
Guido van Rossum
2c26cfe776
Use struct _inittab def from import.h
1996-05-23 22:57:18 +00:00
Guido van Rossum
3539b1e919
Added flock().
1996-05-23 22:56:38 +00:00
Guido van Rossum
7081cf54bf
Microsoft C changes
1996-05-23 22:56:19 +00:00
Guido van Rossum
88661e8f41
Subtle Windows changes
1996-05-23 22:55:58 +00:00
Guido van Rossum
fb0df944ca
Use sigaction if possible
1996-05-23 22:55:35 +00:00
Guido van Rossum
5555854e85
Windows/PC changes
1996-05-23 22:54:50 +00:00
Guido van Rossum
5038412d0f
Added __doc__ strings. Added get_soundex().
1996-05-23 22:54:17 +00:00
Guido van Rossum
bceeac8dc1
Watcom changes.
...
Add mktime() overflow test and make it NeXT robust by initializing
the structure from localtime().
1996-05-23 22:53:47 +00:00
Guido van Rossum
6878436366
Patch from the net for 4.1 file handler changes.
1996-05-16 17:17:31 +00:00
Guido van Rossum
54ac1891fb
Add __sinit() call according to Jack.
1996-05-16 17:14:03 +00:00
Guido van Rossum
dc1c64a148
remove unused variables
1996-02-27 15:21:19 +00:00
Guido van Rossum
1b66a4f01d
default CLOCKS_PER_SEC to CLK_TCK if it exists
1996-02-25 04:50:33 +00:00
Guido van Rossum
b0824db52c
Made 2nd arg to mkdir optional
1996-02-25 04:50:32 +00:00
Guido van Rossum
1266a01e47
Include ncurses.h where needed
1996-02-25 04:50:31 +00:00
Guido van Rossum
468fc6af68
Include stdlib.h or declare getenv
1996-02-25 04:50:31 +00:00
Guido van Rossum
485f2da5a1
Add unsigned char cast
1996-02-25 04:50:30 +00:00
Guido van Rossum
ec22c92e36
Changes needed to build with Tcl/Tk beta 2!
1996-02-25 04:50:29 +00:00
Guido van Rossum
dfd428dd7e
Changes to make it work with Tcl/Tk beta 1.
1996-02-25 04:46:40 +00:00
Jack Jansen
508537b9c9
Include GUSI.h if using gusi-sockets
1996-02-14 15:57:45 +00:00
Guido van Rossum
5416e20037
mark strftime as varargs
1996-02-13 00:14:09 +00:00
Guido van Rossum
f4a5912d51
add remove==unlink; mark strftime as varargs
1996-02-13 00:12:56 +00:00
Guido van Rossum
ad1f7eeb32
get rid of bogus name for init_tkinter()
1996-02-13 00:11:37 +00:00
Guido van Rossum
05a6d8f4c7
remove rcs history
1996-01-26 21:10:22 +00:00
Guido van Rossum
e36e1fe516
support fast mode for gdmb
1996-01-26 21:08:01 +00:00
Jack Jansen
76c79e9ba8
Added 16-bit pixel support for some operations.
1996-01-22 14:55:15 +00:00
Jack Jansen
ba1de3bafb
Fixed off-by-one error in rle-decode, and allow whitespace in base64
...
ascii input (thanks to Donald Beaudry for pointing these out)
1996-01-22 10:47:15 +00:00
Guido van Rossum
00bd2e5853
adde cmath; added version numbers to tk/tcl libs
1996-01-12 01:40:19 +00:00
Guido van Rossum
3206268692
added default hypot() implementation
1996-01-12 01:39:11 +00:00
Guido van Rossum
b123691384
64-bit patch
1996-01-12 01:38:49 +00:00
Guido van Rossum
b28911cdef
added new.classobj()
1996-01-12 01:38:22 +00:00
Guido van Rossum
c0fd1c0b83
fix argcount bug for build_node_children
1996-01-12 01:37:02 +00:00
Guido van Rossum
ca42b1673b
clear addr buffer before calling getsockname
1996-01-12 01:36:05 +00:00
Guido van Rossum
71aa32f4af
complex math
1996-01-12 01:34:57 +00:00
Jack Jansen
5d9579707f
Allow '@' for ' ' in uuencoded files.
1995-11-14 10:35:19 +00:00
Jack Jansen
40b546d40e
Initialize GUSI on the mac.
1995-11-14 10:34:45 +00:00
Jack Jansen
34cc5c31e8
Fix to load needed resources on a mac
1995-10-31 16:15:12 +00:00
Jack Jansen
ba0311ecff
Renamed module tkinter to _tkinter, moved source to _tkinter.c
1995-10-23 14:34:14 +00:00
Guido van Rossum
b50667d229
rename binasciimodule.c -> binascii.c; disable parsermodule.c
1995-10-12 00:41:40 +00:00
Guido van Rossum
d9e9f9c05d
Fred Drake's new parser module
1995-10-11 17:35:38 +00:00
Guido van Rossum
c1822a4dd1
changes by Steve Clift
1995-10-11 16:15:28 +00:00
Sjoerd Mullender
7d0590b544
Removed declaration of sginap because it conflicted with a header file.
1995-10-11 08:47:28 +00:00
Sjoerd Mullender
4237efc7f0
Propagate variable calls both to the linker and the compiler.
1995-10-11 08:45:15 +00:00
Guido van Rossum
903f487684
add BGN/END_SAVE macros around fcntl/ioctl calls
1995-10-07 19:18:22 +00:00
Jack Jansen
84bbc2e3e3
Added base64 support
1995-10-04 16:38:44 +00:00
Jack Jansen
8ccfc93c2f
Removed unused variable
1995-10-03 14:39:44 +00:00
Guido van Rossum
275fbe21c9
Move some stuff around so customizations in Setup take precedence
1995-09-30 17:01:49 +00:00
Guido van Rossum
896fc7ed4a
re-enable new.code(...) with new args
1995-09-30 17:01:02 +00:00
Guido van Rossum
64b24fb062
clear quitMainLoop when we fall through the main loop
1995-09-30 17:00:24 +00:00
Guido van Rossum
9722ad8883
Mac changes
1995-09-22 23:49:28 +00:00
Guido van Rossum
7c53b77733
plug some leaks
1995-09-13 18:39:47 +00:00
Guido van Rossum
1c20648ba2
added SITEPATH and DESTPATH variables
1995-09-13 18:39:04 +00:00
Guido van Rossum
bbc3410fa8
added 5th return item, clock time, to posix.times()
1995-09-13 17:39:51 +00:00
Guido van Rossum
a3127e8e11
added strop.translate(s, table)
1995-09-13 17:39:06 +00:00
Guido van Rossum
8d8c1eeed7
added time.strftime()
1995-09-13 17:38:35 +00:00
Jack Jansen
0223aa11d8
Obscure bugfix
1995-08-31 13:44:23 +00:00
Guido van Rossum
f45e586ed0
fix typo in bsddb entry
1995-08-30 23:44:41 +00:00
Guido van Rossum
1100dca602
Initial revision
1995-08-30 23:43:03 +00:00
Guido van Rossum
d639b45ed6
dbhash -> bsddb
1995-08-28 02:59:06 +00:00
Guido van Rossum
e03f277a22
fix bug in close()
1995-08-28 02:58:31 +00:00
Guido van Rossum
66017aa1b8
fix leaks in keys(); fix bug in close()
1995-08-28 02:58:00 +00:00
Jack Jansen
eaeb1c825d
Added missing 'leftchar' initializer.
1995-08-14 12:17:57 +00:00
Jack Jansen
dc977a99e0
Shuffled include's around (name conflict on Mac wrt teclick())
1995-08-14 12:17:18 +00:00
Guido van Rossum
45a910475c
added MACHDEP back in
1995-08-08 14:18:12 +00:00
Jack Jansen
727811907c
Helper module for uuencode and binhex coders
1995-08-07 14:34:15 +00:00
Guido van Rossum
667d704997
Initial revision
1995-08-04 04:20:48 +00:00
Guido van Rossum
37ba0bc50b
split config.c in 1000 parts; new main; new unfinished objective-C module
1995-08-04 04:20:45 +00:00
Guido van Rossum
b158909b45
\temporary 'fix' for brokenness
1995-07-28 16:44:53 +00:00
Guido van Rossum
07b14dd8bc
add locking where it exists
1995-07-26 17:33:44 +00:00
Guido van Rossum
ef38b78f94
use newgetargs
1995-07-26 17:33:10 +00:00
Guido van Rossum
f8afdcfef0
improved comments for curses, dbhash
1995-07-26 17:31:41 +00:00
Guido van Rossum
e42fc2fd37
use getnewargs where it makes sense
1995-07-26 17:29:45 +00:00
Guido van Rossum
cf1025ba0d
fixed arg checking for keys() and close()
1995-07-18 18:33:09 +00:00
Guido van Rossum
79ae53e8f0
Initial revision
1995-07-18 18:23:44 +00:00
Guido van Rossum
ae75f4955e
added dbhash; Tk is now officially at 4.0
1995-07-18 18:18:11 +00:00
Guido van Rossum
24f42ac74c
suppress . and .. in listdir return value
1995-07-18 18:16:52 +00:00
Guido van Rossum
064a62bc8a
err() should be varargs -- and fix one call
1995-07-07 22:39:14 +00:00
Guido van Rossum
ef4ee62a0f
added getpalatform()
1995-07-07 22:38:14 +00:00
Guido van Rossum
807b7bec06
normalized flag arg and made flag, mode default args; minor cosmetics
1995-07-07 22:37:11 +00:00
Guido van Rossum
55ea8a7b5b
pass $PLATFORM into config.c
1995-07-07 22:35:21 +00:00
Guido van Rossum
36bc68024f
sys/wait.h; NeXT changes (no unistd, utime; getcwd?)
1995-06-14 22:54:23 +00:00
Guido van Rossum
4a2698648e
fix NL for Linux bash bug; special processing for -u options
1995-06-14 22:52:06 +00:00
Guido van Rossum
ac56297421
edited RCS cruft
1995-06-14 22:49:20 +00:00
Guido van Rossum
31affb2e42
new modules soundex.c and environment.c
1995-06-14 22:31:38 +00:00
Guido van Rossum
30b6b2b032
add setblocking(); NT changes; null-terminate Unix path
1995-06-14 22:28:08 +00:00
Guido van Rossum
6e69fc7a72
removed rcs cruft
1995-06-14 22:23:17 +00:00
Guido van Rossum
9caac91641
NeXT doesn't like me to declare hypot(double, double)
1995-06-14 22:17:37 +00:00
Sjoerd Mullender
3db845b6f7
Make constants from cl.h include file available as module variables.
...
Also added Irix 5.3 constants.
1995-05-17 11:16:52 +00:00
Guido van Rossum
009e79bf02
unified join(fields), split(fields)
1995-05-03 17:40:23 +00:00
Guido van Rossum
f4449def3b
small clarifications / lay out
1995-04-10 11:37:18 +00:00
Guido van Rossum
74ee2878b6
move decl of realmain() out of #ifdef
1995-03-30 11:00:56 +00:00
Guido van Rossum
de4e124c9b
add WNOHANG
1995-03-30 10:56:54 +00:00
Guido van Rossum
07432c0ef6
fix subtle refcnt bug
1995-03-29 16:47:45 +00:00
Sjoerd Mullender
542659bbd0
Use newgetargs instead of getargs.
...
Check if objects are closed in getattr function instead of in each
method.
Removed functions sbtoa and timetoa.
Added functions msftoframe.
Added variables that used to be in standard module CD.
1995-03-28 12:06:23 +00:00
Sjoerd Mullender
14ece169ab
Added some (method) casts.
1995-03-17 12:18:38 +00:00
Guido van Rossum
385e7c6919
implement exit_thread through SystemExit exception
1995-03-17 10:42:27 +00:00
Guido van Rossum
fbd30e9159
added firstkey(), nextkey(), reorganize() methods
1995-03-16 16:07:34 +00:00
Guido van Rossum
27e177d005
fixed up comments describing interface
1995-03-16 15:43:47 +00:00
Guido van Rossum
f4b012a9e0
use PyCallable_Check; split some lines
1995-03-16 15:43:29 +00:00
Guido van Rossum
cc08112ff4
tiny additions for Windows 3.1
1995-03-14 15:05:41 +00:00
Guido van Rossum
6b14491bb4
mode and optional bufsize for makefile()
1995-03-14 15:05:13 +00:00
Guido van Rossum
b045afc711
plugged some memory leaks (Steve Clift)
1995-03-14 15:04:40 +00:00
Guido van Rossum
e333d167fe
1995 copyright
1995-03-14 15:04:19 +00:00
Guido van Rossum
6f4f5f7892
some more changes for NT and Borland
1995-03-10 15:14:41 +00:00
Guido van Rossum
caffcdfc8c
moved some stuff around for fewer confusion
1995-03-10 15:14:13 +00:00
Guido van Rossum
06d511ddf5
added PyErr_SetInterrupt(); NT ifdefs
1995-03-10 15:13:48 +00:00
Guido van Rossum
a320fd308c
changes for MPW
1995-03-09 12:14:15 +00:00
Guido van Rossum
b6fe7048e7
add casts to malloc() calls
1995-03-09 12:13:43 +00:00
Guido van Rossum
ad0ee8369c
changes for NT/Borland C
1995-03-01 10:34:45 +00:00
Guido van Rossum
6964f73b85
include mymath.h
1995-03-01 10:34:29 +00:00
Guido van Rossum
585c6dcf88
more fixes by Steve Clift
1995-02-24 13:45:43 +00:00
Guido van Rossum
295d171650
explicitly init flags in methodlists
1995-02-19 15:55:19 +00:00
Guido van Rossum
8bdd33386d
changes for CFM-68K mac
1995-02-18 14:53:14 +00:00
Guido van Rossum
6b13ba22d9
continue after failing for loop
1995-02-17 15:12:13 +00:00
Guido van Rossum
9e575ff7d8
remove bogus ## in front of gcc __VERSION__
1995-02-17 15:11:57 +00:00
Guido van Rossum
a38a503576
fix comment opener after #endif
1995-02-17 15:11:36 +00:00
Guido van Rossum
5f05eb421a
add INADDR_* symbols
1995-02-17 15:11:07 +00:00
Guido van Rossum
8fbf82b26e
bump version, add __version__ back in
1995-02-17 13:54:04 +00:00
Guido van Rossum
8573847a4d
Steve Clifts version
1995-02-17 13:50:17 +00:00
Guido van Rossum
d4837daa8d
added some clarifying comments about -lcrypt and Tk 4.0
1995-02-14 09:43:25 +00:00
Guido van Rossum
ee1813de2a
fix stupid bug in strip and split
1995-02-14 00:58:59 +00:00
Guido van Rossum
57c33af90e
tack compiler name/version to version string if known
1995-02-13 17:10:11 +00:00
Guido van Rossum
7f7f274839
use Py_CHARMASK
1995-02-10 17:01:56 +00:00
Guido van Rossum
760dd1031a
add some casts
1995-02-10 17:01:08 +00:00
Guido van Rossum
a3c3f2c5b0
use PyCallable_Check; export TK_VERSION and TCL_VERSION strings;
...
some Tk 4.0 specific changes
1995-02-07 15:41:02 +00:00
Guido van Rossum
3fdf58b5cc
add socket related constants
1995-02-07 15:39:52 +00:00
Guido van Rossum
d1b3481d69
correct typo in utime stub
1995-02-07 15:39:29 +00:00
Guido van Rossum
03e8ffa345
patches for NeXT weirdness
1995-02-07 15:38:56 +00:00
Guido van Rossum
f5c6d47e96
clear errors between failing calls to PyArg_Parse
1995-02-07 15:38:32 +00:00
Jack Jansen
971e1df3df
Quick hack so PowerPC macs can access system structures
1995-02-02 14:29:10 +00:00
Guido van Rossum
d503913594
plug leak and improve error handling in dbm_keys()
1995-01-30 12:45:38 +00:00
Jack Jansen
d56c109272
Changed the way mac mainloop event checking is turned off
1995-01-27 14:44:16 +00:00
Jack Jansen
3d7f6bd3b7
Added a global 'stdwin is active' flag.
1995-01-26 16:40:10 +00:00
Guido van Rossum
f8803dd6c3
uname 64-bit fix
1995-01-26 00:37:45 +00:00
Guido van Rossum
39cb5ce85d
unused vars
1995-01-26 00:37:10 +00:00
Guido van Rossum
1253960407
mem leak
1995-01-26 00:37:01 +00:00
Guido van Rossum
8239f0ffa0
fix leaks
1995-01-22 00:49:01 +00:00
Guido van Rossum
62de97f29c
make routines static
1995-01-22 00:48:41 +00:00
Guido van Rossum
27fda28973
cleanup
1995-01-22 00:48:16 +00:00
Guido van Rossum
811fbbc4ce
create $(DESTSHARED) library if needed
1995-01-22 00:47:59 +00:00
Guido van Rossum
ec25b91ba3
rename sigcheck so signal handling works again
1995-01-22 00:46:57 +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
087579ea51
added $& to $(LIB) target for Sequent
1995-01-17 16:11:29 +00:00
Guido van Rossum
caa6380886
The great renaming, phase two: all header files have been updated to
...
use the new names exclusively, and the linker will see the new names.
Files that import "Python.h" also only see the new names. Files that
import "allobjects.h" will continue to be able to use the old names,
due to the inclusion (in allobjects.h) of "rename2.h".
1995-01-12 11:45:45 +00:00
Guido van Rossum
a3c04b003f
cosmetics
1995-01-12 11:29:01 +00:00
Guido van Rossum
b9418686ba
rearrange declarations somewhat
1995-01-12 11:28:16 +00:00
Guido van Rossum
a597dde3f1
cosmetic changes so these modules will work with the strict new naming scheme
1995-01-10 20:56:29 +00:00
Guido van Rossum
6c1874fc2b
changes for C++ (Tim MacKenzie)
1995-01-10 17:43:33 +00:00
Guido van Rossum
062cfb0c4e
added interface to Tk_DoOneEvent (R Lindsay Todd)
1995-01-10 17:42:51 +00:00
Guido van Rossum
ca9b323c52
better test for existence of hstrerror()
1995-01-10 16:30:54 +00:00
Guido van Rossum
a6a1e536ac
added bufsize parameter to fdopen and popen
1995-01-10 15:36:38 +00:00
Guido van Rossum
37431fbbd0
initmodule3 -> initmodule3
1995-01-09 17:49:26 +00:00
Guido van Rossum
f9888eb2fb
totally revamped
1995-01-07 11:50:36 +00:00
Guido van Rossum
9558825dad
do not call newmethodobject directly
1995-01-07 11:50:04 +00:00
Guido van Rossum
6d023c98b0
Added 1995 to copyright message.
...
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
1995-01-04 19:12:13 +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
5799b52008
Added 1995 copyright.
...
object.h: made sizes and refcnts signed ints.
stringobject.h: make getstrsize() signed int.
methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
1995-01-04 19:06:22 +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
Jack Jansen
44fff3cfb5
Added missing initialization
1994-12-14 12:55:17 +00:00
Guido van Rossum
f34cadda28
added timer and file callbacks and global mainloop and quit fns
1994-11-10 22:50:21 +00:00
Guido van Rossum
5e8e8327f8
don't use backslashes for continuation lines
1994-11-10 22:49:52 +00:00
Guido van Rossum
132f5c2d77
don't fail moving empty list of shared modules
1994-11-10 22:44:15 +00:00
Guido van Rossum
05bf280d47
clarifications
1994-10-20 22:01:38 +00:00
Guido van Rossum
411a8bd799
add hypot()
1994-10-20 22:00:28 +00:00
Guido van Rossum
2ce15a59f7
always make sharedmods
1994-10-20 21:59:38 +00:00
Guido van Rossum
89910656d1
makesetup should use $cc not cc
1994-10-20 21:58:30 +00:00
Guido van Rossum
6493389a8c
distinguish between getpgrp and setpgrp arg requirements
1994-10-20 21:56:42 +00:00
Sjoerd Mullender
2abc49458b
Free was called with a struct as argument instead of a field from the
...
struct.
1994-10-13 09:11:13 +00:00
Sjoerd Mullender
4eba0c9b91
Escaped $(LDSHARED) in a string.
1994-10-13 09:09:05 +00:00
Guido van Rossum
73624e9c3b
new style
1994-10-10 17:59:00 +00:00
Guido van Rossum
c3706076ee
Add pointer to GPL-free MP library
1994-10-06 16:12:06 +00:00
Guido van Rossum
0c57abb7ce
Removed this module (will be distributed with Jack's package)
1994-10-06 15:39:55 +00:00
Guido van Rossum
e8a1e8cef3
Fix getpythonpath() fix; never #include frozen.c.
1994-10-05 14:48:22 +00:00
Guido van Rossum
6e890b86a8
Save static pointer to malloc'ed buffer
1994-10-05 12:25:12 +00:00
Guido van Rossum
14ed0b2cd3
* Modules/xxmodule.c: integrated with xxobject.c by Jack
...
* Modules/(posix,socket}module.c: more NT changes
1994-09-29 09:50:09 +00:00
Guido van Rossum
be9f149574
Various layout changes; some extra warnings; for IRIX, IRIX 5 is the default.
1994-09-21 12:31:05 +00:00
Sjoerd Mullender
cc1b8d5030
Specified libraries for flmodule.
1994-09-21 11:51:10 +00:00
Sjoerd Mullender
bf677edc45
Put a comment start symbol at the start of a comment that lacked one.
1994-09-15 14:50:05 +00:00
Guido van Rossum
602099a756
* various modules: #include "Python.h" and remove most remporary
...
renaming hacks
1994-09-14 13:32:22 +00:00
Guido van Rossum
f5e0ea89db
* Modules/Setup.in: define PYTHONPATH using COREPYTHONPATH for
...
extensions; add -lm to math module definition
* Modules/Makefile.pre.in: remove *.so and so_locations on clobber
1994-09-12 15:35:36 +00:00
Sjoerd Mullender
73737abead
If an argument on a Setup line starts with `$', treat it as a library,
...
but only if it does not end in a known suffix.
1994-09-12 15:31:01 +00:00
Guido van Rossum
7cc5abd454
Support shared library creation.
1994-09-12 10:42:20 +00:00
Guido van Rossum
9adae8e182
Steen Lumholt's termios interface.
1994-09-12 10:41:22 +00:00
Guido van Rossum
43021932bc
Added _getpty interface.
1994-09-12 10:40:46 +00:00
Guido van Rossum
e4485b064d
Setup.in: added tkinter; rearranged the definition of PYTHONPATH so
...
that the module-specific components are in the section for that
module.
cursesmodule.c: patched it so it actually works.
tkintermodule.c: call Py_AtExit instead of atexit().
signalmodule.c: converted to new naming style; added
BGN/END SAVE around pause() call.
socketmodule.c: added setblocking() after Tommy Burnette.
1994-09-07 14:32:49 +00:00
Sjoerd Mullender
a142613678
Added minmax function.
1994-09-06 16:19:33 +00:00
Guido van Rossum
56bf235d4c
Lance's release 1.1 -- fixes some problems with 1.0
1994-08-31 22:06:24 +00:00
Guido van Rossum
fbea2f3e7c
Release 1.0 by Lance
1994-08-31 22:05:27 +00:00
Guido van Rossum
f6971e2958
Lance has converted his modules to the new naming conventions, and
...
contributed a curses interface.
Setup.in uses .c instead of .o now.
1994-08-30 12:25:20 +00:00
Guido van Rossum
224b289efa
* Modules/makesetup: bugfix: add objects from sources to OBJS
1994-08-30 09:27:16 +00:00
Guido van Rossum
1d5735e846
Merge back to main trunk
1994-08-30 08:27:36 +00:00
Guido van Rossum
b078ce10d4
Move #endif for NT
1994-08-29 14:01:43 +00:00
Guido van Rossum
7b1e974b4b
Makefile.pre.in: add $(OPT) to link command
...
audioop.c: fix for MPW
config.c.in: save original argc/argv for Lance
rotormodule.c: new coding conventions
timemodule.c: add casts for Lance
1994-08-29 10:46:42 +00:00
Guido van Rossum
794b93ea8a
* Modules/Setup.*: removed all except Setup.in (huh? I thought
...
I'd done that already?!); disable gdbm by default
* configure.in, */Makefile*.in: OPT can now be specified in the
env at configure time and will then be put in all Makefiles as
default
* */Makefile*.in: remove lib*.a before adding to it
1994-08-23 13:51:25 +00:00
Guido van Rossum
aa0f4c73e5
* Modules/signalmodule.c: added pause().
1994-08-23 13:49:37 +00:00
Guido van Rossum
0b498beea2
* Modules/makesetup: support C++ files now; these should be given
...
as file.C or file.cc or file.c++; C files can be given as file.c
(instead of file.o, which is still supported)
1994-08-23 13:49:15 +00:00
Guido van Rossum
794d81313b
* Modules/posixmodule.c: some more NT changes
1994-08-23 13:48:48 +00:00
Guido van Rossum
9731d4470f
* Modules/config.c.in: change mac specific things
1994-08-23 13:48:30 +00:00
Guido van Rossum
72824bab44
Move all code from version.c into config.c
1994-08-19 12:03:04 +00:00
Guido van Rossum
0c7095484e
Changes for Mac
1994-08-19 12:01:32 +00:00
Guido van Rossum
6a3eb5f14d
Changes to make it work and compile on NT, by Mark Hammond.
...
(NT changes for posixmodule.c re-invented by Guido.)
1994-08-18 15:42:46 +00:00
Guido van Rossum
5806a4f5c3
* Modules/stropmodule.c: implement find/rfind instead of
...
index/rindex (raising and catching an exception is much more
expensive than returning and testing -1)
1994-08-17 13:15:46 +00:00
Guido van Rossum
9bb4fd6061
* tkintermodule.c (*FileHandler): generalize to arbitrary file ids
...
and objects that hav a fileno() method; fix bug in FileHandler
(should call XDECREF instead of DECREF)
1994-08-09 14:15:19 +00:00
Guido van Rossum
4b4c664d2e
* Modules/{Setup.in, gdbmmodule.c}, Doc/{lib,libgdbm}.tex: added
...
Anthony Baxter's gdbm module (derived from Jack's dbm module)
1994-08-08 08:06:37 +00:00
Guido van Rossum
c65a525cdc
* Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
...
shorter names (dropped the "module" from the name): sunaudiodev,
imgformat, audioop, imageop, imgfile
* Modules/stropmodule.c (strop_rindex): make rindex('abc', '') do
the right thing (i.e. return 3 instead of 0)
* Modules/socketmodule.c: disabled allowbroadcast() socket method
1994-08-05 13:44:50 +00:00
Guido van Rossum
e2ca9bd156
* tkintermodule.c: OK, I've fixed the "tty" problem. You're right
...
no need for the stdin handler, a Tk_DoOneEvent(TK_DONT_WAIT) did
the trick. I've included a diff to tkintermodule.c.
1994-08-03 08:01:43 +00:00
Guido van Rossum
b6775db241
Merge alpha100 branch back to main trunk
1994-08-01 11:34:53 +00:00
Guido van Rossum
e44e373cbc
Added some names to Setup.in, and added syslogmodule.c.
...
posixmodule.c: use pclose, not fclose!
selectmodule.c: trap negative fileno's, change some error messages.
stropmodule.c: change semantics of rindex to match string.py.
1994-07-14 13:56:50 +00:00
Guido van Rossum
d308e2ba3e
* tkintermodule.c
...
(PyInit_tkinter): Only create stdin file handler when stdin
is a tty.
(Tkinter_Cleanup): New function. This is an exit handler that
cleanup Tk.
1994-07-07 09:25:12 +00:00
Guido van Rossum
f713247ed7
Initial revision
1994-06-27 08:00:16 +00:00
Guido van Rossum
7687522309
* tkintermodule.c (Tkapp_New): Remove #ifdef WITH_APPINIT.
...
* tkintermodule.c (FileHandler): Make arg a tuple; bug found
by <tnb2d@cs.virginia.edu>. Call the Python file handler
function with (file, mask) argument. Fix a few of my refcnt bugs.
1994-06-27 07:59:42 +00:00
Guido van Rossum
bb4ba12242
* Modules/signalmodule.c: added thread compatibility (only main
...
thread uses signals); much improved efficiency; intrcheck()
doesn't call sigcheck() but only tests and clears the SIGINT
tripped flag.
1994-06-23 11:25:45 +00:00
Guido van Rossum
20882d5067
Split pwd in pwd and grp; added imgformat (by Jack)
1994-06-23 11:15:44 +00:00
Guido van Rossum
1846882254
Initial revision
1994-06-20 07:49:28 +00:00
Guido van Rossum
6299d1ee03
Speed up checking for signals and define intrcheck differently
1994-05-31 12:51:13 +00:00
Guido van Rossum
34162a123a
Added some new modules
1994-05-23 12:37:57 +00:00
Guido van Rossum
398d9fec3c
New experimental modules -- signal and sybase
1994-05-11 08:59:13 +00:00
Guido van Rossum
e4c6131baa
crypt module (Steve M's)
1994-05-06 14:25:39 +00:00
Guido van Rossum
094183ebeb
At the release of 1.0.1.
1994-02-15 16:04:53 +00:00
Guido van Rossum
cbcd8d796f
Make more robust against Minix and Mac
1994-01-14 16:55:50 +00:00
Guido van Rossum
4de6cbccf0
new file, setup for minix
1994-01-14 16:55:10 +00:00
Guido van Rossum
7590193909
Add colon to TESTPATH (oops!)
1994-01-13 16:03:27 +00:00
Guido van Rossum
42f69dab7e
Added TESTPATH
1994-01-13 16:01:38 +00:00
Guido van Rossum
6eb1d4a4da
Clarified comments about build process.
...
Removed whitespace from variables used to build PYTHONPATH.
1994-01-11 11:31:44 +00:00
Sjoerd Mullender
8b03cae9a8
Integers are specified as "i" and not as "d".
1994-01-07 11:47:39 +00:00
Guido van Rossum
7dd31d0608
Makefile.pre.in (renamed from Makefile.in.in), makesetup: changes to
...
support new build process and VPATH
Setup*: disable nis and fix comments
rest: fix compiler warnings
1994-01-04 22:08:35 +00:00
Sjoerd Mullender
93fcb9bbbd
One NULL should have been 0.
1994-01-03 14:03:25 +00:00
Guido van Rossum
4b35ef5297
Implemented sort of a solution for PYTHONPATH.
...
Added Setup.guido with my own preferences.
1994-01-03 01:26:03 +00:00
Guido van Rossum
116857ca01
Added George Neville-Neil's timing module
1994-01-02 23:22:21 +00:00
Guido van Rossum
a1c996c9d6
1994 Copyright
1994-01-02 02:11:40 +00:00
Guido van Rossum
fba715ab6c
Added some files to new module
1994-01-02 00:26:09 +00:00
Sjoerd Mullender
0d2d397bc5
Added function ttob.
1993-12-24 14:51:14 +00:00
Guido van Rossum
be0e9420a1
New files.
1993-12-24 10:32:00 +00:00
Sjoerd Mullender
92fa23fd6d
ANSIfied somewhat.
1993-12-24 10:05:51 +00:00
Sjoerd Mullender
c4f169cc5a
rgbimgmodule.c, Makefile, config.c: new module to read RGB image files.
...
Does not need any SGI-specific libraries.
cgen.py, cstubs, Makefile: Generate glmodule.c differently so that it
can be compiled using an ANSI compiler.
1993-12-21 17:06:12 +00:00
Sjoerd Mullender
7030b1ff2d
almodule.c: added close method, equivalent to closeport.
...
thread.h: use PROTO instead of _P for prototypes.
1993-12-20 17:26:34 +00:00
Guido van Rossum
248a50c168
* Grammar: corrected old typo (class instead of 'class')
...
* dosmodule.c: MSDOS specific stuff from posixmodule.c.
* posixmodule.c: removed all MSDOS specific stuff.
* tokenizer.h, parsetok.h: in prototypes, don't mix named and unnamed
parameters (MSC doesn't like this).
1993-12-20 12:53:10 +00:00
Guido van Rossum
67a5fdbcc2
* mpzmodule.c: cast some methods to the proper type.
...
* traceback.c (tb_print): use sys.tracebacklimit as a maximum number of
traceback entries to print (default 1000).
* ceval.c (printtraceback): Don't print stack trace header -- this is now
done by tb_print().
1993-12-17 12:09:14 +00:00
Sjoerd Mullender
c4801ed513
Added minmax function:
...
-- function of module audioop: minmax (FRAGMENT, WIDTH)
Minmax returns a tuple consisting of the minimum and maximum
values of all samples in the sound fragment.
1993-12-13 12:06:27 +00:00
Sjoerd Mullender
66bca326cb
Port to Solaris 2.3.
1993-12-03 16:54:45 +00:00
Guido van Rossum
b376a4ad18
* timemodule.c: Add hack for Solaris 2.
...
* posixmodule.c: don't prototype getcwd() -- it's not portable...
* mappingobject.c: double-check validity of last_name_char in
dict{lookup,insert,remove}.
* arraymodule.c: need memmove only for non-STDC Suns.
* Makefile: comment out HTML_LIBS and XT_USE by default
* pythonmain.c: don't prototype getopt() -- it's not standardized
* socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to
recvfrom() to (ANY*).
* pythonrun.c (initsigs): fix prototype, make it static
* intobject.c (LONG_BIT): only #define it if not already defined
* classobject.[ch]: remove all references to unused instance_convert()
* mappingobject.c (getmappingsize): Don't return NULL in int function.
1993-11-23 17:53:17 +00:00
Guido van Rossum
c45611d0e3
* import.c (get_module): total rewrite, to ensure proper search order: for
...
each dir in sys.path, try each possible extension. (Note: C extensions
are loaded before Python modules in the same directory, to allow having
a C version used when dynamic loading is supported and a Python version
as a back-up.)
* import.c (reload_module): test for error from getmodulename()
* moduleobject.c: implement module name as dict entry '__name__' instead
of special-casing it in module_getattr(); this way a module (or
function!) can access its own module name, and programs that know what
they are doing can rename modules.
* stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
1993-11-17 22:58:56 +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
Guido van Rossum
a3d78fb268
* posixmodule.c: added set{uid,gid}.
...
* {tuple,list,mapping,array}object.c: call printobject with 0 for flags
* compile.c (parsestr): use quote instead of '\'' at one crucial point
* arraymodule.c (array_getattr): Added __members__ attribute
1993-11-10 09:23:53 +00:00
Guido van Rossum
c600411755
* mpzmodule.c: removed redundant mpz_print function.
...
* object.[ch], bltinmodule.c, fileobject.c: changed str() to call
strobject() which calls an object's __str__ method if it has one.
strobject() is also called by writeobject() when PRINT_RAW is passed.
* ceval.c: rationalize code for PRINT_ITEM (no change in function!)
* funcobject.c, codeobject.c: added compare and hash functionality.
Functions with identical code objects and the same global dictionary are
equal. Code objects are equal when their code, constants list and names
list are identical (i.e. the filename and code name don't count).
(hash doesn't work yet since the constants are in a list and lists can't
be hashed -- suppose this should really be done with a tuple now we have
resizetuple!)
1993-11-05 10:22:19 +00:00
Guido van Rossum
32be3a7a88
Fix stupib bug in concatenation
1993-11-05 10:16:27 +00:00
Guido van Rossum
c6dcc9f407
Added execve; change getstrarg into getargs with "s" format
1993-11-05 10:15:19 +00:00
Guido van Rossum
572d2d994d
Fix memory leaks in join & joinfields
1993-11-05 10:14:49 +00:00
Guido van Rossum
e77a757094
* nismodule.c: database keys and values can contain null bytes. be more
...
careful about these.
* arraymodule.c: added 8 byte swap; added 'i' format character; added
reverse() method; rename read/write to fromfile/tofile.
* config.c: Set version to 0.9.9++.
* rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts
will have a well-defined effect independent of word size.
* bltinmodule.c: renamed bagof() to filter().
1993-11-03 15:01:26 +00:00
Sjoerd Mullender
78ed420314
Fixed a couple of bugs: getargs doesn't use % escapes, and seconds
...
must be set after timeout is initialized.
1993-11-02 15:34:23 +00:00
Guido van Rossum
b73cc04e62
* ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,
...
pythonrun.c: added static forward declarations
* pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of
static routines
1993-11-01 16:28:59 +00:00
Guido van Rossum
c7a22703e7
* selectmodule.c (select_select): timeout argument may be None with same
...
meaning as no 4th argument
1993-11-01 16:27:16 +00:00
Guido van Rossum
c70b61fe6d
Hacks for NEXTSTEP.
1993-11-01 16:23:18 +00:00
Guido van Rossum
0667626694
Replace <<-13 by >>13. Leave old code in #ifdef BUGGY_CODE_BW_COMPAT.
1993-11-01 16:20:18 +00:00
Guido van Rossum
13ecc7a1a2
Simplify life for md5: include (slightly modified) md5.h and md5c.c
...
from RFC 1321 here, and point to that RFC instead of a non-existant
incompatible file on rsa.com.
1993-11-01 16:19:05 +00:00
Guido van Rossum
ee9012f58f
Added rindex(). index() and rindex() interpret negative start index
...
as normal indexing does.
1993-10-26 15:23:55 +00:00
Guido van Rossum
06191530b6
Work around a bug in the DEC alpha OSF/1 C preprocessor.
1993-10-26 15:22:37 +00:00
Guido van Rossum
89b3325dc4
* import.c (MAGIC): Changed magic word to avoid confusion about exec
...
function vs. exec statement
* bltinmodule.c: renamed the module to __builtin__.
* posixmodule.c (posix_execv): renamed exec --> execv since it is now a
reserved word.
1993-10-22 14:26:06 +00:00
Sjoerd Mullender
3bb8a05947
Several optimizations and speed improvements.
...
cstubs: Use Matrix type instead of float[4][4].
1993-10-22 12:04:32 +00:00
Guido van Rossum
cacd9579d4
* stdwinmodule.c (stdwin_done): interface to shutdown stdwin (now this is
...
no longer done by config.c).
* stdwinmodule.c (initstdwin), config.c (initall): get command line
arguments from sys.argv instead of special-casing stdwin in config.c
* import.c (get_module): fix core dump when foomodule.o does not define
initfoo().
* ChangeLog: documented changes by Sjoerd.
1993-10-18 11:44:47 +00:00
Guido van Rossum
21d335ed9e
Makefile, import.c: Lance's alternative module search (allow .pyc file
...
without .py file); Bill's dynamic loading for SunOS using shared
libraries.
pwdmodule.c (mkgrent): remove DECREF of uninitialized variable.
classobject.c (instance_getattr): Fix case when class lookup returns
unbound method instead of function.
1993-10-15 13:01:11 +00:00
Sjoerd Mullender
a9c3c22c33
* Extended X interface: pixmap objects, colormap objects visual objects,
...
image objects, and lots of new methods.
* Added counting of allocations and deallocations of builtin types if
COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some
files.
* Bug fix in sorting lists.
1993-10-11 12:54:31 +00:00
Sjoerd Mullender
d96ec44f38
Bug fix: check whether call succeeded *after* the call.
1993-09-14 08:37:39 +00:00
Sjoerd Mullender
f64992e95d
* clmodule.c (doParams): free PVbuffer in error condition.
...
* frameobject.c (newframeobject): initialize ob_type if taking entry
from the free list, since it is zeroed out when DEBUG is defined.
1993-08-03 15:11:36 +00:00
Guido van Rossum
e906606f5d
Final touch before release.
1993-07-29 13:14:32 +00:00
Guido van Rossum
1fc238a813
Minor fixes / changes for Mac compatibility.
1993-07-29 08:25:09 +00:00
Guido van Rossum
a3309960a5
* Added support for X11 modules.
...
* Makefile: change location of FORMS library.
* posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not)
* Almost all .h files: added CPP magic to avoid duplicate inclusions and
to support inclusion from C++.
1993-07-28 09:05:47 +00:00
Guido van Rossum
f6da4f62b4
forms_set_event_call_back: argument of None resets event callback to NULL.
1993-07-26 15:24:57 +00:00
Guido van Rossum
e22e6442b7
* config.c: different default PYTHONPATH for MS-DOS
...
* timemodule.c: change #ifdef TURBO_C into #ifdef MSDOS
* posixmodule.c: MSDOS changes by Marcel van der Peijl (Digicash)
* stropmodule.c: use C isspace(c) to test for whitespace; add
whitespace, lowercase and uppercase variables to the module.
1993-07-09 10:51:31 +00:00
Guido van Rossum
d05eb8b0fc
stropmodule.c: use C isspace(c) to test for whitespace; add
...
whitespace variable to module dict.
1993-07-08 11:12:36 +00:00
Guido van Rossum
f1dc566328
* Makefile: added all: and default: targets.
...
* many files: made some functions static; removed "extern int errno;".
* frozenmain.c: fixed bugs introduced on 24 June...
* flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a
(and some old functions that were omitted).
* timemodule.c: added MSDOS floatsleep version .
* pgenmain.c: changed exit() to goaway() and added defn of goaway().
* intrcheck.c: add hack (to UNIX only) so interrupting 3 times
will exit from a hanging program. The second interrupt prints
a message explaining this to the user.
1993-07-05 10:31:29 +00:00
Guido van Rossum
9e90a672b4
* pythonmain.c: -k option, usage message, more environment flags.
...
(the latter also in frozenmain.c)
* ceval.c: global 'killprint' flag raises exception when printing an
expression statement's value (useful for finding stray output)
* timemodule.c: add asctime() and ctime(). Change julian date to
1-based origin (as intended and documented).
* Removed unused DO_TIMES stuff from timemodule.c. Added 'epoch' and
'day0' globals (year where time.time() == 0 and day of the week the
epoch started).
1993-06-24 11:10:19 +00:00
Guido van Rossum
234f942aef
* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.
...
Added $(SYSDEF) to its build rule in Makefile.
* cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also
changed files that still used it... And made several things static
that weren't but should have been... And other minor cleanups...
* listobject.[ch]: add external interfaces {set,get}listslice
* socketmodule.c: fix bugs in new send() argument parsing.
* sunaudiodevmodule.c: added flush() and close().
1993-06-17 12:35:49 +00:00
Guido van Rossum
18c9a4f8ea
* socketmodule.c: fix long-standing bug in recvfrom() -- addrlen
...
wasn't initialized.
1993-05-25 12:16:29 +00:00
Guido van Rossum
eb6b33a837
* classobject.c: in instance_getattr, don't make a method out of a
...
function found as instance data.
* socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite
argument parsing in send/recv.
* More changes related to access (terminology change: owner instead of
class; allow any object as owner; local/global variables are owned
by their dictionary, only class/instance data is owned by the class;
"from...import *" now only imports objects with public access; etc.)
1993-05-25 09:38:27 +00:00
Guido van Rossum
687dd13bfe
New posix functions open, close, dup, dup2, lseek, read, write, fstat, pipe.
...
Improved some comments and defaults in the Makefile.
1993-05-17 08:34:16 +00:00
Guido van Rossum
a849b834f1
* selectmodule.c: fix (another!) two memory leaks -- this time in list2set
...
* tokenizer.[ch]: allow continuation without \ inside () [] {}.
1993-05-12 11:35:44 +00:00
Guido van Rossum
acbe8da4f8
(I suggest a recompile after getting this, the ceval.c bugfix may be crucial!)
...
* Makefile: removed superfluous AR=ar, fixed misleading comment.
* ceval.c: fixed debugging code; save/restore errors in locals_2_fast.
* intrcheck.c: for SunOS etc., turn off syscall resumption.
* regexpr.h: bump number of registers to 100.
1993-04-15 15:33:52 +00:00
Guido van Rossum
9575a44575
* Microscopic corrections to make things compile on the Cray APP.
...
* Removed one use of $> in Makefile and warned about others.
Added configurable lines in Makefile to change CC and AR.
1993-04-07 14:06:14 +00:00
Guido van Rossum
f56e3db1dd
Support for frozen scripts; added -i option.
1993-04-01 20:59:32 +00:00
Guido van Rossum
8b17d6bd89
Changes to speed up local variables enormously, by avoiding dictionary
...
lookup (opcode.h, ceval.[ch], compile.c, frameobject.[ch],
pythonrun.c, import.c). The .pyc MAGIC number is changed again.
Added get_menu_text to flmodule.
1993-03-30 13:18:41 +00:00
Guido van Rossum
9bfef44d97
* Changed all copyright messages to include 1993.
...
* Stubs for faster implementation of local variables (not yet finished)
* Added function name to code object. Print it for code and function
objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version
number has changed accordingly)
* Print address of self for built-in methods
* New internal functions getattro and setattro (getattr/setattr with
string object arg)
* Replaced "dictobject" with more powerful "mappingobject"
* New per-type functio tp_hash to implement arbitrary object hashing,
and hashobject() to interface to it
* Added built-in functions hash(v) and hasattr(v, 'name')
* classobject: made some functions static that accidentally weren't;
added __hash__ special instance method to implement hash()
* Added proper comparison for built-in methods and functions
1993-03-29 10:43:31 +00:00
Sjoerd Mullender
6b517fdc95
Added conversion routines to sv module.
1993-03-16 12:25:30 +00:00
Guido van Rossum
e537240c25
* Changed many files to use mkvalue() instead of newtupleobject().
...
* Fixcprt.py: added [-y file] option, do only files younger than file.
* modsupport.[ch]: added vmkvalue().
* intobject.c: use mkvalue().
* stringobject.c: added "formatstring"; renamed string* to string_*;
ceval.c: call formatstring for string % value.
* longobject.c: close memory leak in divmod.
* parsetok.c: set result node to NULL when returning an error.
1993-03-16 12:15:04 +00:00
Guido van Rossum
ccd5bad471
Extensive changes to regex module (group(), casefold, etc.)
1993-02-23 13:42:39 +00:00
Jack Jansen
337b20e23e
Added audioop.reverse() which reverses an audio sample
1993-02-23 13:39:57 +00:00
Guido van Rossum
36d330bf36
* regexmodule.c: added use of translation table, substring() method.
1993-02-21 20:12:16 +00:00
Guido van Rossum
778983b481
Added new module "array" (for now optional) defining array objects.
1993-02-19 15:55:02 +00:00
Jack Jansen
4fada9c8e0
Added converters for rgb<->rgb8 and rgb<->grey
1993-02-19 15:51:41 +00:00
Jack Jansen
fa1b9f63c9
Added dither() routine
1993-02-19 12:53:12 +00:00
Jack Jansen
a90805f1c0
This time really check in the new routines :-)
1993-02-17 14:29:28 +00:00
Jack Jansen
dd8a6eac57
Added lin2lin, findmax, findfactor and fintfit routines
1993-02-17 14:21:09 +00:00
Sjoerd Mullender
22e44cd0b5
* clmodule.c: the documentation was wrong, so changed the interface
...
accordingly: SetMin, SetMax, SetDefault are no longer methods of the
compressor/decompressor but are functions of the cl module and they
take a first argument which is a compression scheme
1993-02-17 09:11:14 +00:00
Sjoerd Mullender
4e2a4278e8
* clmodule.c: use function prototypes (found and fixed some bugs this
...
way); more efficiently check whether parameters are float; removed
one argument from DecompressImage method; use clGetParam instead of
clGetParams where it makes sense; convert int parameters in
SetParams, SetParam, SetMin, SetMax, and SetDefault to float when
needed; added QuerySchemeFromHandle method
* Makefile: interchanged cstubs and cgen.py so that $> in rule gets
them in the right order
1993-02-16 11:55:17 +00:00
Jack Jansen
5fc677363f
Added readdisplay() routine
1993-02-16 09:25:15 +00:00
Jack Jansen
e8a3c28f8d
Added new audio library functionality (getstatus, float sample fmts)
1993-02-10 14:10:56 +00:00
Sjoerd Mullender
38a22baea9
Fixed some memory leaks when things go wrong.
1993-02-10 13:31:01 +00:00
Jack Jansen
55cea47bae
Changed adpcm routines to use 2-element state (was 3 element)
1993-02-10 13:21:59 +00:00
Guido van Rossum
bf80e5407f
* stdwinmodule.c: various new commands: setwin{pos,size},
...
listfontnames, bitmap ops.
* listobject.c: use mkvalue() when possible; avoid weird error when
calling append() without args.
* modsupport.c: new feature in getargs(): if the format string
contains a semicolor the string after that is used as the error
message instead of "bad argument list (format %s)" when there's an
error.
1993-02-08 15:49:17 +00:00
Guido van Rossum
6f5afc9a73
* ceval.c: ifdef out the last argument passing compat hack.
...
* Fixed memory leaks in socket, select and sv modules: mkvalue("O", v)
does INCREF(v) so if v is brand new it should be XDECREF'd
1993-02-05 09:46:15 +00:00
Sjoerd Mullender
3a997279d5
CL.py, clmodule.c: Adapted to new CL library. Lots of new methods.
...
aifc.py: Several small improvements. Use new methods from CL module.
1993-02-04 16:43:28 +00:00
Guido van Rossum
34679b7661
* Added Fixcprt.py: script to fix copyright message.
...
* various modules: added 1993 to copyright.
* thread.c: added copyright notice.
* ceval.c: minor change to error message for "+"
* stdwinmodule.c: check for error from wfetchcolor
* config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h)
* Add declaration of inittab to import.h
* sysmodule.c: added sys.builtin_module_names
* xxmodule.c, xxobject.c: fix minor errors
1993-01-26 13:33:44 +00:00
Jack Jansen
d26b458325
Added tovideo routine
1993-01-22 15:34:43 +00:00
Guido van Rossum
0b0db8e3a0
Added separate main program for the Mac: macmain.c
...
stdwinmodule.c: wsetfont can now return an error
Makefile: add CL_USE and CL_LIB*S; config.c: move CL part around
New things in imgfile; also in Makefile.
longobject.c: fix comparison of negative long ints... [REAL BUG!]
marshal.c: add dumps() and loads() to read/write strings
timemodule.c: make sure there's always a floatsleep()
posixmodule.c: rationalize struct returned by times()
Makefile: add test target, disable imgfile by default
thread.c: Improved coexistance with dl module (sjoerd)
stdwinmodule.c: Change include stdwin.h if macintosh
rotormodule.c: added missing last argument to RTR_?_region calls
confic.c: merged with configmac.c, added 1993 to copyright message
fileobject.c: int compared to NULL in writestring(); change fopenRF ifdef
timemodule.c: simplify times() using mkvalue; include myselect.h
earlier (for sequent).
posixmodule: for sequent, include unistd.h instead of explicit
extern definitions and don't define rename()
Makefile: change misleading/wrong MD5 comments
1993-01-21 16:07:51 +00:00
Jack Jansen
09cbf9a7a6
Use full path for izoom.h include file
1993-01-19 15:33:13 +00:00
Jack Jansen
3c2eb5c5cb
Added (optional) better scaling to readscaled
1993-01-19 15:17:13 +00:00
Guido van Rossum
e35399ea7b
Checking in last-minute changes that are already part of release 0.9.8
1993-01-10 18:33:56 +00:00
Guido van Rossum
775f4dacbc
* Makefile: use cp -r to install the library
...
* ceval.c: use #ifdef COMPAT_HACKS instead of #if 0
* Makefile: fix to make clmodule.c compile;
make config.o dependent on libpython.a (so date is always correct)
* timemodule.c: now sleep() also takes a float argument.
* posixmodule.c: added nice().
1993-01-09 17:18:52 +00:00
Jack Jansen
d513f0bcb6
Fixed various bugs in the adpcm routines
1993-01-08 14:40:53 +00:00
Sjoerd Mullender
ed59d205a9
Various changes.
...
* Makefile: svmodule.c.proto and svgen.py are gone, svmodule.c came in
their stead. Also, pass -DUSE_DL flag to thread.c and give
the user a possibility to add the -DDEBUG to just thread.c.
* ceval.c: init_save_thread() can be called more than once now.
* svgen.py, svmodule.c.proto, svmodule.c: Removed prototype file and
replaced it by the generated file.
* thread.c: Added some more checks; added call to DL library when it
is also used to tell it where the shared arena is so that DL
can use some other area.
* threadmodule.c: Call init_save_thread from another place. Also,
added new function getlocklock() which does to lock objects
what getfilefile does to file objects.
1993-01-06 13:36:38 +00:00
Guido van Rossum
a2b7f40513
* Configure.py: use #!/usr/local/bin/python
...
* posixmodule.c: move extern function declarations to top
* listobject.c: cmp() arguments must be void* if __STDC__
* Makefile, allobjects.h, panelmodule.c, modsupport.c: get rid of
strdup() -- it is a portability risk
* Makefile: enclosed ranlib command in parentheses for Sequent Make
which aborts if the command is not found even if '-' is present
* timemodule.c: time() returns a floating point number, in microsecond
precision if BSD_TIME is defined.
1993-01-04 09:09:59 +00:00
Jack Jansen
de3adf9ef7
Added 2 and 4 bits grey formats
1992-12-22 14:05:55 +00:00
Guido van Rossum
5f59d6018e
* mymalloc.h: always allocate one extra byte, since some malloc's
...
return NULL for malloc(0) or realloc(p, 0). (This should be done
differently than wasting one byte, but alas...)
* Moved "add'l libraries" option in Makefile to an earlier place.
* Remove argument compatibility hacks (b) and (c).
* Add grey2mono, dither2mono and mono2grey to imageop.
* Dup the fd in socket.fromfd().
* Added new modules mpz, md5 (by JH, requiring GNU MP 1.2). Affects
Makefile and config.c.
* socketmodule.c: added socket.fromfd(fd, family, type, [proto]),
converted socket() to use of getargs().
1992-12-14 16:59:51 +00:00
Sjoerd Mullender
8dd054d918
adapted to newest version of CL library.
1992-12-14 13:17:29 +00:00
Guido van Rossum
8ed294150e
Added new modules mpz, md5 (by JH, requiring GNU MP).
1992-12-08 16:10:18 +00:00
Guido van Rossum
2a7178efe1
socketmodule.c: added socket.fromfd(fd, family, type, [proto]);
...
converted socket() to use of getargs().
1992-12-08 13:38:24 +00:00
Guido van Rossum
c89705d697
* config.c: Added audioop to lists.
...
* Makefile: change default source directory
* socketmodule.c: added getsockname and getpeername
* bltinmodule.c: corrected typo in type() error message
* Added new built-in functions str() and repr(): repr(x) == `x`;
str(x) == x if x is a string, otherwise str(x) == repr(x).
* Added joinfields to stropmodule.c (string.join calls joinfields now)
1992-11-26 08:54:07 +00:00
Guido van Rossum
0317a4719b
Added imageopmodule.c, also added them to Makefile and config.c.
...
Fixed a bug in Addmodule.sh that caused a crash in Configure.py.
Fixed the crash in Configure.py...
1992-10-26 13:40:15 +00:00
Guido van Rossum
a9e7dc1081
* bltinmodule.c: added built-in function cmp(a, b)
...
* flmodule.c: added {do,check}_only_forms to fl's list of functions;
and don't print a message when an unknown object is returned.
* pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup.
* Made jpegmodule.c smaller by using getargs() and mkvalue() consistently.
* Increased parser stack size to 500 in parser.h.
* Implemented custom allocation of stack frames to frameobject.c and
added dynamic stack overflow checks (value stack only) to ceval.c.
(There seems to be a bug left: sometimes stack traces don't make sense.)
1992-10-18 18:53:57 +00:00
Sjoerd Mullender
384f24816b
Lots of little fixes.
...
- merged CloseCompressor and CloseDecompressor into one function
- keep existing errors in error function (for exceptions raised in the
Compress or Decompress callback functions)
- remove newline from error string generated by error function
- allocate less memory when compressing multiple frames
- keep existing errors when clCompress or clDecompress fails
- raise an exception when compressed data doesn't fit within
dataMaxSize bytes
- allocate frameSize bytes for decompression buffer instead of
dataMaxSize
- use mkvalue more often
- new function QueryParams which will accept CL.AUDIO and CL.VIDEO
args
- changed some function names
1992-09-29 16:43:43 +00:00
Guido van Rossum
3a40ae4ef3
New shell script Addmodule.sh makes it easier to add a new optional
...
module by editing Makefile and config.c in all the right places.
Used it to add most modules currently known. Added markers to help
the script to Makefile and config.c.
1992-09-25 21:54:05 +00:00
Sjoerd Mullender
7c4eb40a1a
Changed an ifdef from IRIX_405 to CDsetcallback.
1992-09-25 11:15:58 +00:00
Sjoerd Mullender
37f17b726c
Fixed the last known bugs.
1992-09-25 10:28:20 +00:00
Sjoerd Mullender
46927bac96
Defined exception cd.error which is used for errors other than
...
TypeError, MemoryError and such.
1992-09-24 10:48:40 +00:00
Sjoerd Mullender
d53a4f3d14
New built-in module "cl" (Compression Library). Only for Irix 4.0.5
...
and higher. Made a few improvements to previous version.
1992-09-24 10:37:39 +00:00
Sjoerd Mullender
c431549e21
New built-in module cl, the Compression Library.
1992-09-23 14:53:00 +00:00
Guido van Rossum
7066dd75c5
* Makefile: added IMGFILE; moved some stuff around.
...
* flmodule.c: added some missing functions; changed readonly flags of
some data members based upon FORMS documentation.
* listobject.c: fixed int/long arg lint bug (bites PC compilers).
* several: removed redundant print methods (repr is good enough).
* posixmodule.c: added (still experimental) process group functions.
1992-09-17 17:54:56 +00:00
Guido van Rossum
c2670a000b
posix: added setpgrp() and, if sgi, setsid() and setpgid(pid, pgid)
1992-09-13 20:07:29 +00:00
Guido van Rossum
5c85062e1c
Makefile uses $> more often; cgen supports filename argument; added
...
lower, upper and swapcase to strop; cosmetics.
1992-09-11 23:55:51 +00:00
Guido van Rossum
aee087946d
Made struct a standard built-in module; added string args to {set,get}sockopt;
...
added gl.gversion().
1992-09-08 09:05:33 +00:00
Guido van Rossum
94472a0374
classobject.c moduleobject.c stdwinmodule.c xxobject.c:
...
raise AttributeError, not KeyError, when attribute deletion fails.
sunaudiodevmodule.c: check for deletion before calling setmember.
1992-09-04 09:45:18 +00:00
Guido van Rossum
97f0277208
Restructured (yet again) to treat all modules more alike.
1992-09-03 20:49:55 +00:00
Guido van Rossum
a5f61380f8
Got rid the bogus cache code and fix some unchecked errors.
1992-09-03 20:41:22 +00:00
Guido van Rossum
aa7ca2dc1a
Use getargs() everywhere now. Standardize lay-out yet more (an ongoing
...
project :-). Change object administration: objects are removed from the
list of known objects as soon as their form is destroyed.
1992-09-03 20:37:02 +00:00
Guido van Rossum
3d1e146086
Improve check for offset out of range
1992-09-03 20:35:01 +00:00
Guido van Rossum
e270b432f3
Re-implement some operations from string.py in C, for speed.
1992-09-03 20:21:07 +00:00
Jack Jansen
e1b4d7ce14
Added rms, maxpp and avgpp methods.
1992-08-24 14:36:31 +00:00
Jack Jansen
8eace20f68
Removed debug statement
1992-08-24 14:35:38 +00:00
Jack Jansen
3accf984b3
Added method to write image files.
1992-08-20 11:54:27 +00:00
Guido van Rossum
b001f7adb1
rearranged modules alphabetically
1992-08-19 16:44:41 +00:00
Guido van Rossum
90ddb7b5cb
unpack() now returns a tuple, not a list
1992-08-19 16:44:15 +00:00
Guido van Rossum
3af03d8f3e
don't call gl.foreground and create a new window after all (seems to
...
break window positions in .Xdefaults)
1992-08-19 16:42:53 +00:00
Guido van Rossum
448f4bf45a
added getname, getdefault and getminmax functions
1992-08-19 16:41:15 +00:00
Guido van Rossum
f9f2e82fca
New thread.c from Sjoerd, supports _exit_prog(). Use this in goaway()
...
to avoid hanging in cleanup().
1992-08-17 08:59:08 +00:00
Guido van Rossum
0297512a08
struct: pack/unpack binary structs; fcntl: fcntl(), ioctl().
1992-08-17 08:55:12 +00:00
Guido van Rossum
6d946f98bd
* macmodule.c: include allobjects.h, not .c
...
* timemodule.c: the mac has no unistd.h
* classobject.c: fixed several cases of return NULL that should be
return -1 !!!
1992-08-14 13:49:30 +00:00
Guido van Rossum
39789030bd
Fix bug introduced by Jack (duplicate def of qread)
1992-08-13 14:23:56 +00:00
Jack Jansen
743db36cd2
Modified to allow other threads to run in a multithreaded environment.
1992-08-13 14:13:11 +00:00
Guido van Rossum
423d6c6bca
DO_TIMES must now be defined in the Makefile
1992-08-12 15:34:02 +00:00
Guido van Rossum
38fbf52b8e
Made module regex optional; added optional module nis.
1992-08-12 15:28:52 +00:00
Guido van Rossum
3562d52e93
Added error handling and free resources.
1992-08-12 15:26:16 +00:00
Guido van Rossum
9de7a01e0e
NIS interface by Fred Gansevles <Fred.Gansevles@cs.utwente.nl>.
1992-08-12 14:57:12 +00:00
Guido van Rossum
a1ed37cb59
Last-minute changes for release.
1992-08-10 14:55:00 +00:00
Guido van Rossum
21803b8a6f
Makefile, Configure.py: ##ask --> ##[el]if[yes|no]
...
posixmodule.c: waitpid() is separate
1992-08-09 12:55:27 +00:00
Guido van Rossum
de126a6ff8
Replaced max=-1 by max = -1.
1992-08-06 16:53:58 +00:00
Guido van Rossum
ff4949eeee
* Makefile: cosmetics
...
* socketmodule.c: get rid of makepair(); fix makesocketaddr to fix
broken recvfrom()
* socketmodule: get rid of getStrarg()
* ceval.h: move eval_code() to new file eval.h, so compile.h is no
longer needed.
* ceval.c: move thread comments to ceval.h; always make save/restore
thread functions available (for dynloaded modules)
* cdmodule.c, listobject.c: don't include compile.h
* flmodule.c: include ceval.h
* import.c: include eval.h instead of ceval.h
* cgen.py: add forground(); noport(); winopen(""); to initgl().
* bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c,
selectmodule.c:
adapt to threads (add BGN/END SAVE macros)
* stdwinmodule.c: adapt to threads and use a special stdwin lock.
* pythonmain.c: don't include getpythonpath().
* pythonrun.c: use BGN/END SAVE instead of direct calls; also more
BGN/END SAVE calls etc.
* thread.c: bigger stack size for sun; change exit() to _exit()
* threadmodule.c: use BGN/END SAVE macros where possible
* timemodule.c: adapt better to threads; use BGN/END SAVE; add
longsleep internal function if BSD_TIME; cosmetics
1992-08-05 19:58:53 +00:00
Guido van Rossum
25bec8c8dc
Sometimes, recvfrom() returns an empty address; this is not an error.
...
Also, get rid of makepair() in favor of mkvalue().
1992-08-05 19:00:45 +00:00
Guido van Rossum
1984f1e1c6
* Makefile adapted to changes below.
...
* split pythonmain.c in two: most stuff goes to pythonrun.c, in the library.
* new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}.
* new module from Sjoerd: mmmodule.c (dynamically loaded).
* new module from Sjoerd: sv (svgen.py, svmodule.c.proto).
* new files thread.{c,h} (from Sjoerd).
* new xxmodule.c (example only).
* myselect.h: bzero -> memset
* select.c: bzero -> memset; removed global variable
1992-08-04 12:41:02 +00:00
Guido van Rossum
4fbf798f86
* myselect.h: bzero -> memset
...
* select.c: bzero -> memset; removed global variable
1992-08-04 09:13:45 +00:00
Guido van Rossum
f16eda5ff8
cdmodule.c: 2 minor changes by Sjoerd.
1992-08-03 19:06:59 +00:00
Guido van Rossum
7b2c03f39b
New rotor methods: setkey(), encryptmore() and decryptmore().
1992-08-02 09:00:06 +00:00
Guido van Rossum
e6e9fe18bb
Changes to make it compile under SGI -- revamped new/dealloc a bit.
1992-07-31 15:11:01 +00:00
Guido van Rossum
500982062f
New file rotormodule.c (by Lance Ellinghouse).
1992-07-31 15:10:13 +00:00
Guido van Rossum
b64e63545f
Added conversions to/from ADPCM(-4); renamed adpcm to adpcm3 (what it
...
really was).
1992-07-06 14:21:56 +00:00
Guido van Rossum
3ee199e0cd
added WE_KEY detail format to stdwinmodule.c.
1992-06-30 12:48:26 +00:00
Guido van Rossum
dd9ed839d6
Added qgetfd() to cstubs for GL.
...
Added new module dbm (interface to ndbm).
1992-06-29 17:10:40 +00:00
Guido van Rossum
8e7a0f026e
Added adpcm2lin and lin2adpcm.
1992-06-23 15:23:57 +00:00
Guido van Rossum
9d47992719
Use "myselect.h" as intended.
1992-06-23 15:23:28 +00:00
Guido van Rossum
ed233a5696
Changes for new UNIX-specific built-in module 'select' and new header for
...
interfaces to variants of select() system call, "myselect.h". This includes
adding fileno() methods to files, sockets and stdwin.
1992-06-23 09:07:03 +00:00
Guido van Rossum
710e1df585
Some UNIX types want the exact size of the address structure
1992-06-12 10:39:36 +00:00
Guido van Rossum
dfd6e46779
Fix for SEQUENT by Jaap Vermeulen
1992-06-12 10:39:22 +00:00
Guido van Rossum
aad5344fc1
Fix bug in ulaw2lin for 4-byte values
1992-06-05 15:11:56 +00:00
Guido van Rossum
0e69587dc0
Added {get,set}sockopt(). allowbroadcast is now obsolete.
1992-06-05 15:11:30 +00:00
Guido van Rossum
3dd8c9895e
fixed bugs in generic_setattr (returned NULL instead of
...
-1 for errors)
1992-06-03 17:07:49 +00:00
Guido van Rossum
f0476350b8
Added 1992 to copyright notice
1992-06-03 17:07:06 +00:00
Guido van Rossum
2c4be64f20
added readscaled() function.
1992-06-03 17:06:36 +00:00
Guido van Rossum
9c52e0ff32
Initial revision
1992-06-03 17:06:14 +00:00
Guido van Rossum
c888bf7cae
append the default path to $PYTHONPATH; ignore empty $PYTHONPATH.
...
default DATE is now 3 Jun 1992
1992-06-03 17:05:13 +00:00
Guido van Rossum
b66efa0d75
Initial revision
1992-06-01 16:01:24 +00:00
Guido van Rossum
5773798e50
Mark's name is Callow, not Callows
1992-05-15 11:06:29 +00:00
Guido van Rossum
178969df92
Added support for CD module
1992-05-15 11:06:12 +00:00
Guido van Rossum
86d2568e16
Initial revision
1992-05-15 11:05:54 +00:00
Guido van Rossum
46003ff66a
Added gete?[gu]id functions
1992-05-15 11:05:24 +00:00
Guido van Rossum
c3c7ac8ba7
Wanneer er geen disk in de speler zit falen sommige routines. De
...
exceptie heeft nu in dat geval als argument "no disc in player", behalve
wanneer de bibliotheek routine errno zet. In dat laatste geval wordt
(nog steeds) err_errno() gebruikt.
Wanneer een routine uit de bibliotheek faalt wordt nu altijd een IOError
gegenereerd. Een RuntimeError treedt alleen op bij verkeerde argumenten.
1992-05-06 09:48:30 +00:00
Guido van Rossum
cbcdff7fcf
Don't use \ for continuation lines; minor changes.
1992-05-06 09:47:10 +00:00
Guido van Rossum
ece6efe5d1
Return more structured data in some cases
1992-04-15 15:56:11 +00:00
Guido van Rossum
16b8f3047f
Initial revision
1992-04-13 18:22:53 +00:00
Guido van Rossum
2ee12f4090
Use mkvalue() instead of painfully constructing values
1992-04-13 15:54:35 +00:00
Guido van Rossum
d9f5733a92
change the date to say >= 6 Apr 1992
1992-04-08 11:17:17 +00:00
Guido van Rossum
336b591e55
in form_dealloc, only hide the form if it's visible
1992-04-08 11:16:25 +00:00
Guido van Rossum
7cdf5eb5b9
Don't use NULL as 0 int!
1992-04-06 12:34:45 +00:00
Guido van Rossum
bab9d03855
Copyright for 1992 added
1992-04-05 14:26:55 +00:00
Guido van Rossum
f1644a54ad
Don't define DO_TIMES (now in posixmodule.c)
1992-04-05 14:25:41 +00:00
Guido van Rossum
22db57e4a2
Added times() (from time)
1992-04-05 14:25:30 +00:00
Guido van Rossum
5113f5fd34
Copyright for 1992 added
1992-04-05 14:20:22 +00:00
Guido van Rossum
df840d911f
lint
1992-03-27 17:29:44 +00:00
Guido van Rossum
4f1691d0d5
Remove redundant vars
1992-03-27 17:26:25 +00:00
Guido van Rossum
9abc539846
Lint fluff
1992-03-27 17:24:37 +00:00
Guido van Rossum
50e61dc259
Check empty argument lists.
...
Lint fixes (and include <unistd.h>)
1992-03-27 17:22:31 +00:00
Guido van Rossum
2762f250eb
Initialized sigsave to shut lint up
1992-03-27 17:22:13 +00:00
Guido van Rossum
d15b73353f
Lint fixes.
1992-03-27 17:22:00 +00:00
Guido van Rossum
2bac4d3368
Added forms_(de)activate_all_forms functions; minor lay-out fixes.
1992-03-27 17:20:21 +00:00
Guido van Rossum
cd8077603a
Got rid of display_form() (same as show_form()).
1992-03-24 13:32:06 +00:00
Guido van Rossum
3e94197a52
Improved error handling.
1992-03-23 18:21:32 +00:00
Guido van Rossum
b3a0e4c842
Implemented show_choice(); moved items around a little bit.
1992-03-23 18:20:54 +00:00
Guido van Rossum
27aaa6daa9
Add interface to times(2).
1992-03-12 17:33:14 +00:00
Guido van Rossum
aa9de679b5
Initial revision
1992-03-04 16:40:03 +00:00
Guido van Rossum
444db07d3c
Get rid of RuntimeError.
1992-02-26 15:26:56 +00:00
Guido van Rossum
06a6702dc8
Addef gflush
1992-02-26 15:19:45 +00:00
Guido van Rossum
c39de5fe61
Added uname. Made lstat/readlink/symlink unconditional (the latter
...
two raise posix.error if symlinks aren't supported).
1992-02-05 11:15:54 +00:00
Guido van Rossum
3c8ba7a1ea
Fixed getargs() call in setfont.
...
Improved setwincursor() to allow None to explicitly turn the cursor off.
1992-02-05 11:15:00 +00:00
Guido van Rossum
ef0a00ec0c
Use getargs() function.
1992-01-27 16:51:30 +00:00
Guido van Rossum
9c16d7fbac
Cal get*Str*arg() instead of get*str*arg(), until the code is fixed.
1992-01-27 16:49:54 +00:00
Guido van Rossum
9db23a8c5f
Change prototypes decision.
1992-01-27 16:48:48 +00:00
Guido van Rossum
3b1a57a4a0
Ported to THINK C.
1992-01-27 16:47:46 +00:00
Guido van Rossum
d577c0ca90
Fix range error (doc and impl of re_search disagreed!)
...
Use getargs() function.
Drop re_string from re object.
1992-01-27 16:46:19 +00:00
Guido van Rossum
fc58e58cb7
Use getargs() function.
1992-01-27 16:45:55 +00:00
Guido van Rossum
521f81ca26
Retract the rage bugfix, but change the range assertion.
1992-01-26 18:23:48 +00:00
Guido van Rossum
b7e5160838
Add method to call wsetactive(win).
1992-01-26 18:13:18 +00:00
Guido van Rossum
2d78590183
Make "range" one smaller (discrepancy between doc and source for regex.c!).
1992-01-26 18:12:41 +00:00
Guido van Rossum
5f21dd106f
#ifdef'ed an unreachable line out.
1992-01-19 16:49:14 +00:00
Guido van Rossum
b674c3bba5
Initial revision
1992-01-19 16:32:47 +00:00
Guido van Rossum
1cab95c14d
Use Tatu Ylonen's copyleft-free reimplementation of
...
GNU regular expressions
1992-01-19 16:31:57 +00:00
Guido van Rossum
450ed49a89
Change versions.
...
Save argv[0] in global argv0.
1992-01-19 16:27:42 +00:00
Guido van Rossum
77b4604eaf
Added close method for menus.
...
Check for closed objects in getattr (not perfect, but better).
1992-01-14 18:41:24 +00:00
Guido van Rossum
2d709b1608
Get rid of AMOEBA deps; add declaration of fmod() if __STDC__ is not defined.
1992-01-14 18:37:27 +00:00
Guido van Rossum
2817875b2e
Converted to use == equality check syntax.
1992-01-12 17:18:12 +00:00
Guido van Rossum
b824fc6773
'regs' is a read-only data member, not a function.
1992-01-01 14:52:16 +00:00
Guido van Rossum
9b4e1b36f9
Auto include patchlevel in version.
...
Replace regexp by regex.
1991-12-30 01:43:49 +00:00
Guido van Rossum
6f4c43d4fd
Initial revision
1991-12-30 01:42:57 +00:00
Guido van Rossum
0e8e872ebf
Raise KeyError instead of RuntimeError when a uid or name (etc) is not found.
1991-12-24 13:28:38 +00:00
Guido van Rossum
bbf9434337
Change errors into new StdwinError.
1991-12-16 15:44:53 +00:00
Guido van Rossum
8832b62101
Improve error handling.
1991-12-16 15:44:24 +00:00
Guido van Rossum
0f1b8063b5
Be vague about default date.
1991-12-16 15:42:11 +00:00
Guido van Rossum
75f8968ee7
Hide forms before discarding them.
1991-12-16 13:06:13 +00:00
Guido van Rossum
aa011411fb
Automatically insert the date.
1991-12-16 13:05:20 +00:00
Guido van Rossum
87e7ea72a6
Use new exceptions.
1991-12-10 14:00:03 +00:00
Guido van Rossum
ddc0d3e066
Support for FORMS 2.0.
1991-12-10 13:56:42 +00:00
Guido van Rossum
9f462af3af
Added global 'version' variable.
...
Print version and copyright when called interactively.
1991-12-10 13:54:12 +00:00
Guido van Rossum
0bb1a51925
AIX fix.
1991-11-27 14:55:18 +00:00
Guido van Rossum
3c28474ea2
Enclosed method lists in braces.
...
Added close methods to various object types.
1991-11-27 14:54:54 +00:00
Guido van Rossum
d97f048ae8
Fixed duplicate use of OFF macro.
1991-11-19 20:26:28 +00:00
Guido van Rossum
98d5433852
Added PROTO macro where needed.
1991-11-12 15:44:14 +00:00
Guido van Rossum
32db5e391b
Finally added form attributes.
1991-11-12 15:43:18 +00:00
Guido van Rossum
6d0b5a7880
Improved RGB --> grayscale conversion.
...
Changed error reporting somewhat.
1991-11-12 15:41:00 +00:00
Guido van Rossum
56a5afc7ea
Support JPEG option.
1991-11-12 15:40:36 +00:00
Guido van Rossum
d18ad58349
Added frexp, ldexp, modf, fmod.
1991-10-24 14:57:21 +00:00
Guido van Rossum
1242f1da67
Added a little comment
1991-10-20 20:28:02 +00:00
Guido van Rossum
85f5076962
Added __dict__ attributes all over the place.
1991-10-20 20:22:50 +00:00
Guido van Rossum
e0e5edcb6e
Added allowbroadcast()
1991-10-20 20:22:28 +00:00
Guido van Rossum
2df7bcca97
Done a little bit about garbage collection.
...
Made some routines a little bit more robust.
1991-10-20 20:18:26 +00:00
Guido van Rossum
d26d9ed2ec
Added lrect{read,write} and pixmode().
...
Also added functions (un)packrect, not in GL but needed for tv...
Commented out all the functions that cause error messages.
1991-10-20 20:13:40 +00:00
Guido van Rossum
c0aab89d96
Added some error checks.
1991-10-20 20:10:46 +00:00
Guido van Rossum
4f5eafb0cf
Return window ID of form (later should use attr list liek objects).
1991-09-13 15:32:37 +00:00
Guido van Rossum
8db0307399
Call (*func), not ALgetparams!
1991-09-13 15:31:47 +00:00
Guido van Rossum
54ba21bd76
Make Socktype global so old and new compilers will like it.
1991-09-10 14:57:12 +00:00
Guido van Rossum
b988c33d5a
getlonglongargs --> getlonglongarg
...
Fixed type error in argument of newopenfileobject.
1991-09-10 14:56:48 +00:00
Guido van Rossum
188f832ae6
Added module 'al' (SGI audio library).
1991-09-10 14:55:08 +00:00
Guido van Rossum
b3a5b9bc4a
Added queryparams, get/setparams.
...
Free config object used to get sample width.
1991-09-10 14:54:05 +00:00
Guido van Rossum
e3db862e5b
Initial revision
1991-09-09 23:33:34 +00:00
Guido van Rossum
b316515289
Changed some interfaces after error reports from Liberte.
...
Added altgetmatrix (better but incompatible).
1991-08-16 08:59:21 +00:00
Guido van Rossum
3fecef73d9
Added initfl() call when USE_FL is define.
1991-08-16 08:58:56 +00:00
Guido van Rossum
670690e2aa
Reflect changed file name in comments.
1991-08-16 08:57:40 +00:00
Guido van Rossum
abe5835b4f
Fixed almost all list errors.
1991-08-08 12:34:44 +00:00
Guido van Rossum
0374711fb3
Lots of cosmetic changes.
...
Lots of small bugfixes (lint!).
Made bgn_group and end_group form methods instead of top-level functions.
1991-08-08 12:10:01 +00:00
Guido van Rossum
75cc8980e8
Adde get_mouse and find_first/find_last (by robertl)
1991-08-08 12:07:45 +00:00
Guido van Rossum
c7df79e47d
Initial revision
1991-08-07 11:32:58 +00:00
Guido van Rossum
00c567ce6f
All mac compilers now use 1904 as the Epoch...
1991-07-27 23:09:30 +00:00
Guido van Rossum
8dcbbac15a
Added getxwindowin() method
1991-07-27 21:42:24 +00:00
Guido van Rossum
8119447fbe
Add gethostname() and s.avail().
1991-07-27 21:42:02 +00:00
Guido van Rossum
e0d452d5ef
Ignore SIGPIPE when we've opened a pipe
1991-07-27 21:41:01 +00:00
Guido van Rossum
1492c27350
Add some err_errno calls that were missing
1991-07-27 21:38:43 +00:00
Guido van Rossum
76a00af3f2
Support for long integers
1991-07-27 21:34:00 +00:00
Guido van Rossum
4dd2a7e45b
Connection sockets now have the proper family/type/proto values.
...
Fix argument handling bug in socket(f,t,p) call.
Fix some comments.
1991-07-01 18:51:33 +00:00
Guido van Rossum
9db401333f
Fixed confusing error message (open should be popen)
1991-07-01 18:48:44 +00:00
Guido van Rossum
49955ae360
Support socket module
1991-07-01 18:45:17 +00:00
Guido van Rossum
30a685f0fe
Many changes to the interface, and added comments.
1991-06-27 15:51:29 +00:00
Guido van Rossum
6574b3ee25
Initial revision
1991-06-25 21:36:08 +00:00
Guido van Rossum
1d2a9ade93
Generalize to macintosh; forget Think 3.0.
1991-06-24 22:23:45 +00:00
Guido van Rossum
76f2f2ef67
Apparently MPW has power() instead of pow().
1991-06-24 22:23:10 +00:00
Guido van Rossum
d783a46d73
printobject now returns an error code
1991-06-07 22:35:42 +00:00
Guido van Rossum
971443b7d4
Getpgrp() has a parameter, at least on BSD!
1991-06-07 13:59:29 +00:00
Guido van Rossum
5b02dbc2f8
Simplified STDWIN initialization.
1991-06-07 13:55:41 +00:00
Guido van Rossum
0481447f41
Added getpgrp(); fixed buggy calls to getnoarg().
1991-06-04 20:23:49 +00:00
Guido van Rossum
6f7b9598b5
Expoer "marshal" module.
1991-06-04 19:47:46 +00:00
Guido van Rossum
3b06619e1c
Added popen().
...
Added getmtime() function for use by ".pyc" processing.
1991-06-04 19:40:25 +00:00
Guido van Rossum
85e3b01f3b
Removed utimes() compatibility hack.
...
Added _exit, exec, fork, getpid, getppid, kill and wait.
1991-06-03 12:42:10 +00:00
Guido van Rossum
246b9d8258
Don't suppress wsetfont("");
...
Don't report WE_MENU events with None as menu pointer;
Added stdwin.getactie() function;
Moved code to turn WINDOW* into windowobject* to a separate function.
1991-06-03 10:55:14 +00:00
Guido van Rossum
4b9cf8eed9
Added text.setactive and text.setview.
...
Moved some functions around.
1991-05-28 21:57:04 +00:00
Guido van Rossum
a2a181a6a3
Added xor functions.
...
Hide/show focus hacks around tedraw are no longer needed.
1991-05-14 12:09:25 +00:00
Guido van Rossum
6a1f54c09c
Include sys/select.h for IBM R2
1991-05-05 20:15:54 +00:00
Guido van Rossum
541c8c0b2e
Added many new functions
1991-05-05 20:13:41 +00:00
Guido van Rossum
80c9d88cbf
New hacks for include files to get time_t in the most portable way.
...
Added Turbo C milli functions (courtesy Mark Anacker)
Disable THINK C sleep for 4.0
1991-04-16 08:47:51 +00:00
Guido van Rossum
27201069c0
Add filled drawing methods and polygon methods.
...
Sort some method lists.
Increase max #menus, and give more reasonable error message
if exceeded.
Remove window setfont method.
1991-04-16 08:43:03 +00:00
Guido van Rossum
ac029489d0
Added pwd and grp modules
1991-04-16 08:39:39 +00:00
Guido van Rossum
864407d112
Initial revision
1991-04-10 19:48:25 +00:00
Guido van Rossum
0ee42cdcf9
Incorporated MSDOS changes (untested).
1991-04-08 21:01:03 +00:00
Guido van Rossum
1ff6cb4f4f
Made utime use much more portable.
...
Incorporated i386 mods.
(Oh, BTW, the "right" python name is now posix.utime, not utimes!
1991-04-08 20:59:13 +00:00
Guido van Rossum
db46c0e4f8
Fix window.setfont() to call drawing_setfont internally.
1991-04-04 17:26:32 +00:00
Guido van Rossum
50429a1d2c
More flexible font setting (mainly for the Mac).
1991-04-04 15:24:07 +00:00
Guido van Rossum
6590d4a250
Hack for THINK C time function.
...
Made more functions externally visible.
1991-04-04 10:49:03 +00:00
Guido van Rossum
5662746a9e
Made millitimer() and millisleep() global (what the heck...).
1991-04-03 19:15:32 +00:00
Guido van Rossum
0c2290bd53
Added font, color and default scroll bars interfaces.
1991-04-03 19:12:14 +00:00
Guido van Rossum
5b7f945bc3
Moved get*doublearg() routines to modsupport.c
1991-04-03 19:06:03 +00:00
Guido van Rossum
a0c191eaa2
Initial revision
1991-04-03 19:02:31 +00:00
Guido van Rossum
2abc7a6a9a
Added font manager initialization.
1991-04-03 19:01:18 +00:00
Guido van Rossum
bf109736d9
Return value of drawing_generic was ignored! Foo!
1991-03-06 13:14:12 +00:00
Guido van Rossum
f70e43a073
Added copyright notice.
1991-02-19 12:39:46 +00:00
Guido van Rossum
426035c543
Added BSD implementations of millisleep.
1991-02-19 12:27:35 +00:00
Guido van Rossum
2d14e21382
Call winit() here instead of in main initialization.
1991-02-19 12:26:49 +00:00
Guido van Rossum
59e53a564c
Turned the list of init calls into a table (see import.c).
1991-02-19 12:22:24 +00:00
Guido van Rossum
33f1770ed8
Add getdefwinpos, getdefwinsize;
...
and improve mouse clipping for textedit blocks.
1991-02-13 23:19:39 +00:00
Guido van Rossum
c83fd37341
Moved getcwd() hack to its own file.
1991-01-21 14:28:19 +00:00
Guido van Rossum
28a83ab393
Made all configurable options optional (see Makefile).
1991-01-18 15:32:01 +00:00
Guido van Rossum
e8e7cf49c5
Added pollevent(); returns None if no event available.
...
Don't throw away key events with no window.
1991-01-16 14:06:18 +00:00
Guido van Rossum
6607f449be
Add backward compatibility with -s.
...
Add initregexp() call.
1991-01-02 13:50:48 +00:00
Guido van Rossum
801f473a4c
Add <errno.h>.
1990-12-20 23:09:14 +00:00
Guido van Rossum
aec7855227
Initial revision
1990-12-20 23:03:58 +00:00
Guido van Rossum
3f5da24ea3
"Compiling" version
1990-12-20 15:06:42 +00:00
Guido van Rossum
eb38d2411c
DECREF pi and e after inserting in symbol table.
1990-11-18 17:36:45 +00:00
Guido van Rossum
124967ca8c
Turn close commands into WE_CLOSE events.
...
Remove (broken) compatibility hacks from cutbuffer interface.
1990-11-06 15:17:35 +00:00
Guido van Rossum
5b10f454f7
Added w.setwincursor(), selection, and new cut buffer interface.
1990-10-30 16:01:48 +00:00
Guido van Rossum
01769f083f
Change set/getcutbuffer to use the new stdwin interface.
...
This makes it possible to cut/paste strings wuth embedded null bytes.
1990-10-30 13:39:00 +00:00
Guido van Rossum
7f77e2d4f8
Added prototype to declaration of strerror().
1990-10-30 13:34:38 +00:00
Guido van Rossum
738d4ddf81
Take out duplication of code in initmodule().
1990-10-26 14:59:30 +00:00
Guido van Rossum
9a1581ceca
Made posix_error back static as it should be.
1990-10-21 13:12:47 +00:00
Guido van Rossum
e8f305aec6
Change posix_error() to call err_errno().
1990-10-14 20:04:28 +00:00
Guido van Rossum
85a5fbbdfe
Initial revision
1990-10-14 12:07:46 +00:00