]> granicus.if.org Git - python/log
python
23 years agoPatch #50002: Display line information for bad \x escapes:
Martin v. Löwis [Sun, 3 Mar 2002 21:30:27 +0000 (21:30 +0000)]
Patch #50002: Display line information for bad \x escapes:
- recognize "SyntaxError"s by the print_file_and_line attribute.
- add the syntaxerror attributes to all exceptions in compile.c.
Fixes #221791

23 years agoSF #506611, fix sys.setprofile(), sys.settrace() core dumps
Neal Norwitz [Sun, 3 Mar 2002 15:12:58 +0000 (15:12 +0000)]
SF #506611, fix sys.setprofile(), sys.settrace() core dumps
when no arguments are passed

23 years agoOS/2 more program behaves like Win32 more
Andrew MacIntyre [Sun, 3 Mar 2002 03:12:30 +0000 (03:12 +0000)]
OS/2 more program behaves like Win32 more
(see patch #514490, by Stefan Schwarzer)

23 years agoOS/2 EMX port changes (Modules part of patch #450267):
Andrew MacIntyre [Sun, 3 Mar 2002 03:07:07 +0000 (03:07 +0000)]
OS/2 EMX port changes (Modules part of patch #450267):
  Modules/
    posixmodule.c

- use SEP,ALTSEP #defines instead of hard coded path separator chars
- use EMX specific variants of chdir2(),getcwd() that support drive letters
- OS/2+EMX spawnv(),spawnve() support
- EMX specific popen[234]() derived from Win32 popen[234]() code

23 years agoOS/2 EMX port changes (Modules part of patch #450267):
Andrew MacIntyre [Sun, 3 Mar 2002 03:03:52 +0000 (03:03 +0000)]
OS/2 EMX port changes (Modules part of patch #450267):
  Modules/
    socketmodule.c

EMX handles sockets like Posix, rather than use native APIs

23 years agoOS/2 EMX port changes (Modules part of patch #450267):
Andrew MacIntyre [Sun, 3 Mar 2002 02:59:16 +0000 (02:59 +0000)]
OS/2 EMX port changes (Modules part of patch #450267):
  Modules/
    _hotshot.c
    dbmmodule.c
    fcntlmodule.c
    main.c
    pwdmodule.c
    readline.c
    selectmodule.c
    signalmodule.c
    termios.c
    timemodule.c
    unicodedata.c

23 years agoAdded support for SyncCGContextOriginWithPort().
Just van Rossum [Sat, 2 Mar 2002 10:20:44 +0000 (10:20 +0000)]
Added support for SyncCGContextOriginWithPort().

23 years agoWhether platform malloc(0) returns NULL has nothing to do with whether
Tim Peters [Sat, 2 Mar 2002 08:43:19 +0000 (08:43 +0000)]
Whether platform malloc(0) returns NULL has nothing to do with whether
platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can
be correctly undefined yet realloc(p, 0) can return NULL anyway.

Prevent realloc(p, 0) doing free(p) and returning NULL via a different
hack.  Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL
entirely.

Bugfix candidate.

23 years agoFirst work on making config changes dynamic,
Steven M. Gava [Sat, 2 Mar 2002 07:16:21 +0000 (07:16 +0000)]
First work on making config changes dynamic,
dynamic theme changes

23 years agoFor clarity, change _longobject to build directly from PyObject_VAR_HEAD
Tim Peters [Sat, 2 Mar 2002 04:33:09 +0000 (04:33 +0000)]
For clarity, change _longobject to build directly from PyObject_VAR_HEAD
instead of faking it by hand.  It *is* a var object, and nothing but
hysterical raisins to pretend it's an oddball.

23 years ago_PyLong_Copy(): was creating a copy of the absolute value, but should
Tim Peters [Sat, 2 Mar 2002 04:18:04 +0000 (04:18 +0000)]
_PyLong_Copy():  was creating a copy of the absolute value, but should
copy the sign too.  Added a test to test_descr to ensure that it does.

Bugfix candidate.

23 years agoRevert the last odd change to PyNumber_Long: the problem it was trying
Tim Peters [Sat, 2 Mar 2002 04:14:21 +0000 (04:14 +0000)]
Revert the last odd change to PyNumber_Long:  the problem it was trying
to fix was almost certainly a bug in _PyLong_Copy (which I'll fix next).

23 years agoAdded PortableUnixMailbox to the __all__ variable, and in the __main__
Barry Warsaw [Fri, 1 Mar 2002 22:39:14 +0000 (22:39 +0000)]
Added PortableUnixMailbox to the __all__ variable, and in the __main__
section use this class instead of UnixMailbox as per the comments in
the latter's class.

Bug fix candidate for 2.2.1.

23 years agoSF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects
Guido van Rossum [Fri, 1 Mar 2002 22:24:49 +0000 (22:24 +0000)]
SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects

Due to the bizarre definition of _PyLong_Copy(), creating an instance
of a subclass of long with a negative value could cause core dumps
later on.  Unfortunately it looks like the behavior of _PyLong_Copy()
is quite intentional, so the fix is more work than feels comfortable.

This fix is almost, but not quite, the code that Naofumi Honda added;
in addition, I added a test case.

23 years agoSF patch 517245 by Marc Recht.
Guido van Rossum [Fri, 1 Mar 2002 21:31:27 +0000 (21:31 +0000)]
SF patch 517245 by Marc Recht.

Support GMP version >= 2.

Bugfix candidate.

23 years agoChanges to what we do to modules that don't import, as
Michael W. Hudson [Fri, 1 Mar 2002 14:16:31 +0000 (14:16 +0000)]
Changes to what we do to modules that don't import, as
discussed on python-dev.

23 years agoPatch #524008: Fix portability bug on new POSIX hosts
Martin v. Löwis [Fri, 1 Mar 2002 13:15:30 +0000 (13:15 +0000)]
Patch #524008: Fix portability bug on new POSIX hosts

23 years agoSF #517447, correct syntax error
Neal Norwitz [Fri, 1 Mar 2002 13:07:34 +0000 (13:07 +0000)]
SF #517447, correct syntax error

23 years agoPatch #523268, #522027: return enhanced tuples.
Martin v. Löwis [Fri, 1 Mar 2002 10:47:37 +0000 (10:47 +0000)]
Patch #523268, #522027: return enhanced tuples.

23 years agoPatch #523268, #522027: return enhanced tuples.
Martin v. Löwis [Fri, 1 Mar 2002 10:38:44 +0000 (10:38 +0000)]
Patch #523268, #522027: return enhanced tuples.

23 years agoPatch 520694: arraymodule.c improvements:
Martin v. Löwis [Fri, 1 Mar 2002 10:27:01 +0000 (10:27 +0000)]
Patch 520694: arraymodule.c improvements:
- make array.array a type
- add Py_UNICODE arrays
- support +=, *=

23 years agoPatch #520062: Support IPv6 with VC.NET.
Martin v. Löwis [Fri, 1 Mar 2002 08:31:07 +0000 (08:31 +0000)]
Patch #520062: Support IPv6 with VC.NET.

23 years agoCells are not VAR objects.
Jeremy Hylton [Thu, 28 Feb 2002 23:46:34 +0000 (23:46 +0000)]
Cells are not VAR objects.

Noted by Jason Orendorff, SF #520768.

Bug fix candidate for 2.1 & 2.2.

23 years agoSF patch 518765 (Derek Harland): Bug in copy.py when used through
Guido van Rossum [Thu, 28 Feb 2002 23:19:52 +0000 (23:19 +0000)]
SF patch 518765 (Derek Harland): Bug in copy.py when used through
rexec.

When using a restricted environment, imports of copy will fail with an
AttributeError when trying to access types.CodeType.

Bugfix candidate (all the way back to 1.5.3, but at least 2.1.3 and
2.2.1).

23 years agoSF patch 522961: Leak in Python/thread_nt.h, from Gerald S. Williams.
Tim Peters [Thu, 28 Feb 2002 21:34:34 +0000 (21:34 +0000)]
SF patch  522961: Leak in Python/thread_nt.h, from Gerald S. Williams.
A file-static "threads" dict mapped thread IDs to Windows handles, but
was never referenced, and entries never got removed.  This gets rid of
the YAGNI-dict entirely.
Bugfix candidate.

23 years agoPyGC_Head: Use "long double" instead of "double" as the worst-case
Tim Peters [Thu, 28 Feb 2002 19:38:51 +0000 (19:38 +0000)]
PyGC_Head:  Use "long double" instead of "double" as the worst-case
alignment gimmick.  David Abrahams notes that the standard "long double"
actually requires stricter alignment than "double" on some Tru64 box.
On my box and yours <wink>, it's the same, so no harm done on most
boxes.

23 years agoSF patch #524005 by Paul Eggert.
Guido van Rossum [Thu, 28 Feb 2002 19:26:08 +0000 (19:26 +0000)]
SF patch #524005 by Paul Eggert.

Use posixly correct sort args.

Bugfix candidate.

23 years agoPatch #522279: transformer.py nodes shadows global.
Martin v. Löwis [Thu, 28 Feb 2002 17:48:48 +0000 (17:48 +0000)]
Patch #522279: transformer.py nodes shadows global.

23 years agoCorrect various errors:
Martin v. Löwis [Thu, 28 Feb 2002 15:24:47 +0000 (15:24 +0000)]
Correct various errors:
- Use substring search, not re search for user-agent and paths.
- Consider * entry last. Unquote, then requote URLs.
- Treat empty Disallow as "allow everything".
Add test cases. Fixes #523041

23 years ago%#x/%#X format conversion cleanup (see patch #450267):
Andrew MacIntyre [Thu, 28 Feb 2002 11:38:24 +0000 (11:38 +0000)]
%#x/%#X format conversion cleanup (see patch #450267):
  Objects/
    stringobject.c
    unicodeobject.c

23 years agoAllow shebang's which use versioned Python binaries. Fixes
Marc-André Lemburg [Thu, 28 Feb 2002 09:16:21 +0000 (09:16 +0000)]
Allow shebang's which use versioned Python binaries. Fixes
bug #521526.

23 years agoFix 2.2.1 string.
Tim Peters [Thu, 28 Feb 2002 07:27:48 +0000 (07:27 +0000)]
Fix 2.2.1 string.

23 years agoReserve a Windows build num for 2.2.1c1.
Tim Peters [Thu, 28 Feb 2002 07:13:58 +0000 (07:13 +0000)]
Reserve a Windows build num for 2.2.1c1.

23 years agoAdd 2002 to PSF copyrights.
Michael W. Hudson [Wed, 27 Feb 2002 13:29:46 +0000 (13:29 +0000)]
Add 2002 to PSF copyrights.

Doc/README is odd; it assigns some copyright to the PSF in 2000, when
I didn't think it existed...

23 years agoSF patch #523169, by Samuele Pedroni.
Guido van Rossum [Tue, 26 Feb 2002 22:39:23 +0000 (22:39 +0000)]
SF patch #523169, by Samuele Pedroni.

There were never tests for the fact that list() always returns a *new*
list object, even when the argument is a list, while tuple() may
return a reference to the argument when it is a tuple.  Now there are.

23 years agoSome buffers needed to be unsigned char, not char.
Jack Jansen [Tue, 26 Feb 2002 21:36:19 +0000 (21:36 +0000)]
Some buffers needed to be unsigned char, not char.

23 years agoOS/2 EMX port changes (Python part of patch #450267):
Andrew MacIntyre [Tue, 26 Feb 2002 11:41:34 +0000 (11:41 +0000)]
OS/2 EMX port changes (Python part of patch #450267):
  Python/
    dynload_shlib.c  // EMX port emulates dlopen() etc. for DL extensions
    import.c         // changes to support 8.3 DLL name limit (VACPP+EMX)
                     //  and case sensitive import semantics
    importdl.h
    thread_os2.h

23 years agoOS/2 EMX port changes (Objects part of patch #450267):
Andrew MacIntyre [Tue, 26 Feb 2002 11:36:35 +0000 (11:36 +0000)]
OS/2 EMX port changes (Objects part of patch #450267):
  Objects/
    fileobject.c
    stringobject.c
    unicodeobject.c

This commit doesn't include the cleanup patches for stringobject.c and
unicodeobject.c which are shown separately in the patch manager.  Those
patches will be regenerated and applied in a subsequent commit, so as
to preserve a fallback position (this commit to those files).

23 years agoOS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre [Tue, 26 Feb 2002 11:20:01 +0000 (11:20 +0000)]
OS/2 EMX port changes (Include part of patch #450267):
  Include/
    osdefs.h  // EMX promotes Un*x path separators
    pyport.h

23 years agobugfix for the problem where EditorWindow instances
Steven M. Gava [Tue, 26 Feb 2002 02:31:03 +0000 (02:31 +0000)]
bugfix for the problem where EditorWindow instances
would appear to freeze for a few seconds on closing
in some cases when running under X

23 years agocanonic(): Fix by Edward K Ream to make breakpoints work better on
Guido van Rossum [Mon, 25 Feb 2002 23:23:24 +0000 (23:23 +0000)]
canonic(): Fix by Edward K Ream to make breakpoints work better on
Windows: apply normcase() as well as abspath().  (Note: this isn't
needed to make IDLE work, but it's a good idea anyway.)

Bugfix candidate -- both 2.2.1 and 2.1.3.

23 years agoFix by Edward K Ream to make breakpoints work on Windows: insert a
Guido van Rossum [Mon, 25 Feb 2002 23:22:08 +0000 (23:22 +0000)]
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().

23 years agoEdward K. Ream.
Guido van Rossum [Mon, 25 Feb 2002 23:12:32 +0000 (23:12 +0000)]
Edward K. Ream.

23 years agoFix by Edward K Ream to make breakpoints work on Windows: insert a
Guido van Rossum [Mon, 25 Feb 2002 23:11:03 +0000 (23:11 +0000)]
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().

23 years agoFix error in explanation of the interaction between $ and MULTILINE mode.
Fred Drake [Mon, 25 Feb 2002 18:56:45 +0000 (18:56 +0000)]
Fix error in explanation of the interaction between $ and MULTILINE mode.
Reported by Steve Alexander.

23 years agoAdd documentation about how the inter-module linking works.
Marc-André Lemburg [Mon, 25 Feb 2002 14:45:40 +0000 (14:45 +0000)]
Add documentation about how the inter-module linking works.

23 years agoSet TCL_LIBRARY before import _tkinter. Suggested by Kirill Simonov.
Martin v. Löwis [Sun, 24 Feb 2002 16:51:45 +0000 (16:51 +0000)]
Set TCL_LIBRARY before import _tkinter. Suggested by Kirill Simonov.
Fixes #418173 and #219960. 2.2.1 candidate.

23 years agoPatch #510825: PTHREAD_SCOPE_SYSTEM support for HP-UX
Martin v. Löwis [Sun, 24 Feb 2002 16:05:05 +0000 (16:05 +0000)]
Patch #510825: PTHREAD_SCOPE_SYSTEM support for HP-UX
(pass non-null argument to pthread_create). 2.2.1 candidate.

23 years agoAccept Unicode strings as SMTP TO addresses. Fixes #521270.
Martin v. Löwis [Sun, 24 Feb 2002 15:07:24 +0000 (15:07 +0000)]
Accept Unicode strings as SMTP TO addresses. Fixes #521270.
2.2.1 candidate.

23 years agoOS/2 EMX port Library and regression test changes:
Andrew MacIntyre [Sun, 24 Feb 2002 05:32:32 +0000 (05:32 +0000)]
OS/2 EMX port Library and regression test changes:
  Lib/
    os.py
    os2emxpath.py   // added - OS/2 EMX specific path manipulation routines
    popen2.py
    site.py
  Lib/test/
    test_fcntl.py
    test_longexp.py

23 years agotracking changes to python idle:
Steven M. Gava [Sat, 23 Feb 2002 23:27:08 +0000 (23:27 +0000)]
tracking changes to python idle:
python Patch #520483: Make IDLE OutputWindow handle Unicode.

23 years agoPatch #520483: Make IDLE OutputWindow handle Unicode.
Martin v. Löwis [Sat, 23 Feb 2002 22:39:37 +0000 (22:39 +0000)]
Patch #520483: Make IDLE OutputWindow handle Unicode.
2.2.1 candidate.

23 years agoPatch #521714: fix pychecker warnings in ast.py.
Martin v. Löwis [Sat, 23 Feb 2002 22:35:33 +0000 (22:35 +0000)]
Patch #521714: fix pychecker warnings in ast.py.

23 years agoPatch #521670: Remove unused sys import.
Martin v. Löwis [Sat, 23 Feb 2002 22:31:53 +0000 (22:31 +0000)]
Patch #521670: Remove unused sys import.

23 years agoSF bug #501591: dir() doc is old
Tim Peters [Sat, 23 Feb 2002 04:40:15 +0000 (04:40 +0000)]
SF bug #501591:  dir() doc is old
Bugfix candidate.

+ Updated dir() description to match actual 2.2 behavior.

+ Replaced the dir(sys) example with dir(struct), because the former
  was way out of date and is bound to change frequently, while the
  latter is stable.

+ Added a note cautioning that dir() is supplied primarily for
  convenience at an interactive prompt (hoping to discourage its
  use as the foundation of introspective code outside the core).

23 years agoGrammar tweak.
Greg Ward [Fri, 22 Feb 2002 21:24:32 +0000 (21:24 +0000)]
Grammar tweak.

23 years agoTypo: thsi -> this. Closes SF bug #521450.
Fred Drake [Fri, 22 Feb 2002 15:40:23 +0000 (15:40 +0000)]
Typo: thsi -> this.  Closes SF bug #521450.

23 years agoCreate and populate OS/2 EMX port platform specific library directory:
Andrew MacIntyre [Fri, 22 Feb 2002 11:06:30 +0000 (11:06 +0000)]
Create and populate OS/2 EMX port platform specific library directory:
  Lib/plat-os2emx/
    IN.py
    SOCKET.py
    grp.py
    pwd.py       // pwd module that can process real passwd files
    regen

23 years agomoved command logging routines into IMAP4 class: thread safe/faster
Piers Lauder [Fri, 22 Feb 2002 01:15:17 +0000 (01:15 +0000)]
moved command logging routines into IMAP4 class: thread safe/faster

23 years agoFirst version which runs an install-script (specified by the
Thomas Heller [Wed, 20 Feb 2002 08:01:19 +0000 (08:01 +0000)]
First version which runs an install-script (specified by the
--install-script ... command line option to bdist_wininst) at the end
of the installation and at the start of deinstallation.  Output
(stdout, stderr) of the script (if any) is displayed in the last
screen at installation, or in a simple message box at deinstallation.

sys.argv[1] for the script will contain '-install' at installation
time or '-remove' at deinstallation time.

The installation script runs in an environment (embedded by the
bdist_wininst runtime) where an additional function is available as
builtin:

create_shortcut(path, description, filename,
        [arguments[, workdir[, iconpath, iconindex]]])

Recreated this file after source changes.

23 years agoCorrect the refcount information for the PyWeakref_GetObject() function.
Fred Drake [Wed, 20 Feb 2002 05:07:36 +0000 (05:07 +0000)]
Correct the refcount information for the PyWeakref_GetObject() function.
This closes SF bug #520087.

23 years agoSomebody made list.__dict__ grow a '__doc__' key, but apparently didn't
Tim Peters [Tue, 19 Feb 2002 04:25:19 +0000 (04:25 +0000)]
Somebody made list.__dict__ grow a '__doc__' key, but apparently didn't
run the test suite afterwards.  Either that, or whether '__doc__' shows
up is platform-dependent!

23 years agoSF #515023. Make _DummyThread.join() signature match base class (Thread)
Neal Norwitz [Tue, 19 Feb 2002 03:01:36 +0000 (03:01 +0000)]
SF #515023.  Make _DummyThread.join() signature match base class (Thread)

23 years agoSF #515041, Update path for 2.3
Neal Norwitz [Tue, 19 Feb 2002 02:58:54 +0000 (02:58 +0000)]
SF #515041,  Update path for 2.3

23 years agoAllow __doc__ to be of arbitrary type. Patch by James Henstridge,
Martin v. Löwis [Mon, 18 Feb 2002 17:46:48 +0000 (17:46 +0000)]
Allow __doc__ to be of arbitrary type. Patch by James Henstridge,
fixes #504343. 2.2.1 candidate.

23 years agofurther work on config system
Steven M. Gava [Mon, 18 Feb 2002 01:45:43 +0000 (01:45 +0000)]
further work on config system

23 years agohandle user theme and key set deletion
Steven M. Gava [Mon, 18 Feb 2002 01:43:11 +0000 (01:43 +0000)]
handle user theme and key set deletion

23 years agoMove some opcodes to top of big eval_frame switch statement. Skip
Neil Schemenauer [Sun, 17 Feb 2002 19:10:14 +0000 (19:10 +0000)]
Move some opcodes to top of big eval_frame switch statement.  Skip
things_to_do block for a few common opcodes that don't do any real
work.  Closes SF patch #512256.

23 years agoSF bug #497839: reindent chokes on empty first lines.
Tim Peters [Sun, 17 Feb 2002 07:03:05 +0000 (07:03 +0000)]
SF bug #497839:  reindent chokes on empty first lines.
Reindenter.run():  copy over initial all-whitespace lines (if any, and
after normalizing to remove trailing blanks and tabs).
Bugfix candidate.

23 years agoCreate and populate OS/2 EMX port build directory:
Andrew MacIntyre [Sun, 17 Feb 2002 05:23:30 +0000 (05:23 +0000)]
Create and populate OS/2 EMX port build directory:
  PC/os2emx/
    Makefile
    README.os2emx
    config.c
    dlfcn.c            // libdl emulation code for loadable extensions
    dlfcn.h
    dllentry.c         // DLL initialisation routine for Python DLL
    getpath.c
    pyconfig.h
    python23.def       // Python DLL symbol export definitions
    pythonpm.c         // console-less PM interpreter wrapper

23 years agoRepair so that importing socket doesn't blow up on platforms that lack
Tim Peters [Sun, 17 Feb 2002 04:25:24 +0000 (04:25 +0000)]
Repair so that importing socket doesn't blow up on platforms that lack
SSL support.  test_socket.py passes again on Windows.

Added an XXX about adding _ssl exports to the __all__ list (it doesn't
appear to be doing anything about that now, but since I don't have SSL
on this box I can't really tell).

23 years agoMoved the declaration of PySocketSock_Type from socketmodule.h to
Tim Peters [Sun, 17 Feb 2002 04:13:21 +0000 (04:13 +0000)]
Moved the declaration of PySocketSock_Type from socketmodule.h to
socketmodule.c.  No code outside of the .c file references it, so it
doesn't belong the .h file (at least not yet ...), and declaring it
an imported symbol in the .h file can't be made to work on Windows (it's
a cross-DLL symbol then) without substantial code rewriting.  Also
repaired the comment that goes along with the decl, to stop referring
to names and functions that haven't existed for 7 years <wink>.

socketmodule.c compiles cleanly on Windows again.  The test_socket dies
at once, though (later).

23 years agoFor readability, switch to tab indents; was using a mix of tab indents,
Tim Peters [Sun, 17 Feb 2002 03:58:51 +0000 (03:58 +0000)]
For readability, switch to tab indents; was using a mix of tab indents,
4-space indents, and ambiguous space+tab indents.  Added an XXX comment
about a confusing part.  Still doesn't build on Windows.

23 years agoPatch #508038: Do not use a type as a variable name.
Martin v. Löwis [Sat, 16 Feb 2002 23:39:10 +0000 (23:39 +0000)]
Patch #508038: Do not use a type as a variable name.

23 years agoPatch #511193: Implement killpg in posixmodule.
Martin v. Löwis [Sat, 16 Feb 2002 23:35:41 +0000 (23:35 +0000)]
Patch #511193: Implement killpg in posixmodule.

23 years agoPatch #515598: removed unused import of os.
Martin v. Löwis [Sat, 16 Feb 2002 23:16:53 +0000 (23:16 +0000)]
Patch #515598: removed unused import of os.

23 years agoRemove extraneous variable 'total', as reported by James Rucker.
Martin v. Löwis [Sat, 16 Feb 2002 23:13:54 +0000 (23:13 +0000)]
Remove extraneous variable 'total', as reported by James Rucker.

23 years agoThe Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.
Martin v. Löwis [Sat, 16 Feb 2002 23:06:19 +0000 (23:06 +0000)]
The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.
Replaces calls to socket.send() (which isn't guaranteed to send all data)
with the new socket.sendall() method.

23 years agoAlso fix the comment.
Marc-André Lemburg [Sat, 16 Feb 2002 18:47:07 +0000 (18:47 +0000)]
Also fix the comment.

23 years agoFix the name of the header file.
Marc-André Lemburg [Sat, 16 Feb 2002 18:44:52 +0000 (18:44 +0000)]
Fix the name of the header file.

23 years agoBreak SSL support out of _socket module and place it into a new
Marc-André Lemburg [Sat, 16 Feb 2002 18:23:30 +0000 (18:23 +0000)]
Break SSL support out of _socket module and place it into a new
helper module _ssl.

The support for the RAND_* APIs in _ssl is now only enabled
for OpenSSL 0.9.5 and up since they were added in that
release.

Note that socketmodule.* should really be renamed to _socket.* --
unfortunately, this seems to lose the CVS history of the file.

Please review and test... I was only able to test the header file
chaos in socketmodule.c/h on Linux. The test run through fine
and compiles don't give errors or warnings.

WARNING: This patch does *not* include changes to the various
non-Unix build process files.

23 years agoWhitespace normalization.
Tim Peters [Sat, 16 Feb 2002 07:34:19 +0000 (07:34 +0000)]
Whitespace normalization.

23 years agoSF bug #516372: test_thread: unhandled exc. in thread
Tim Peters [Sat, 16 Feb 2002 07:26:27 +0000 (07:26 +0000)]
SF bug #516372:  test_thread: unhandled exc. in thread
Fix exit races in test_thread.py and test_threaded_import.py.
I suspect the bug is provokable only under Linux (where child threads
seem to get lots of cycles before they get killed after the main thread
exits), or on multi-processor machines running other OSes.
Bugfix candidate.

23 years agoUse the standard expression for the availability statement for alarm().
Fred Drake [Fri, 15 Feb 2002 20:59:43 +0000 (20:59 +0000)]
Use the standard expression for the availability statement for alarm().

23 years agonote that the alarm function is not available on Windows.
Skip Montanaro [Fri, 15 Feb 2002 20:36:19 +0000 (20:36 +0000)]
note that the alarm function is not available on Windows.

23 years agoAdded deprecatioon information for mac.xstat().
Fred Drake [Fri, 15 Feb 2002 14:35:09 +0000 (14:35 +0000)]
Added deprecatioon information for mac.xstat().
This closes SF bug #505150.

23 years agoThe "%" character does not need to be escaped in verbatim environments.
Fred Drake [Fri, 15 Feb 2002 04:12:59 +0000 (04:12 +0000)]
The "%" character does not need to be escaped in verbatim environments.
This closes SF bug #517811.

23 years agoConsistently use \textasciicircum to produce a ^ character.
Fred Drake [Thu, 14 Feb 2002 15:19:30 +0000 (15:19 +0000)]
Consistently use \textasciicircum to produce a ^ character.
LaTeX really falls flat on this one!

23 years agoFix typo.
Fred Drake [Thu, 14 Feb 2002 07:16:30 +0000 (07:16 +0000)]
Fix typo.

23 years agoUse PyModule_AddObject() instead of accessing the module dict directly.
Fred Drake [Thu, 14 Feb 2002 07:11:23 +0000 (07:11 +0000)]
Use PyModule_AddObject() instead of accessing the module dict directly.

23 years agoUse PyModule_AddIntConstant() instead of creating a private helper function.
Fred Drake [Thu, 14 Feb 2002 06:59:26 +0000 (06:59 +0000)]
Use PyModule_AddIntConstant() instead of creating a private helper function.
This also avoids directly accessing the module'd __dict__.

23 years agoCompute expat -I directives from srcdir. Fixes #517214.
Martin v. Löwis [Thu, 14 Feb 2002 01:25:37 +0000 (01:25 +0000)]
Compute expat -I directives from srcdir. Fixes #517214.

23 years agoFinish the pyexpat rework for Windows: builders needn't suck down the
Tim Peters [Wed, 13 Feb 2002 23:56:46 +0000 (23:56 +0000)]
Finish the pyexpat rework for Windows:  builders needn't suck down the
Expat installer from SF anymore, and the installer shouldn't install
expat.dll anymore.

23 years agoSimon Budig's patch (posted by me):
Michael W. Hudson [Wed, 13 Feb 2002 11:58:25 +0000 (11:58 +0000)]
Simon Budig's patch (posted by me):

[ #513235 ] prevent readline filename completion

23 years agoDefine VERSION in expat.h.
Martin v. Löwis [Wed, 13 Feb 2002 07:47:16 +0000 (07:47 +0000)]
Define VERSION in expat.h.

23 years agoWindows time_clock(): rewrite to get rid of horrid casting tricks.
Tim Peters [Wed, 13 Feb 2002 05:14:18 +0000 (05:14 +0000)]
Windows time_clock():  rewrite to get rid of horrid casting tricks.
Don't blame Mark!  The horrid casting tricks were my idea to begin with.
The rewrite works fine under VC6, and I *expect* will work fine under VC7.

23 years agoTwo OSX fixes related to switching Python versions in an existing sourcetree:
Jack Jansen [Tue, 12 Feb 2002 21:30:53 +0000 (21:30 +0000)]
Two OSX fixes related to switching Python versions in an existing sourcetree:
- Create the Python.framework/Versions/$(VERSION) dir if it doesn't exist
- Override existing symlinks in the framework.

23 years ago"Generate" from expat.h.in, for 1.95.2.
Martin v. Löwis [Tue, 12 Feb 2002 09:52:22 +0000 (09:52 +0000)]
"Generate" from expat.h.in, for 1.95.2.

23 years agoLOAD_FAST: rearrange branches to favor the expected case, and get
Tim Peters [Tue, 12 Feb 2002 04:31:21 +0000 (04:31 +0000)]
LOAD_FAST:  rearrange branches to favor the expected case, and get
rid of a redundant NULL-pointer check in the expected case.

23 years agoEnsure we also build on VC7. Involves replacing largeint.h helper functions with...
Mark Hammond [Tue, 12 Feb 2002 04:02:33 +0000 (04:02 +0000)]
Ensure we also build on VC7.  Involves replacing largeint.h helper functions with msvc's native 64 bit integers.