(no author) [Mon, 11 Feb 2002 23:13:04 +0000 (11 23:13 +0000)]
This commit was manufactured by cvs2svn to create branch 'SourceForge'.
git-svn-id: http://svn.python.org/projects/python/branches/SourceForge@25291 6015fed2-1504-0410-9fe1-9d1591cc4771
loewis [Mon, 11 Feb 2002 23:13:04 +0000 (11 23:13 +0000)]
Initial revision
git-svn-id: http://svn.python.org/projects/python/trunk@25290 6015fed2-1504-0410-9fe1-9d1591cc4771
gward [Mon, 11 Feb 2002 20:46:10 +0000 (11 20:46 +0000)]
Fix bug #511786 (2.2.1 candidate): ensure that custom-supplied headers
are preserved for redirected requests.
git-svn-id: http://svn.python.org/projects/python/trunk@25289 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Mon, 11 Feb 2002 18:46:47 +0000 (11 18:46 +0000)]
Remove mentioning of -U option in "python -h" output.
git-svn-id: http://svn.python.org/projects/python/trunk@25288 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:34:41 +0000 (11 18:34 +0000)]
SF #515020, delete global variables which are used only for temporary
values in for loops (dircase, prefix, sitedir).
git-svn-id: http://svn.python.org/projects/python/trunk@25287 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:26:02 +0000 (11 18:26 +0000)]
SF #515005, change "1 + ''" (which pychecker warns about being invalid)
into "raise Exception".
git-svn-id: http://svn.python.org/projects/python/trunk@25286 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:18:29 +0000 (11 18:18 +0000)]
SF #515022 remove unused variable
git-svn-id: http://svn.python.org/projects/python/trunk@25285 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:14:22 +0000 (11 18:14 +0000)]
SF #515009, delete global variable that was apparently used only
in a for loop.
git-svn-id: http://svn.python.org/projects/python/trunk@25284 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:12:06 +0000 (11 18:12 +0000)]
SF #515018, delete global variable that was apparently used only
in a list comprehension.
git-svn-id: http://svn.python.org/projects/python/trunk@25283 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:11:09 +0000 (11 18:11 +0000)]
SF #515026, delete global variable that was apparently used only
in a for loop.
git-svn-id: http://svn.python.org/projects/python/trunk@25282 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:06:21 +0000 (11 18:06 +0000)]
SF #515024 remove unused variable
git-svn-id: http://svn.python.org/projects/python/trunk@25281 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:05:05 +0000 (11 18:05 +0000)]
SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used
Note: There is a TBD (aka FIXME) for how best to handle the refused addresses
git-svn-id: http://svn.python.org/projects/python/trunk@25280 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 18:01:32 +0000 (11 18:01 +0000)]
SF #515012, cleanup: remove unused variable
git-svn-id: http://svn.python.org/projects/python/trunk@25279 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 17:59:51 +0000 (11 17:59 +0000)]
SF #515011, cleanup: remove "or 0" condition
git-svn-id: http://svn.python.org/projects/python/trunk@25278 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 17:57:55 +0000 (11 17:57 +0000)]
SF #515006, remove unnecessary import
git-svn-id: http://svn.python.org/projects/python/trunk@25277 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 17:56:27 +0000 (11 17:56 +0000)]
SF #515004 cleanup
- remove unnecessary imports
- rename dum -> dummy
git-svn-id: http://svn.python.org/projects/python/trunk@25276 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Mon, 11 Feb 2002 17:52:18 +0000 (11 17:52 +0000)]
SF #515000, print result of f.tell() in test() instead of ignoring
git-svn-id: http://svn.python.org/projects/python/trunk@25275 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Mon, 11 Feb 2002 17:43:46 +0000 (11 17:43 +0000)]
Corrected import behaviour for codecs which live outside the encodings
package.
git-svn-id: http://svn.python.org/projects/python/trunk@25274 6015fed2-1504-0410-9fe1-9d1591cc4771
akuchling [Mon, 11 Feb 2002 16:31:10 +0000 (11 16:31 +0000)]
Regenerate configure script
git-svn-id: http://svn.python.org/projects/python/trunk@25273 6015fed2-1504-0410-9fe1-9d1591cc4771
akuchling [Mon, 11 Feb 2002 16:30:54 +0000 (11 16:30 +0000)]
Bump version number to 2.3
git-svn-id: http://svn.python.org/projects/python/trunk@25272 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Mon, 11 Feb 2002 16:21:00 +0000 (11 16:21 +0000)]
Removed a spurious }. (How did it get there in the first place??)
git-svn-id: http://svn.python.org/projects/python/trunk@25271 6015fed2-1504-0410-9fe1-9d1591cc4771
jvr [Mon, 11 Feb 2002 15:31:50 +0000 (11 15:31 +0000)]
on MacOSX/Darwin, use ranlib when building static libs.
git-svn-id: http://svn.python.org/projects/python/trunk@25270 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Mon, 11 Feb 2002 03:45:22 +0000 (11 03:45 +0000)]
improvement to keybinding re-use check
git-svn-id: http://svn.python.org/projects/python/trunk@25269 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Mon, 11 Feb 2002 02:51:18 +0000 (11 02:51 +0000)]
base GetHighlight on GetThemeDict for better defaults
git-svn-id: http://svn.python.org/projects/python/trunk@25268 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Mon, 11 Feb 2002 02:28:19 +0000 (11 02:28 +0000)]
further work on config saving
git-svn-id: http://svn.python.org/projects/python/trunk@25267 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Mon, 11 Feb 2002 02:20:53 +0000 (11 02:20 +0000)]
further work on config saving
git-svn-id: http://svn.python.org/projects/python/trunk@25266 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Mon, 11 Feb 2002 01:18:25 +0000 (11 01:18 +0000)]
Remove stub for unicode.txt. Resort README in dictionary order.
git-svn-id: http://svn.python.org/projects/python/trunk@25265 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Sun, 10 Feb 2002 21:42:47 +0000 (10 21:42 +0000)]
News about the new alias support.
git-svn-id: http://svn.python.org/projects/python/trunk@25264 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Sun, 10 Feb 2002 21:36:20 +0000 (10 21:36 +0000)]
Add IANA character set aliases to the encodings alias dictionary
and make alias lookup lazy.
Note that only those IANA character set aliases were added for which
we actually have codecs in the encodings package.
git-svn-id: http://svn.python.org/projects/python/trunk@25263 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Sat, 9 Feb 2002 11:28:43 +0000 (9 11:28 +0000)]
Add news about PYC magic and changes to UTF-8 codec.
git-svn-id: http://svn.python.org/projects/python/trunk@25262 6015fed2-1504-0410-9fe1-9d1591cc4771
bwarsaw [Fri, 8 Feb 2002 23:25:46 +0000 (8 23:25 +0000)]
Added a module docstring, which doubles as the --help text.
Added a bunch of command line options to make the script more
generic.
git-svn-id: http://svn.python.org/projects/python/trunk@25261 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Fri, 8 Feb 2002 22:22:35 +0000 (8 22:22 +0000)]
Updates related to Modules/Setup and setup.py. This addresses SF bug
#512871 (Jon Ribbens): Installation instructions are wrong.
Bugfix candidate.
git-svn-id: http://svn.python.org/projects/python/trunk@25260 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Fri, 8 Feb 2002 21:29:22 +0000 (8 21:29 +0000)]
Added regression test for start()/stop() returning bogus NULL.
git-svn-id: http://svn.python.org/projects/python/trunk@25256 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Fri, 8 Feb 2002 21:27:50 +0000 (8 21:27 +0000)]
start() and stop() methods: return None where there is no exception;
returning NULL causes the interpreter to raise a SystemError.
Noted by Anthony Baxter at Python 10.
git-svn-id: http://svn.python.org/projects/python/trunk@25255 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Fri, 8 Feb 2002 21:26:07 +0000 (8 21:26 +0000)]
Declare real and imag as read-only attributes.
This fixes SF bug #514858 (Gregory Smith): complex not entirely
immutable
2.2.1 Bugfix candidate!
git-svn-id: http://svn.python.org/projects/python/trunk@25254 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Fri, 8 Feb 2002 20:41:34 +0000 (8 20:41 +0000)]
Whitespace cleanup.
git-svn-id: http://svn.python.org/projects/python/trunk@25251 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Fri, 8 Feb 2002 20:13:53 +0000 (8 20:13 +0000)]
Fix typo
git-svn-id: http://svn.python.org/projects/python/trunk@25250 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Fri, 8 Feb 2002 20:13:47 +0000 (8 20:13 +0000)]
Python 10 was a success, commemorate it\!
git-svn-id: http://svn.python.org/projects/python/trunk@25249 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Fri, 8 Feb 2002 16:20:07 +0000 (8 16:20 +0000)]
www.google.com is better than google.com.
git-svn-id: http://svn.python.org/projects/python/trunk@25248 6015fed2-1504-0410-9fe1-9d1591cc4771
theller [Fri, 8 Feb 2002 14:41:31 +0000 (8 14:41 +0000)]
Make it 1.5.2 compatible again.
git-svn-id: http://svn.python.org/projects/python/trunk@25247 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Thu, 7 Feb 2002 11:33:49 +0000 (7 11:33 +0000)]
Fix to the UTF-8 encoder: it failed on 0-length input strings.
Fix for the UTF-8 decoder: it will now accept isolated surrogates
(previously it raised an exception which causes round-trips to
fail).
Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for
marshalling Unicode objects, so we better make sure it works for
all Unicode code points, including isolated surrogates).
Bumped the PYC magic in a non-standard way -- please review. This
was needed because the old PYC format used illegal UTF-8 sequences
for isolated high surrogates which now raise an exception.
git-svn-id: http://svn.python.org/projects/python/trunk@25246 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Wed, 6 Feb 2002 18:22:48 +0000 (6 18:22 +0000)]
Forgot to add the new emxccompiler.py from Andrew I. MacIntyre's
distutils patch for OS/2.
Here it is...
git-svn-id: http://svn.python.org/projects/python/trunk@25245 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Wed, 6 Feb 2002 18:20:19 +0000 (6 18:20 +0000)]
Cosmetics.
git-svn-id: http://svn.python.org/projects/python/trunk@25244 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Wed, 6 Feb 2002 18:18:03 +0000 (6 18:18 +0000)]
Whitespace fixes.
git-svn-id: http://svn.python.org/projects/python/trunk@25243 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Wed, 6 Feb 2002 18:09:02 +0000 (6 18:09 +0000)]
Fix for the UTF-8 memory allocation bug and the UTF-8 encoding
bug related to lone high surrogates.
git-svn-id: http://svn.python.org/projects/python/trunk@25242 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Tue, 5 Feb 2002 22:35:36 +0000 (5 22:35 +0000)]
Don't blacklist ModalFilterUPP but always pass it as NULL. This enables the record routines to be generated.
git-svn-id: http://svn.python.org/projects/python/trunk@25238 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Tue, 5 Feb 2002 22:34:35 +0000 (5 22:34 +0000)]
Added SndRecord and (classic only) SndRecordToFile.
git-svn-id: http://svn.python.org/projects/python/trunk@25237 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Tue, 5 Feb 2002 21:24:47 +0000 (5 21:24 +0000)]
Added support for unicode strings (utxt).
git-svn-id: http://svn.python.org/projects/python/trunk@25236 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Tue, 5 Feb 2002 04:52:32 +0000 (5 04:52 +0000)]
further work on config system and config saving
git-svn-id: http://svn.python.org/projects/python/trunk@25235 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Mon, 4 Feb 2002 21:43:08 +0000 (4 21:43 +0000)]
Update the instructions on reporting bugs to reflect that anonymous reports
are no longer accepted.
git-svn-id: http://svn.python.org/projects/python/trunk@25232 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Mon, 4 Feb 2002 21:15:42 +0000 (4 21:15 +0000)]
When linking to an index page, explicitly name index.html instead of
using "./". The later does not work nicely when browsing docs on a local
disk (as in the installed docs on Windows).
git-svn-id: http://svn.python.org/projects/python/trunk@25231 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Mon, 4 Feb 2002 19:49:29 +0000 (4 19:49 +0000)]
Update version number to match Include/patchlevel.h.
Make sure we clean up all the temp files craeted for the typeset formats.
git-svn-id: http://svn.python.org/projects/python/trunk@25230 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Mon, 4 Feb 2002 19:48:25 +0000 (4 19:48 +0000)]
Update version number to match Include/patchlevel.h.
git-svn-id: http://svn.python.org/projects/python/trunk@25229 6015fed2-1504-0410-9fe1-9d1591cc4771
jvr [Mon, 4 Feb 2002 12:52:44 +0000 (4 12:52 +0000)]
Added minimal support for floating windows.
git-svn-id: http://svn.python.org/projects/python/trunk@25228 6015fed2-1504-0410-9fe1-9d1591cc4771
jvr [Mon, 4 Feb 2002 12:48:06 +0000 (4 12:48 +0000)]
Don't append quit menu when on OSX, it is special and automatic there.
git-svn-id: http://svn.python.org/projects/python/trunk@25227 6015fed2-1504-0410-9fe1-9d1591cc4771
jvr [Mon, 4 Feb 2002 11:53:53 +0000 (4 11:53 +0000)]
Flush screen buffer upon console.flush() and output.flush().
This fixes bug #511992.
git-svn-id: http://svn.python.org/projects/python/trunk@25226 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Mon, 4 Feb 2002 01:59:23 +0000 (4 01:59 +0000)]
Quick build: clarify that you have to do "make install" as root; OS
info: add info about Red Hat's python and python2.
git-svn-id: http://svn.python.org/projects/python/trunk@25225 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Sat, 2 Feb 2002 00:08:15 +0000 (2 00:08 +0000)]
Change the version string from "2.2+" to "2.3a0". disutils peels off
the first 3 characters of this string in several places, so for as long
as they remain "2.2" it confuses the heck out of attempts to build 2.3
stuff using distutils.
git-svn-id: http://svn.python.org/projects/python/trunk@25224 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Fri, 1 Feb 2002 22:24:56 +0000 (1 22:24 +0000)]
Got rid of an extra level of {} and funny formatting that was still
there because of the NeXT history.
git-svn-id: http://svn.python.org/projects/python/trunk@25223 6015fed2-1504-0410-9fe1-9d1591cc4771
akuchling [Fri, 1 Feb 2002 18:29:34 +0000 (1 18:29 +0000)]
[Bug #220993; may also fix bug #479469] Fix flakiness when old
installations are present, by always unlinking the destination file
before copying to it. Without the unlink(), the copied file remains
owned by its previous UID, causing the subsequent chmod() to fail.
Bugfix candidate, though it may cause changes on platforms where
file ownership behaves differently.
git-svn-id: http://svn.python.org/projects/python/trunk@25222 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Fri, 1 Feb 2002 16:27:59 +0000 (1 16:27 +0000)]
Wesley Chun's SF patch 511380: add CGIHTTPServer error supt for Win32
This uses os.popen3 (if it exists) to ensure that errors from a
non-Python CGI script are logged.
Bugfix candidate.
git-svn-id: http://svn.python.org/projects/python/trunk@25221 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Fri, 1 Feb 2002 16:01:05 +0000 (1 16:01 +0000)]
A new dynload_next, which actually only works on OSX but isn't renamed yet.
By default every module is imported in its own namespace, but this can
be changed by defining USE_DYLD_GLOBAL_NAMESPACE. In a future version this
define will be replaced by a runtime setting, but that needs a bit more
thought.
This code is largely based on code and feedback from Steven Majewski,
Marcel Prastawa, Manoj Plakal and other on pythonmac-sig.
git-svn-id: http://svn.python.org/projects/python/trunk@25220 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Fri, 1 Feb 2002 15:46:29 +0000 (1 15:46 +0000)]
Got rid of a few more NeXT ifdefs. The last, I think.
git-svn-id: http://svn.python.org/projects/python/trunk@25219 6015fed2-1504-0410-9fe1-9d1591cc4771
gvanrossum [Fri, 1 Feb 2002 15:34:10 +0000 (1 15:34 +0000)]
Bugfix candidate.
Fix SF bug #511603: Error calling str on subclass of int
Explicitly fill in tp_str with the same pointer as tp_repr.
git-svn-id: http://svn.python.org/projects/python/trunk@25218 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Fri, 1 Feb 2002 11:27:43 +0000 (1 11:27 +0000)]
Implement os.waitpid() for Windows, in a way that's compatible with Linux
where their capabilities intersect. Would be nice if people using non-
MSVC compilers (Borland etc) took a whack at doing something similar for
them (this code relies on the MS _cwait function).
git-svn-id: http://svn.python.org/projects/python/trunk@25217 6015fed2-1504-0410-9fe1-9d1591cc4771
theller [Fri, 1 Feb 2002 09:44:09 +0000 (1 09:44 +0000)]
package_dir must be converted from the distutils path conventions to
local conventions before being used by build_py.
Fixes SF bug #509288, probably a candidate for 2.2.1
git-svn-id: http://svn.python.org/projects/python/trunk@25216 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Fri, 1 Feb 2002 03:02:37 +0000 (1 03:02 +0000)]
improve user config dir handling
git-svn-id: http://svn.python.org/projects/python/trunk@25215 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Fri, 1 Feb 2002 01:33:36 +0000 (1 01:33 +0000)]
more work on configuration saving
git-svn-id: http://svn.python.org/projects/python/trunk@25214 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Fri, 1 Feb 2002 00:52:29 +0000 (1 00:52 +0000)]
New tempfile and os.open() gimmicks for Windows.
git-svn-id: http://svn.python.org/projects/python/trunk@25213 6015fed2-1504-0410-9fe1-9d1591cc4771
akuchling [Thu, 31 Jan 2002 22:08:38 +0000 (31 22:08 +0000)]
Restrict the mode to the lowest four octal positions; higher positions
contain the type of the file (regular file, socket, link, &c.).
This means that install_scripts will now print
"changing mode of <file> to 775" instead of "... to 100775".
2.2 bugfix candidate, I suppose, though this isn't actually fixing a bug.
git-svn-id: http://svn.python.org/projects/python/trunk@25212 6015fed2-1504-0410-9fe1-9d1591cc4771
lemburg [Thu, 31 Jan 2002 18:56:00 +0000 (31 18:56 +0000)]
OS/2 patches by Andrew I MacIntyre for distutils.
Closes patch #435381.
git-svn-id: http://svn.python.org/projects/python/trunk@25211 6015fed2-1504-0410-9fe1-9d1591cc4771
montanaro [Thu, 31 Jan 2002 17:32:24 +0000 (31 17:32 +0000)]
added handle_error method description
git-svn-id: http://svn.python.org/projects/python/trunk@25210 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Wed, 30 Jan 2002 16:15:13 +0000 (30 16:15 +0000)]
string.split() docstring described the interpretation of the maxsplit
argument incorrectly.
This closes SF bug #505997.
git-svn-id: http://svn.python.org/projects/python/trunk@25207 6015fed2-1504-0410-9fe1-9d1591cc4771
mwh [Wed, 30 Jan 2002 15:47:34 +0000 (30 15:47 +0000)]
Oh look, another one.
2.2.1 candiate (he says, largely talking to himself :)
git-svn-id: http://svn.python.org/projects/python/trunk@25206 6015fed2-1504-0410-9fe1-9d1591cc4771
mwh [Wed, 30 Jan 2002 15:39:28 +0000 (30 15:39 +0000)]
I think this fixes
[ #510644 ] test_curses segfaults
If we use the *object* *allocator*, we should use the *object* *deallocator*,
not the *raw memory* deallocator (confused yet?).
I think this was what caused segfaults when pymalloc was enabled.
Even if it wasn't the cause, it's still wrong.
2.2.1 candidate.
git-svn-id: http://svn.python.org/projects/python/trunk@25205 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Wed, 30 Jan 2002 10:42:59 +0000 (30 10:42 +0000)]
Added a note about compiler warnings.
git-svn-id: http://svn.python.org/projects/python/trunk@25204 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Wed, 30 Jan 2002 09:11:42 +0000 (30 09:11 +0000)]
Thanks to Detlef Lannert for pointing out a typo in the code that
uses _DummyMutex on platforms without threads.
git-svn-id: http://svn.python.org/projects/python/trunk@25203 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Wed, 30 Jan 2002 07:47:51 +0000 (30 07:47 +0000)]
New TemporaryFile implementation for Windows: this doesn't need a
TemproraryFileWrapper wrapper anymore, and should be immune from the
problem that a temp file inherited by a spawned process caused an
attempt to close the temp file in the spawning process to blow
up (the unlink in TemporaryFileWrapper.close() blew up with a
"Permission denied" error because, despite that the temp file got
closed in the spawning process, the spawned process still had it open
by virtue of C-level file descriptor inheritance). In context,
that bug took days to figure out <wink/sigh>.
git-svn-id: http://svn.python.org/projects/python/trunk@25202 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Wed, 30 Jan 2002 07:32:53 +0000 (30 07:32 +0000)]
This test left a new set of 3 junk files behind each time it was run.
git-svn-id: http://svn.python.org/projects/python/trunk@25201 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Wed, 30 Jan 2002 05:49:46 +0000 (30 05:49 +0000)]
Add new constants usable with os.popen() on Windows.
NOTE: this seems a mess wrt which symbols are available on which
platforms. I can't fix it, but I didn't add to it <wink>, and
included an XXX comment about names claimed to be available on
Windows that aren't. If anyone can figure out the whole ugly truth,
I'm sure a better organization will suggest itself.
git-svn-id: http://svn.python.org/projects/python/trunk@25200 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Wed, 30 Jan 2002 05:46:57 +0000 (30 05:46 +0000)]
Expose more MS WIndows constants usable w/ low-level os.open().
git-svn-id: http://svn.python.org/projects/python/trunk@25199 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Tue, 29 Jan 2002 14:53:30 +0000 (29 14:53 +0000)]
Revise cheeseshop example so that the order of the keyword output is
completely determined by the example; dict insertion order and the string
hash algorithm no longer affect the output.
This fixes SF bug #509281.
git-svn-id: http://svn.python.org/projects/python/trunk@25197 6015fed2-1504-0410-9fe1-9d1591cc4771
loewis [Tue, 29 Jan 2002 10:23:42 +0000 (29 10:23 +0000)]
Encode MSVC paths as mbcs. Fixes #509117. 2.2.1 candidate.
git-svn-id: http://svn.python.org/projects/python/trunk@25196 6015fed2-1504-0410-9fe1-9d1591cc4771
elguavas [Tue, 29 Jan 2002 08:35:29 +0000 (29 08:35 +0000)]
further work on config saving
git-svn-id: http://svn.python.org/projects/python/trunk@25195 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Tue, 29 Jan 2002 00:56:37 +0000 (29 00:56 +0000)]
Fix missing space between words. Bugfix candidate.
git-svn-id: http://svn.python.org/projects/python/trunk@25194 6015fed2-1504-0410-9fe1-9d1591cc4771
nnorwitz [Tue, 29 Jan 2002 00:53:41 +0000 (29 00:53 +0000)]
Fix spelling mistakes. Bugfix candidates.
git-svn-id: http://svn.python.org/projects/python/trunk@25193 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Mon, 28 Jan 2002 23:11:23 +0000 (28 23:11 +0000)]
SF bug #509805 tempfile.gettempdir not threadsafe
This is an ancient race when multiple threads call gettempdir() (or
anything relying on it) for the first time.
Fixed x-platform via the Big Hammer of rearranging the code to serialize
the first calls. Subsequent calls are as fast as before.
Note that the Python test suite can't provoke this bug: it requires
setting up multiple threads making the very first calls into tempfile,
but the test suite uses tempfile several times before getting to
test_threadedtempfile.
Bugfix candidate.
git-svn-id: http://svn.python.org/projects/python/trunk@25192 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Sun, 27 Jan 2002 20:05:20 +0000 (27 20:05 +0000)]
Use full paths for Rez and DeRez, which may not be on $PATH. Fixes bug
#509074.
git-svn-id: http://svn.python.org/projects/python/trunk@25177 6015fed2-1504-0410-9fe1-9d1591cc4771
bwarsaw [Sun, 27 Jan 2002 06:49:26 +0000 (27 06:49 +0000)]
Test case of a singleton multipart; i.e. a multipart/* with only one
subpart.
git-svn-id: http://svn.python.org/projects/python/trunk@25176 6015fed2-1504-0410-9fe1-9d1591cc4771
bwarsaw [Sun, 27 Jan 2002 06:48:47 +0000 (27 06:48 +0000)]
test_multipart_one_part(): Idempotency test case for a multipart/*
with only one subpart.
git-svn-id: http://svn.python.org/projects/python/trunk@25175 6015fed2-1504-0410-9fe1-9d1591cc4771
bwarsaw [Sun, 27 Jan 2002 06:48:02 +0000 (27 06:48 +0000)]
_parsebody(): When adding subparts to a multipart container, make sure
that the first subpart added makes the payload a list object.
Otherwise, a multipart/* with only one subpart will not have the
proper structure.
git-svn-id: http://svn.python.org/projects/python/trunk@25174 6015fed2-1504-0410-9fe1-9d1591cc4771
loewis [Sat, 26 Jan 2002 20:21:50 +0000 (26 20:21 +0000)]
Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.
2.2.1 bugfix candidate.
git-svn-id: http://svn.python.org/projects/python/trunk@25173 6015fed2-1504-0410-9fe1-9d1591cc4771
loewis [Sat, 26 Jan 2002 20:11:50 +0000 (26 20:11 +0000)]
Document that get_referrers can return unreachable but uncollected objects.
Fixes #505453.
git-svn-id: http://svn.python.org/projects/python/trunk@25172 6015fed2-1504-0410-9fe1-9d1591cc4771
loewis [Sat, 26 Jan 2002 20:03:48 +0000 (26 20:03 +0000)]
Test for error status of shl_findsym. Fixes #505417. 2.2.1 candiate.
git-svn-id: http://svn.python.org/projects/python/trunk@25171 6015fed2-1504-0410-9fe1-9d1591cc4771
tim_one [Sat, 26 Jan 2002 17:58:02 +0000 (26 17:58 +0000)]
Removed an XXX question (the answer is "yes" <wink>).
git-svn-id: http://svn.python.org/projects/python/trunk@25170 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Fri, 25 Jan 2002 16:13:38 +0000 (25 16:13 +0000)]
Added contributors.
git-svn-id: http://svn.python.org/projects/python/trunk@25169 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Fri, 25 Jan 2002 15:28:39 +0000 (25 15:28 +0000)]
Some modifications and clarifications (by me) to Michael's mods.
git-svn-id: http://svn.python.org/projects/python/trunk@25168 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Fri, 25 Jan 2002 15:06:19 +0000 (25 15:06 +0000)]
Rewritten, clarified, corrected and cleaned up by Michael J. Barber.
git-svn-id: http://svn.python.org/projects/python/trunk@25167 6015fed2-1504-0410-9fe1-9d1591cc4771
jackjansen [Thu, 24 Jan 2002 22:44:07 +0000 (24 22:44 +0000)]
Get rid of keyword list and use keyword.iskeyword() function (which I wasn't aware of previously).
git-svn-id: http://svn.python.org/projects/python/trunk@25166 6015fed2-1504-0410-9fe1-9d1591cc4771
fdrake [Thu, 24 Jan 2002 16:38:53 +0000 (24 16:38 +0000)]
Add keyword.kwlist to the public API.
git-svn-id: http://svn.python.org/projects/python/trunk@25161 6015fed2-1504-0410-9fe1-9d1591cc4771