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