]> granicus.if.org Git - python/log
python
24 years agoA different solution for Patch #100979: support for out-of-tree "make TAGS"
Guido van Rossum [Mon, 31 Jul 2000 18:26:35 +0000 (18:26 +0000)]
A different solution for Patch #100979: support for out-of-tree "make TAGS"

The version there built the tags and TAGS files in the build
directory.  I like them in the source directory.  The simplest
solution is to cd to the source directory before running ctags or
etags.

Tested both superficially and they work for me, on Linux Red Hat 6.1.

24 years agoOrganized a little bit; merged in some items from the 1.5.2p2 branch that
Fred Drake [Mon, 31 Jul 2000 18:18:27 +0000 (18:18 +0000)]
Organized a little bit; merged in some items from the 1.5.2p2 branch that
did not get handled.

24 years agoUpdate to indicate the appropriate version of LaTeX2HTML. Update pointer
Fred Drake [Mon, 31 Jul 2000 17:56:58 +0000 (17:56 +0000)]
Update to indicate the appropriate version of LaTeX2HTML.  Update pointer
for retrieving new versions.

24 years agoMany changes to work with newer versions of LaTeX2HTML. This has been
Fred Drake [Mon, 31 Jul 2000 17:53:45 +0000 (17:53 +0000)]
Many changes to work with newer versions of LaTeX2HTML.  This has been
tested with version 99.2beta8.

24 years agoSmall changes to reflect changes in LaTeX2HTML support for newer versions
Fred Drake [Mon, 31 Jul 2000 17:47:49 +0000 (17:47 +0000)]
Small changes to reflect changes in LaTeX2HTML support for newer versions
of LaTeX2HTML.

24 years agoTwo minor nits from Gerry Weiner (no working email address) about
Fred Drake [Mon, 31 Jul 2000 16:34:46 +0000 (16:34 +0000)]
Two minor nits from Gerry Weiner (no working email address) about
describing the methods of dictionaries.

24 years agoAlways pass the split level to LaTeX2HTML as a command line option since
Fred Drake [Mon, 31 Jul 2000 15:55:22 +0000 (15:55 +0000)]
Always pass the split level to LaTeX2HTML as a command line option since
newer versions only process one initialization file, and do so at a
different time than previous versions.

24 years agoMoshe Zadka <mzadka@geocities.com>:
Fred Drake [Mon, 31 Jul 2000 15:45:46 +0000 (15:45 +0000)]
Moshe Zadka <mzadka@geocities.com>:
Document new method in shutil (copyfileobj).
Minor clarification by Fred.

24 years agomerge Include/my*.h into Include/pyport.h
Peter Schneider-Kamp [Mon, 31 Jul 2000 15:28:04 +0000 (15:28 +0000)]
merge Include/my*.h into Include/pyport.h

marked my*.h as obsolete

24 years agoUpdate, 'cause Guido said it should be this way.
Fred Drake [Mon, 31 Jul 2000 14:31:28 +0000 (14:31 +0000)]
Update, 'cause Guido said it should be this way.

24 years agoFix inconsistent use of tab/space in indentation.
Thomas Wouters [Sun, 30 Jul 2000 15:38:35 +0000 (15:38 +0000)]
Fix inconsistent use of tab/space in indentation.

24 years agoMore Windows changes.
Mark Hammond [Sun, 30 Jul 2000 02:46:26 +0000 (02:46 +0000)]
More Windows changes.

* After discussion with Trent, all INT_PTR references have been removed in favour of the HANDLE it should always have been.  Trent can see no 64bit issues here.

* In this process, I noticed that the close operation was dangerous, in that we could end up passing bogus results to the Win32 API.  These result of the API functions passed the bogus values were never (and still are not) checked, but this is closer to "the right thing" (tm) than before.

Tested on Windows and Linux.

24 years agoFixes for Windows (but also tested on Linux). Test suite now completes, and this...
Mark Hammond [Sun, 30 Jul 2000 02:22:43 +0000 (02:22 +0000)]
Fixes for Windows (but also tested on Linux).  Test suite now completes, and this module should not leak in the face of errors.

