]> granicus.if.org Git - python/log
python
22 years agoWhen testing for availability of pthreads without special compiler options
Jack Jansen [Fri, 8 Mar 2002 13:43:01 +0000 (13:43 +0000)]
When testing for availability of pthreads without special compiler options
or libraries also look for thread_detach. SGI has thread_create in libc
but complete pthread support only in -lpthread. Fixes #522393.

2.2.1 candidate.Killed by signal 2.

22 years agofixed missing IMAP4_SSL_PORT
Piers Lauder [Fri, 8 Mar 2002 09:05:12 +0000 (09:05 +0000)]
fixed missing IMAP4_SSL_PORT

22 years agoSF bug 515943: searching for data with \0 in mmap.
Tim Peters [Fri, 8 Mar 2002 05:43:32 +0000 (05:43 +0000)]
SF bug 515943:  searching for data with \0 in mmap.
mmap_find_method():  this obtained the string to find via s#, but it
ignored its length, acting as if it were \0-terminated instead.

Someone please run on Linux too (the extended test_mmap works on Windows).

Bugfix candidate.

22 years agoAdd entry for mac/libscrap.tex.
Fred Drake [Fri, 8 Mar 2002 03:18:19 +0000 (03:18 +0000)]
Add entry for mac/libscrap.tex.

22 years agoI started writing more documentation on the Scrap module at one point, but
Fred Drake [Fri, 8 Mar 2002 03:15:49 +0000 (03:15 +0000)]
I started writing more documentation on the Scrap module at one point, but
it is difficult to do without a Mac box to try things out on.  This expands
on what was there only a little bit; hopefully someone with a Mac can work
on this as well!

22 years agoadd Content-Type header to error responses
Skip Montanaro [Fri, 8 Mar 2002 02:36:18 +0000 (02:36 +0000)]
add Content-Type header to error responses
this closes patch 502080

22 years agoadd SSL class submitted by Tino Lange
Piers Lauder [Fri, 8 Mar 2002 01:53:24 +0000 (01:53 +0000)]
add SSL class submitted by Tino Lange

22 years ago"Shortcut" should be "short-circuit".
Fred Drake [Fri, 8 Mar 2002 00:54:43 +0000 (00:54 +0000)]
"Shortcut" should be "short-circuit".
This closes SF bug #526277.

22 years agoadd repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
Skip Montanaro [Thu, 7 Mar 2002 22:58:02 +0000 (22:58 +0000)]
add repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
- reflects the change in type("").__name__ between 2.1 and 2.2.  The
__name__ field is used to find a method to call for particular types.

22 years agoGuido pointed out that I was missing a couple decrefs.
Michael W. Hudson [Thu, 7 Mar 2002 15:13:40 +0000 (15:13 +0000)]
Guido pointed out that I was missing a couple decrefs.

22 years agoRegenerate.
Michael W. Hudson [Thu, 7 Mar 2002 09:59:15 +0000 (09:59 +0000)]
Regenerate.

22 years agoApply Jack's patch attached to
Michael W. Hudson [Thu, 7 Mar 2002 09:58:56 +0000 (09:58 +0000)]
Apply Jack's patch attached to

[ 508779 ] Disable flat namespace on MacOS X

I presume you wanted this on the trunk too, Jack?

2.2.1 candidate.

22 years agoTest for
Michael W. Hudson [Wed, 6 Mar 2002 17:18:15 +0000 (17:18 +0000)]
Test for

[ 526039 ] devious code can crash structseqs

Bugfix candidate.

22 years agoSpecial support for pickling os.stat and os.stat_vfs results portably
Michael W. Hudson [Wed, 6 Mar 2002 17:11:18 +0000 (17:11 +0000)]
Special support for pickling os.stat and os.stat_vfs results portably
(the types come from different modules on different platforms).

Added tests for pickling these types.

May be a bugfix candidate.

22 years agoApply (my) patch:
Michael W. Hudson [Wed, 6 Mar 2002 17:07:49 +0000 (17:07 +0000)]
Apply (my) patch:

[ 526072 ] pickling os.stat results round II

structseq's constructors can now take "invisible" fields in a dict.
Gave the constructors better error messages.
their __reduce__ method puts these fields in a dict.

(this is all in aid of getting os.stat_result's to pickle portably)

Also fixes

[ 526039 ] devious code can crash structseqs

Thought needed about how much of this counts as a bugfix.  Certainly
#526039 needs to be fixed.

22 years agoAdded missing version annotation for dict().
Fred Drake [Wed, 6 Mar 2002 02:29:30 +0000 (02:29 +0000)]
Added missing version annotation for dict().

22 years agoCGStubLib wasn't weak-linked, fixed. 221 candidate.
Jack Jansen [Tue, 5 Mar 2002 22:43:50 +0000 (22:43 +0000)]
CGStubLib wasn't weak-linked, fixed. 221 candidate.

22 years agoSet default value for readlines.sizehint to None. Change needed for 2.2.1
Martin v. Löwis [Tue, 5 Mar 2002 15:46:38 +0000 (15:46 +0000)]
Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.

22 years agoA fix & test for
Michael W. Hudson [Tue, 5 Mar 2002 13:27:58 +0000 (13:27 +0000)]
A fix & test for

[ 496873 ] structseqs unpicklable

by adding a __reduce__ method to structseqs.

Will also commit this to the 2.2.1 branch momentarily.

22 years agoAdd implementations for \textgreater and \textless, defined in (relatively)
Fred Drake [Tue, 5 Mar 2002 04:04:06 +0000 (04:04 +0000)]
Add implementations for \textgreater and \textless, defined in (relatively)
recent versions of LaTeX2e but not support in LaTeX2HTML.

22 years agoRemove extra indenatation from sample interpreter session.
Fred Drake [Tue, 5 Mar 2002 04:02:39 +0000 (04:02 +0000)]
Remove extra indenatation from sample interpreter session.
Remove whitespace from the middle of an inline RE example; it was OK for
the typeset formats, but LaTeX2HTML is more touchy about this.

22 years agoremove debug cruft
Steven M. Gava [Tue, 5 Mar 2002 00:31:43 +0000 (00:31 +0000)]
remove debug cruft

22 years agofurther work on new config system
Steven M. Gava [Tue, 5 Mar 2002 00:25:58 +0000 (00:25 +0000)]
further work on new config system

22 years agoadd simple example of avoiding backtracking
Skip Montanaro [Mon, 4 Mar 2002 23:08:28 +0000 (23:08 +0000)]
add simple example of avoiding backtracking

23 years agoAdded ClipCGContextToRegion() from Quickdraw.h.
Just van Rossum [Mon, 4 Mar 2002 10:31:32 +0000 (10:31 +0000)]
Added ClipCGContextToRegion() from Quickdraw.h.

23 years agoRemove tp_print.
Martin v. Löwis [Mon, 4 Mar 2002 09:38:52 +0000 (09:38 +0000)]
Remove tp_print.

23 years agoPython no longer compiled on Windows, due to #include file confusion
Tim Peters [Sun, 3 Mar 2002 23:17:02 +0000 (23:17 +0000)]
Python no longer compiled on Windows, due to #include file confusion
over SEP, ALTSEP and MAXPATHLEN.
Patched up posixmodule.c for MSVC, but unsure what the story is now on
other non-Unixish platforms -- the preprocessor maze has no exit <wink>.

23 years agoRemoved two unused imports. Closes patch #525225.
Barry Warsaw [Sun, 3 Mar 2002 22:46:46 +0000 (22:46 +0000)]
Removed two unused imports.  Closes patch #525225.

2.2.1 candidate (but not terribly important).

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).