Checkin that replaces the INT_PTR types with HANDLEs still TBD (but as that is a "spelling" patch, rather than a functional one, I will commit it seperately.

24 years agoTest that after resizing the mmap'd file, we can't seek beyond the new size.
Mark Hammond [Sun, 30 Jul 2000 02:20:38 +0000 (02:20 +0000)]
Test that after resizing the mmap'd file, we can't seek beyond the new size.

24 years agoCatch syntax errors from processing template lines and turn them into
Greg Ward [Sun, 30 Jul 2000 01:47:16 +0000 (01:47 +0000)]
Catch syntax errors from processing template lines and turn them into
  mere warnings.
Call 'findall()' on our FileList object before we start using it seriously.

24 years agoAdded list-like methods: 'append()', 'extend()', 'sort()'.
Greg Ward [Sun, 30 Jul 2000 01:45:42 +0000 (01:45 +0000)]
Added list-like methods: 'append()', 'extend()', 'sort()'.
Added 'remove_duplicates()'.
Simplified constructor: no longer take 'files' or 'allfiles' as args,
  and no longer have 'dir' attribute at all.
Added 'set_allfiles()' and 'findall()' so the client does have a
  way to set the list of all files.
Changed 'include_pattern()' to use the 'findall()' method instead of
  the external function.  (Of course, the method is just a trivial
  wrapper around the function.)

24 years agoReplaced 'self.files' with 'self.filelist': now we carry around a FileList
Greg Ward [Sun, 30 Jul 2000 01:30:31 +0000 (01:30 +0000)]
Replaced 'self.files' with 'self.filelist': now we carry around a FileList
instance instead of a list of filenames.  Simplifies the "sdist" command
only a bit, but should allow greater simplification of FileList.

24 years agoThe other half of Rene Liebscher's patch to add the Template class,
Greg Ward [Sun, 30 Jul 2000 01:05:02 +0000 (01:05 +0000)]
The other half of Rene Liebscher's patch to add the Template class,
which I renamed to FileList: remove all the file-list-generation code from
the sdist command and adapt it to use the new FileList class instead.

24 years agoTypo fix.
Greg Ward [Sun, 30 Jul 2000 01:04:22 +0000 (01:04 +0000)]
Typo fix.

24 years agoAdded DistutilsTemplateError.
Greg Ward [Sun, 30 Jul 2000 01:03:31 +0000 (01:03 +0000)]
Added DistutilsTemplateError.

24 years agoDitched the unused 'recursive_exclude_pattern()' method.
Greg Ward [Sun, 30 Jul 2000 00:37:04 +0000 (00:37 +0000)]
Ditched the unused 'recursive_exclude_pattern()' method.

24 years agoRenamed 'select_pattern()' to 'include_pattern()'.
Greg Ward [Sun, 30 Jul 2000 00:36:25 +0000 (00:36 +0000)]
Renamed 'select_pattern()' to 'include_pattern()'.
Other cosmetic/doc/comment tweaks.

24 years agoRenamed 'process_line()' to 'process_template_line()', and factored out
Greg Ward [Sun, 30 Jul 2000 00:21:36 +0000 (00:21 +0000)]
Renamed 'process_line()' to 'process_template_line()', and factored out
'_parse_template_line()'.

24 years agoAdded class docstring and ditched inappropriate class attrs.
Greg Ward [Sun, 30 Jul 2000 00:08:13 +0000 (00:08 +0000)]
Added class docstring and ditched inappropriate class attrs.
Indentation/whitspace fixes.

24 years agoProvides the FileList class for building a list of filenames by exploring
Greg Ward [Sun, 30 Jul 2000 00:04:17 +0000 (00:04 +0000)]
Provides the FileList class for building a list of filenames by exploring
the filesystem, and filtering the list by applying various patterns.

Initial revision (almost) as supplied in a patch by Rene Liebscher; I
just renamed the class from Template to FileList, and the module
accordingly.

24 years agoExercise .readline() and .readlines(). More data is written to the
Andrew M. Kuchling [Sat, 29 Jul 2000 20:18:34 +0000 (20:18 +0000)]
Exercise .readline() and .readlines().  More data is written to the
test file, too, so the methods have more work to do.

24 years agoSF patch #100740: Add optional size arguments to .readline() and
Andrew M. Kuchling [Sat, 29 Jul 2000 20:15:26 +0000 (20:15 +0000)]
SF patch #100740: Add optional size arguments to .readline() and
.readlines() methods.  Inspired by a patch from Wolfgang Grafen,
though this version of the patch was completely rewritten from his
code.

24 years agoRemoved Tools/perfecthash, per python-dev discussion
Andrew M. Kuchling [Sat, 29 Jul 2000 13:24:39 +0000 (13:24 +0000)]
Removed Tools/perfecthash, per python-dev discussion

24 years agoAdded support to recognize Python's internal "dumbdbm" database.
Moshe Zadka [Sat, 29 Jul 2000 05:31:40 +0000 (05:31 +0000)]
Added support to recognize Python's internal "dumbdbm" database.
This closes bug 200 on Jitterbug.

24 years agoUsing shutil's function to copy data between file objects instead
Moshe Zadka [Sat, 29 Jul 2000 05:15:56 +0000 (05:15 +0000)]
Using shutil's function to copy data between file objects instead
of rolling our own.

Note:
This is my first sourceforge checkin. If you see anything funny about
this patch, please let me know.

24 years agoFinally fixed the much-reported bug about "~" in a couple of example.
Fred Drake [Fri, 28 Jul 2000 13:51:27 +0000 (13:51 +0000)]
Finally fixed the much-reported bug about "~" in a couple of example.
This time, it was reported by Skip.

24 years agoAdd the exceptions module to the 'never' list -- it is built in.
Guido van Rossum [Fri, 28 Jul 2000 10:34:48 +0000 (10:34 +0000)]
Add the exceptions module to the 'never' list -- it is built in.

24 years agoWas quite broken and incomplete. Now passes the test suite, but is still incomplete.
Mark Hammond [Fri, 28 Jul 2000 03:45:32 +0000 (03:45 +0000)]
Was quite broken and incomplete.  Now passes the test suite, but is still incomplete.

24 years agoAllow any object supporting the buffer protocol to be written as a binary object.
Mark Hammond [Fri, 28 Jul 2000 03:44:41 +0000 (03:44 +0000)]
Allow any object supporting the buffer protocol to be written as a binary object.

24 years agoFix a type in the docstrings, and make the module Unicode aware.
Mark Hammond [Fri, 28 Jul 2000 03:42:40 +0000 (03:42 +0000)]
Fix a type in the docstrings, and make the module Unicode aware.

24 years agoRemove erroneous empty trailing line. (cause test_winreg.py failure)
Trent Mick [Thu, 27 Jul 2000 23:26:28 +0000 (23:26 +0000)]
Remove erroneous empty trailing line. (cause test_winreg.py failure)

24 years agoGregor Hoffleit: don't link with libnet on non-BeOS systems
Jeremy Hylton [Thu, 27 Jul 2000 21:23:28 +0000 (21:23 +0000)]
Gregor Hoffleit: don't link with libnet on non-BeOS systems

24 years agoSecond round of curses documentation improvements. Completes and extends
Eric S. Raymond [Thu, 27 Jul 2000 21:10:02 +0000 (21:10 +0000)]
Second round of curses documentation improvements.  Completes and extends
documentation for function keys, special characters.

24 years agoGregor Hoffleit: Don't link with the libieee library if it's not necessary
Jeremy Hylton [Thu, 27 Jul 2000 21:03:04 +0000 (21:03 +0000)]
Gregor Hoffleit: Don't link with the libieee library if it's not necessary

24 years agoRip out the information about the PSA, since the fate of that is not
Fred Drake [Thu, 27 Jul 2000 20:55:12 +0000 (20:55 +0000)]
Rip out the information about the PSA, since the fate of that is not
certain.

Update the information about the mailing list, using the python.org
address instead of cwi.nl, and point to the pipermail archives.  Also
update the daily average message count (at the risk of scaring people
off), using the mail archive at http://www.egroups.com/group/python-list
for the first half of 2000 for statistical information.

24 years agoadded .cvsignore so cvs doesn't complain about the generated graminit.h and
Skip Montanaro [Thu, 27 Jul 2000 20:31:12 +0000 (20:31 +0000)]
added .cvsignore so cvs doesn't complain about the generated graminit.h and
graminit.c files.

24 years agoAdded list of missing functions as a comment
Andrew M. Kuchling [Thu, 27 Jul 2000 11:58:01 +0000 (11:58 +0000)]
Added list of missing functions as a comment

24 years ago-- changed test to work on platforms which have os.popen
Fredrik Lundh [Thu, 27 Jul 2000 07:42:43 +0000 (07:42 +0000)]
-- changed test to work on platforms which have os.popen
   but no os.fork

24 years agoBump version to 0.9.1pre.
Greg Ward [Thu, 27 Jul 2000 02:17:40 +0000 (02:17 +0000)]
Bump version to 0.9.1pre.

24 years agoFixed a grab-bag of typos spotted by Rob Hooft.
Greg Ward [Thu, 27 Jul 2000 02:13:20 +0000 (02:13 +0000)]
Fixed a grab-bag of typos spotted by Rob Hooft.

24 years agoRemove unused 'search_dir()' method.
Greg Ward [Thu, 27 Jul 2000 01:58:45 +0000 (01:58 +0000)]
Remove unused 'search_dir()' method.
Comment tweak.

24 years agoFix to call 'library_filename()' instead of the non-existent
Greg Ward [Thu, 27 Jul 2000 01:23:19 +0000 (01:23 +0000)]
Fix to call 'library_filename()' instead of the non-existent
'shared_library_filename()'.

24 years agoTypo fix from David Ascher.
Greg Ward [Thu, 27 Jul 2000 01:21:54 +0000 (01:21 +0000)]
Typo fix from David Ascher.

24 years agoComment out a debugging print (spotted by Michael Deegan)
Andrew M. Kuchling [Wed, 26 Jul 2000 18:36:27 +0000 (18:36 +0000)]
Comment out a debugging print (spotted by Michael Deegan)

24 years ago- changed windows pclose to make sure we don't return before the
Fredrik Lundh [Wed, 26 Jul 2000 17:29:12 +0000 (17:29 +0000)]
- changed windows pclose to make sure we don't return before the
  underlying process has terminated
  (bug fix from David Bolen)

24 years agoMake mode_t available for the declaration of _getpty().
Sjoerd Mullender [Wed, 26 Jul 2000 15:46:29 +0000 (15:46 +0000)]
Make mode_t available for the declaration of _getpty().

24 years agoPatch #100873 - Use registry to find proxies for urllib on Win32
Mark Hammond [Wed, 26 Jul 2000 07:04:38 +0000 (07:04 +0000)]
Patch #100873 - Use registry to find proxies for urllib on Win32

Note that this patch looks worse than it is - an existing function (getproxies() for all platforms other than Win/Mac) has been moved, renamed and indentation changed, but the body of that function is identical.  Windows now allows the environment variables to override the registry.

24 years agoFix UCNs machine with >= 32bit longs
Jeremy Hylton [Wed, 26 Jul 2000 03:56:06 +0000 (03:56 +0000)]
Fix UCNs machine with >= 32bit longs
originally submitted by Bill Tutt

Note: This code is actually going to be replaced in 2.0 by /F's new
database.  Until then, this patch keeps the test suite working.

24 years agoDocument tiget{flag,num,str}
Andrew M. Kuchling [Wed, 26 Jul 2000 02:59:13 +0000 (02:59 +0000)]
Document tiget{flag,num,str}

24 years agoAdded wrappers for tiget{flag,num,str}, for querying terminfo capabilities
Andrew M. Kuchling [Wed, 26 Jul 2000 02:57:20 +0000 (02:57 +0000)]
Added wrappers for tiget{flag,num,str}, for querying terminfo capabilities

24 years agoadded test case for fixed duplicate arguments bug in Python/compile.c
Peter Schneider-Kamp [Tue, 25 Jul 2000 22:15:45 +0000 (22:15 +0000)]
added test case for fixed duplicate arguments bug in Python/compile.c

24 years agoAdd entries for the distutils documents to the directories table.
Fred Drake [Tue, 25 Jul 2000 19:27:17 +0000 (19:27 +0000)]
Add entries for the distutils documents to the directories table.

24 years agoThis script demonstrates use of the visitor interface of the compiler
Jeremy Hylton [Tue, 25 Jul 2000 16:43:23 +0000 (16:43 +0000)]
This script demonstrates use of the visitor interface of the compiler
package.

24 years agomakedirs(), removedirs(): If the tail of the path is empty, do a second
Fred Drake [Tue, 25 Jul 2000 15:16:40 +0000 (15:16 +0000)]
makedirs(), removedirs():  If the tail of the path is empty, do a second
split so the logic does not fail in corner cases.

This closes bug #407.

24 years agoa couple of nits from Patch #100933
Jeremy Hylton [Tue, 25 Jul 2000 14:34:38 +0000 (14:34 +0000)]
a couple of nits from Patch #100933

24 years agoUse 'void' directly instead of the ANY #define, now that all code is ANSI C.
Thomas Wouters [Tue, 25 Jul 2000 12:56:38 +0000 (12:56 +0000)]
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
Leave the actual #define in for API compatibility.

24 years agoModified version of patch #100963 from Mark Favas: has_key() is an
Andrew M. Kuchling [Tue, 25 Jul 2000 12:37:41 +0000 (12:37 +0000)]
Modified version of patch #100963 from Mark Favas:  has_key() is an
ncurses extension, so it's made conditional depending on STRICT_SYSV_CURSES

24 years agoMade an error message slightly more useful if select() returns something goofy
Andrew M. Kuchling [Tue, 25 Jul 2000 00:51:31 +0000 (00:51 +0000)]
Made an error message slightly more useful if select() returns something goofy

24 years agoBug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:
Andrew M. Kuchling [Mon, 24 Jul 2000 23:54:49 +0000 (23:54 +0000)]
Bug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:
reversed tests resulted in an exception when you supplied the correct number
of arguments

24 years agoOnly use one initialization file for LaTeX2HTML; more recent versions only
Fred Drake [Mon, 24 Jul 2000 23:03:32 +0000 (23:03 +0000)]
Only use one initialization file for LaTeX2HTML; more recent versions only
use the last one specified on the command line instead of all of them.
Smaller changes to reflect updated support.

24 years ago-- updated to include known problems in SRE 0.9.6
Fredrik Lundh [Mon, 24 Jul 2000 22:35:11 +0000 (22:35 +0000)]
-- updated to include known problems in SRE 0.9.6
   (cf. test/output/test_sre)

24 years agoOops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_...
Jack Jansen [Mon, 24 Jul 2000 19:59:17 +0000 (19:59 +0000)]
Oops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_ParseTuple format strings.

24 years agoAdded more prototypes.
Jack Jansen [Mon, 24 Jul 2000 19:52:52 +0000 (19:52 +0000)]
Added more prototypes.

24 years agoAdded PyMac_getscript() which returns the pythonic name of the current script. Not...
Jack Jansen [Mon, 24 Jul 2000 19:50:16 +0000 (19:50 +0000)]
Added PyMac_getscript() which returns the pythonic name of the current script. Not ideal and not complete, but good enough for the time being. Idea and most of the code by Fredrik Lund.

24 years agoDeclare fileno() with prototype if USE_GUSI2 defined. This isn't really the right...
Jack Jansen [Mon, 24 Jul 2000 19:46:27 +0000 (19:46 +0000)]
Declare fileno() with prototype if USE_GUSI2 defined. This isn't really the right place, but it will have to do for now.

24 years agoIf any of the builds in a group fails offer to stop the fullbuild process and open...
Jack Jansen [Mon, 24 Jul 2000 19:45:07 +0000 (19:45 +0000)]
If any of the builds in a group fails offer to stop the fullbuild process and open the failing projects in codewarrior.

24 years agoAdded a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without...
Jack Jansen [Mon, 24 Jul 2000 19:44:17 +0000 (19:44 +0000)]
Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without posting the dialog. This is the normal situation since 1.6alfa (no more 68k support).

24 years agoPut in an earlier include of sys/signal.h (within ifdef USE_GUSI) to forestal a multi...
Jack Jansen [Mon, 24 Jul 2000 19:42:53 +0000 (19:42 +0000)]
Put in an earlier include of sys/signal.h (within ifdef USE_GUSI) to forestal a multiple define.

24 years agoFix small typos and markup consistency nits.
Fred Drake [Mon, 24 Jul 2000 19:35:52 +0000 (19:35 +0000)]
Fix small typos and markup consistency nits.

24 years agoRemove unused variable and what looks like an ancient relic of an old
Thomas Wouters [Mon, 24 Jul 2000 16:26:35 +0000 (16:26 +0000)]
Remove unused variable and what looks like an ancient relic of an old
version of SSLeay (now known as OpenSSL.)

24 years agoCreate a new section of pyport.h to hold all external function declarations
Thomas Wouters [Mon, 24 Jul 2000 16:06:23 +0000 (16:06 +0000)]
Create a new section of pyport.h to hold all external function declarations
for systems that are missing those declarations from system include files.
Start by moving a pointy-haired ones from their previous locations to the
new section.

(The gethostname() one, for instance, breaks on several systems, because
some define it as (char *, size_t) and some as (char *, int).)

I purposely decided not to include the summary of used #defines like Tim did
in the first section of pyport.h. In my opinion, the number of #defines
likedly to be used by this section would make such an overview unwieldy. I
would suggest documenting the non-obvious ones, though.

24 years agochange some occurence of python15.dll to python20.dll
Peter Schneider-Kamp [Mon, 24 Jul 2000 16:02:00 +0000 (16:02 +0000)]
change some occurence of python15.dll to python20.dll

closes patch #100956

24 years agoANSIfy a bit more.
Thomas Wouters [Mon, 24 Jul 2000 15:49:08 +0000 (15:49 +0000)]
ANSIfy a bit more.

24 years agoFix floattime prototype ((void), not (double))
Thomas Wouters [Mon, 24 Jul 2000 15:26:39 +0000 (15:26 +0000)]
Fix floattime prototype ((void), not (double))

24 years agoANSIfy some more forward declarations.
Thomas Wouters [Mon, 24 Jul 2000 14:43:35 +0000 (14:43 +0000)]
ANSIfy some more forward declarations.

24 years agoPrototype yet another forward declaration.
Thomas Wouters [Mon, 24 Jul 2000 14:39:50 +0000 (14:39 +0000)]
Prototype yet another forward declaration.

24 years agoDon't call BringToFront() on the dialog object, but call GetDialogWindow() to get...
Jack Jansen [Mon, 24 Jul 2000 14:07:15 +0000 (14:07 +0000)]
Don't call BringToFront() on the dialog object, but call GetDialogWindow() to get a window object.

24 years ago... and yet more ANSIfications...
Thomas Wouters [Mon, 24 Jul 2000 11:36:47 +0000 (11:36 +0000)]
... and yet more ANSIfications...

24 years agoANSIfy yet another hidden function definition.
Thomas Wouters [Mon, 24 Jul 2000 11:26:25 +0000 (11:26 +0000)]
ANSIfy yet another hidden function definition.

24 years agoFix typo in previous patch.
Thomas Wouters [Mon, 24 Jul 2000 11:17:40 +0000 (11:17 +0000)]
Fix typo in previous patch.

24 years ago*** empty log message ***
Thomas Wouters [Mon, 24 Jul 2000 11:09:37 +0000 (11:09 +0000)]
*** empty log message ***

24 years agoRemove function-less prototype (old function that was removed ?) that
Thomas Wouters [Mon, 24 Jul 2000 10:58:31 +0000 (10:58 +0000)]
Remove function-less prototype (old function that was removed ?) that
happens to be a C++ reserved word, too.

24 years agoRestore TestSkipped exception; appears to have disappeared in last checkin.
Fred Drake [Mon, 24 Jul 2000 06:55:00 +0000 (06:55 +0000)]
Restore TestSkipped exception; appears to have disappeared in last checkin.
Make both TextFailed and TestSkipped subclasses of Error, which derives
from Exception.  Docstrings have been added for the exceptions and module.

24 years agoFirst round of curses documentation improvements; correct errors, flesh out
Eric S. Raymond [Mon, 24 Jul 2000 03:28:40 +0000 (03:28 +0000)]
First round of curses documentation improvements; correct errors, flesh out
entry point descriptions.

24 years agoPatch #100926 - Better error messages for socket exceptions on Windows. [Slight...
Mark Hammond [Mon, 24 Jul 2000 01:45:11 +0000 (01:45 +0000)]
Patch #100926 - Better error messages for socket exceptions on Windows.  [Slight style differences from posted patch]

24 years agoAnother missed ansification.
Thomas Wouters [Sun, 23 Jul 2000 22:21:32 +0000 (22:21 +0000)]
Another missed ansification.

24 years agoANSIfy functions that were hiding inside a macro.
Thomas Wouters [Sun, 23 Jul 2000 22:09:59 +0000 (22:09 +0000)]
ANSIfy functions that were hiding inside a macro.

24 years ago-- SRE 0.9.6 sync. this includes:
Fredrik Lundh [Sun, 23 Jul 2000 21:46:17 +0000 (21:46 +0000)]
-- SRE 0.9.6 sync.  this includes:

 + added "regs" attribute
 + fixed "pos" and "endpos" attributes
 + reset "lastindex" and "lastgroup" in scanner methods
 + removed (?P#id) syntax; the "lastindex" and "lastgroup"
   attributes are now always set
 + removed string module dependencies in sre_parse
 + better debugging support in sre_parse
 + various tweaks to build under 1.5.2

24 years agoRemoved all instances of RETSIGTYPE from the source code: signal
Tim Peters [Sun, 23 Jul 2000 21:18:09 +0000 (21:18 +0000)]
Removed all instances of RETSIGTYPE from the source code:  signal
handlers "return void", according to ANSI C.
Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro.
Left RETSIGTYPE in the config stuff, because it's not clear to
me that others aren't relying on it (e.g., extension modules).

24 years ago-- added code to the new Windows popen functions to make close
Fredrik Lundh [Sun, 23 Jul 2000 19:47:12 +0000 (19:47 +0000)]
-- added code to the new Windows popen functions to make close
   return the exit code.  Only works on Windows NT/2000, due to
   limitations in the Win9X shell.
   (based on patch #100941 by David Bolen)

24 years agoIncluded assert.h in Python.h -- it's absurd that this basic tool of
Tim Peters [Sun, 23 Jul 2000 19:28:35 +0000 (19:28 +0000)]
Included assert.h in Python.h -- it's absurd that this basic tool of
good C practice hasn't been available to everything all along.
Added Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) macro to pyport.h; this
just casts VALUE from type WIDE to type NARROW, but assert-fails if
Py_DEBUG is defined and info is lost due to casting.
Replaced a line in Fredrik's fix to marshal.c to use the new macro.

24 years agoMissed a return from a signal handler -- thanks to /F for pointing
Tim Peters [Sun, 23 Jul 2000 18:33:52 +0000 (18:33 +0000)]
Missed a return from a signal handler -- thanks to /F for pointing
it out!

24 years ago-- changed w_more to take an integer instead of a char
Fredrik Lundh [Sun, 23 Jul 2000 18:24:06 +0000 (18:24 +0000)]
-- changed w_more to take an integer instead of a char
   (this is what the callers expect).

24 years agoRecent ANSIfication introduced a couple instances of
Tim Peters [Sun, 23 Jul 2000 18:10:18 +0000 (18:10 +0000)]
Recent ANSIfication introduced a couple instances of
    #if RETSIGTYPE != void
That isn't C, and MSVC properly refuses to compile it.
Introduced new Py_RETURN_FROM_SIGNAL_HANDLER macro in pyport.h
to expand to the correct thing based on RETSIGTYPE.  However,
only void is ANSI!  Do we still have platforms that return int?
The Unix config mess appears to #define RETSIGTYPE by magic
without being asked to, so I assume it's "a problem" across
Unices still.

24 years agoOops. One of last nights ANSIfication patches accidentily upped the bytecode
Thomas Wouters [Sun, 23 Jul 2000 09:20:08 +0000 (09:20 +0000)]
Oops. One of last nights ANSIfication patches accidentily upped the bytecode
MAGIC number. When updating it next time, be sure it's higher than 50715 *
constants. (Shouldn't be a problem if everyone keeps to the proper
algorithm.)