]> granicus.if.org Git - python/log
python
22 years agoPatch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.
Martin v. Löwis [Fri, 4 Oct 2002 07:21:24 +0000 (07:21 +0000)]
Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.

22 years agoFix [ 616716 ] Bug in PyErr_SetExcFromWindows
Mark Hammond [Fri, 4 Oct 2002 00:13:02 +0000 (00:13 +0000)]
Fix [ 616716 ] Bug in PyErr_SetExcFromWindows

Ensure that even if FormatMessage fails we (a) don't crash, and (b) provide something useful.

Bugfix candidate.

22 years agoFix errors to pep277 checkin identified by Neal Norwitz.
Mark Hammond [Fri, 4 Oct 2002 00:09:38 +0000 (00:09 +0000)]
Fix errors to pep277 checkin identified by Neal Norwitz.

22 years agoTests for pep277 - Unicode file names on Windows NT.
Mark Hammond [Thu, 3 Oct 2002 23:14:10 +0000 (23:14 +0000)]
Tests for pep277 - Unicode file names on Windows NT.

22 years agoOne last tweak to the tracing machinery: this actually computes what I intended
Michael W. Hudson [Thu, 3 Oct 2002 09:53:11 +0000 (09:53 +0000)]
One last tweak to the tracing machinery: this actually computes what I intended
all along.  Before instr_lb tended to be too high.

I don't think this actually makes any difference, given what the compiler
produces, but it makes me a bit happier.

22 years agoClamp code objects' tp_compare result to [-1, 1].
Michael W. Hudson [Thu, 3 Oct 2002 09:50:47 +0000 (09:50 +0000)]
Clamp code objects' tp_compare result to [-1, 1].

Bugfix candidate.

22 years agoUpdates to track Grammar changes. The patch to token.py loosens the regexp to
Michael W. Hudson [Thu, 3 Oct 2002 09:42:01 +0000 (09:42 +0000)]
Updates to track Grammar changes.  The patch to token.py loosens the regexp to
allow "testlist1" to be snagged.

22 years agoTrivial fix to the pep277 checkin: ensure that exceptions always have a filename...
Mark Hammond [Thu, 3 Oct 2002 07:24:48 +0000 (07:24 +0000)]
Trivial fix to the pep277 checkin: ensure that exceptions always have a filename attribute (previously did only when string filenames were passed, but not when unicode)

22 years agoPatch 594001: PEP 277 - Unicode file name support for Windows NT.
Mark Hammond [Thu, 3 Oct 2002 05:10:39 +0000 (05:10 +0000)]
Patch 594001: PEP 277 - Unicode file name support for Windows NT.

22 years agoFix an endcase bug: initial_indent was ignored when the text was short
Guido van Rossum [Wed, 2 Oct 2002 15:47:32 +0000 (15:47 +0000)]
Fix an endcase bug: initial_indent was ignored when the text was short
enough to fit in one line.

22 years agoFix for the recursion_level bug Armin Rigo reported in sf
Michael W. Hudson [Wed, 2 Oct 2002 13:13:45 +0000 (13:13 +0000)]
Fix for the recursion_level bug Armin Rigo reported in sf
patch #617312, both on the trunk and the 22-maint branch.

Also added a test case, and ported the test_trace I wrote for HEAD
to 2.2.2 (with all those horrible extra 'line' events ;-).

22 years agoSupport UCS-4 builds.
Martin v. Löwis [Tue, 1 Oct 2002 18:50:56 +0000 (18:50 +0000)]
Support UCS-4 builds.

22 years agoAdd a comment to the top of the file explaining why the file is here.
Fred Drake [Tue, 1 Oct 2002 18:20:16 +0000 (18:20 +0000)]
Add a comment to the top of the file explaining why the file is here.

22 years agoMention droped support for Tcl/Tk 8.0 and 8.1.
Guido van Rossum [Tue, 1 Oct 2002 18:18:58 +0000 (18:18 +0000)]
Mention droped support for Tcl/Tk 8.0 and 8.1.

22 years agoEliminate constness warnings with Tcl 8.4.
Martin v. Löwis [Tue, 1 Oct 2002 18:08:06 +0000 (18:08 +0000)]
Eliminate constness warnings with Tcl 8.4.

22 years agotest__all__(): Fix the import list.
Barry Warsaw [Tue, 1 Oct 2002 17:57:06 +0000 (17:57 +0000)]
test__all__(): Fix the import list.

22 years agoDrop support for Tk 8.0 and 8.1.
Martin v. Löwis [Tue, 1 Oct 2002 17:48:31 +0000 (17:48 +0000)]
Drop support for Tk 8.0 and 8.1.

22 years agosave the verbose argument as an instance attributes. Subclasses of
Skip Montanaro [Tue, 1 Oct 2002 17:39:59 +0000 (17:39 +0000)]
save the verbose argument as an instance attributes.  Subclasses of
CCompiler may rely on the presence of self.verbose (SciPy's distutils
appears to).

22 years agobuild(): Use self.builddir, not self.doc when copying the icons, so
Barry Warsaw [Tue, 1 Oct 2002 15:38:01 +0000 (15:38 +0000)]
build(): Use self.builddir, not self.doc when copying the icons, so
they'll end up in the right directory when --dir is used.

22 years agoWhen the HTML output dir is specified using --dir=~/foo, the tilde
Fred Drake [Tue, 1 Oct 2002 15:30:56 +0000 (15:30 +0000)]
When the HTML output dir is specified using --dir=~/foo, the tilde
needs to be expanded by mkhowto, since the shell won't touch it except
at the start of the complete argument.

22 years agonits
Barry Warsaw [Tue, 1 Oct 2002 15:29:09 +0000 (15:29 +0000)]
nits

22 years agoInclude the --dir argument in the help text.
Fred Drake [Tue, 1 Oct 2002 15:24:03 +0000 (15:24 +0000)]
Include the --dir argument in the help text.

22 years agoChange the default path to icons so that "mkhowto" does the "right thing" by
Fred Drake [Tue, 1 Oct 2002 15:20:20 +0000 (15:20 +0000)]
Change the default path to icons so that "mkhowto" does the "right thing" by
default when used for 3rd-party docs.  This requires the standard Python docs
to specify a location, but they are a bit of a special case in sharing one set
of icons among several documents.

22 years agoAdded an introduction.
Barry Warsaw [Tue, 1 Oct 2002 15:13:29 +0000 (15:13 +0000)]
Added an introduction.

22 years agoStub document for the stand-alone email package distribution.
Fred Drake [Tue, 1 Oct 2002 14:38:47 +0000 (14:38 +0000)]
Stub document for the stand-alone email package distribution.
Barry, please add a reasonable abstract!

22 years agoMinor style nit for referring to other attributes of the same class
Fred Drake [Tue, 1 Oct 2002 14:29:58 +0000 (14:29 +0000)]
Minor style nit for referring to other attributes of the same class
from an attributes description.

22 years agoSplit the long email package examples into separate files and use
Fred Drake [Tue, 1 Oct 2002 14:17:10 +0000 (14:17 +0000)]
Split the long email package examples into separate files and use
\verbatiminput instead of the verbatim environment -- this does the "right
thing" regarding page breaks in long examples for the typeset formats, and
has nice benefits for the HTML version as well.

22 years agoCleaned up the examples.
Barry Warsaw [Tue, 1 Oct 2002 04:48:06 +0000 (04:48 +0000)]
Cleaned up the examples.

22 years agoProofread and spell checked, all except the Examples section (which
Barry Warsaw [Tue, 1 Oct 2002 04:33:16 +0000 (04:33 +0000)]
Proofread and spell checked, all except the Examples section (which
I'll do next).

22 years agoCommit fix for SF 603831.
Guido van Rossum [Tue, 1 Oct 2002 04:14:17 +0000 (04:14 +0000)]
Commit fix for SF 603831.

Strangely, two out of three patches there seem already committed; but
the essential one (get rid of the assert in object_filenames in
ccompiler.py) was not yet applied.

This makes the build procedure for Twisted work again.

This is *not* a backport candidate despite the fact that identical
code appears to exist in 2.2.2; Twisted builds fine there, so there
must have been a change elsewhere.

22 years agoVast update to email version 2. This could surely use proofreading.
Barry Warsaw [Tue, 1 Oct 2002 01:05:52 +0000 (01:05 +0000)]
Vast update to email version 2.  This could surely use proofreading.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Tue, 1 Oct 2002 00:52:27 +0000 (00:52 +0000)]
Docstring consistency with the updated .tex files.

22 years ago_structure(): Swap fp and level arguments.
Barry Warsaw [Tue, 1 Oct 2002 00:51:47 +0000 (00:51 +0000)]
_structure(): Swap fp and level arguments.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Tue, 1 Oct 2002 00:44:13 +0000 (00:44 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Tue, 1 Oct 2002 00:05:24 +0000 (00:05 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 23:07:35 +0000 (23:07 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 22:15:00 +0000 (22:15 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 21:29:10 +0000 (21:29 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 21:24:00 +0000 (21:24 +0000)]
Docstring consistency with the updated .tex files.

22 years ago__all__: Updated
Barry Warsaw [Mon, 30 Sep 2002 20:41:33 +0000 (20:41 +0000)]
__all__: Updated

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 20:07:22 +0000 (20:07 +0000)]
Docstring consistency with the updated .tex files.

22 years agoNow that TestCase is a new-style class, change loadTestsFromModule and
Guido van Rossum [Mon, 30 Sep 2002 19:25:56 +0000 (19:25 +0000)]
Now that TestCase is a new-style class, change loadTestsFromModule and
loadTestsFromName to accept new-style classes too!

22 years ago__contains__(): Change the second argument to `name' for consistency.
Barry Warsaw [Mon, 30 Sep 2002 18:17:35 +0000 (18:17 +0000)]
__contains__(): Change the second argument to `name' for consistency.
I seriously doubt this will break any deployed code.

Docstring consistency with the updated .tex files.

22 years agoAdd Tim Rice, for SCO patches.
Martin v. Löwis [Mon, 30 Sep 2002 16:23:15 +0000 (16:23 +0000)]
Add Tim Rice, for SCO patches.

22 years agoPatch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis [Mon, 30 Sep 2002 16:19:48 +0000 (16:19 +0000)]
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.

22 years agoWith help from Martin v. Loewis, clarification is added for the
Barry Warsaw [Mon, 30 Sep 2002 15:51:31 +0000 (15:51 +0000)]
With help from Martin v. Loewis, clarification is added for the
semantics of header chunks using byte and Unicode strings.
Specifically,

append(): When the given string is a byte string, charset (whether
specified explicitly in the argument list or implicitly via the
constructor default) is the encoding of the byte string, and a
UnicodeError will be raised if the string cannot be decoded with that
charset.  If s is a Unicode string, then charset is a hint specifying
the character set of the characters in the string.  In this case, when
producing an RFC 2822 compliant header using RFC 2047 rules, the
Unicode string will be encoded using the following charsets in order:
us-ascii, the charset hint, utf-8.

__init__(): Use the global USASCII Charset instance when the charset
argument is None.  Also, clarification in the docstring.

Also, use True/False where appropriate.

22 years agoPatch #544740: test_commands test fails under Cygwin
Jason Tishler [Mon, 30 Sep 2002 15:44:41 +0000 (15:44 +0000)]
Patch #544740: test_commands test fails under Cygwin

Relax regular expression to handle spaces in user and group names.

22 years agofix a couple nits related to my understanding of ReST. Use of
Skip Montanaro [Mon, 30 Sep 2002 15:25:13 +0000 (15:25 +0000)]
fix a couple nits related to my understanding of ReST.  Use of

    ``void (*)(PyObject *)``

isn't quite the same as

    void (*)(PyObject \*)

but I gather ``...`` is preferable stylistically in most cases than
... \*...

22 years agoThe ansi_x3.4_1968 encoding is an alias for ascii, but isn't known in
Barry Warsaw [Mon, 30 Sep 2002 15:23:17 +0000 (15:23 +0000)]
The ansi_x3.4_1968 encoding is an alias for ascii, but isn't known in
Python 2.1.3.  However it's required by the email tests suite, so poke
it into the encodings aliases if it's missing.  The is apparently the
approved API for doing so.

Now we can remove the hexversion shortcircuits in the test suite.

22 years agofix a couple nits with my use of ReST
Skip Montanaro [Mon, 30 Sep 2002 15:23:01 +0000 (15:23 +0000)]
fix a couple nits with my use of ReST

22 years agoPatch #596576: Always use cc to link on NetBSD. Will backport to 2.2.
Martin v. Löwis [Mon, 30 Sep 2002 11:17:27 +0000 (11:17 +0000)]
Patch #596576: Always use cc to link on NetBSD. Will backport to 2.2.

22 years agoAdded -b tag option to limit output to a specific branch only.
Guido van Rossum [Sun, 29 Sep 2002 04:37:36 +0000 (04:37 +0000)]
Added -b tag option to limit output to a specific branch only.
Use -b HEAD to limit output to the trunk (skip all branch revisions).

22 years agoFinding a suitable interpreter to spawn needed tweaking on the Mac
Tony Lownds [Sun, 29 Sep 2002 00:34:10 +0000 (00:34 +0000)]
Finding a suitable interpreter to spawn needed tweaking on the Mac

22 years agoWhitespace normalization (get rid of tabs).
Guido van Rossum [Sun, 29 Sep 2002 00:25:51 +0000 (00:25 +0000)]
Whitespace normalization (get rid of tabs).

22 years agoMac users now see correct modifiers in the Key Binding Entry window.
Tony Lownds [Sun, 29 Sep 2002 00:23:08 +0000 (00:23 +0000)]
Mac users now see correct modifiers in the Key Binding Entry window.

22 years agoChange key binding to avoid conflict.
Tony Lownds [Sun, 29 Sep 2002 00:10:15 +0000 (00:10 +0000)]
Change key binding to avoid conflict.

22 years agoMake the tests pass under Python 2.1 but only by cheating. Python 2.1
Barry Warsaw [Sat, 28 Sep 2002 21:22:52 +0000 (21:22 +0000)]
Make the tests pass under Python 2.1 but only by cheating.  Python 2.1
doesn't know about the ansi-x3.4-1968 charset so skip two tests that
rely on that (msg_32.txt and msg_33.txt).

22 years agoAdd a test for SHORTEST encoding of utf-8 headers, and also update
Barry Warsaw [Sat, 28 Sep 2002 21:04:19 +0000 (21:04 +0000)]
Add a test for SHORTEST encoding of utf-8 headers, and also update
some of the test values which change because of this.

22 years agoUse True/False everywhere, and other code cleanups.
Barry Warsaw [Sat, 28 Sep 2002 21:02:51 +0000 (21:02 +0000)]
Use True/False everywhere, and other code cleanups.

22 years agoCode cleanup and add docstrings.
Barry Warsaw [Sat, 28 Sep 2002 20:52:26 +0000 (20:52 +0000)]
Code cleanup and add docstrings.

22 years agoUse True/False everywhere, and other code cleanups.
Barry Warsaw [Sat, 28 Sep 2002 20:49:57 +0000 (20:49 +0000)]
Use True/False everywhere, and other code cleanups.

22 years agoUse True/False everywhere.
Barry Warsaw [Sat, 28 Sep 2002 20:44:58 +0000 (20:44 +0000)]
Use True/False everywhere.

22 years agois_multipart(): Use isinstance() instead of type equality.
Barry Warsaw [Sat, 28 Sep 2002 20:41:39 +0000 (20:41 +0000)]
is_multipart(): Use isinstance() instead of type equality.

22 years agoDocstring and code cleanups, e.g. use True/False everywhere.
Barry Warsaw [Sat, 28 Sep 2002 20:40:25 +0000 (20:40 +0000)]
Docstring and code cleanups, e.g. use True/False everywhere.

22 years ago__init__(): Minor code cleanup.
Barry Warsaw [Sat, 28 Sep 2002 20:27:28 +0000 (20:27 +0000)]
__init__(): Minor code cleanup.

22 years agoAdd a pychecker suppression.
Barry Warsaw [Sat, 28 Sep 2002 20:25:15 +0000 (20:25 +0000)]
Add a pychecker suppression.

22 years ago(py-pychecker-run): Fix calculation of last command to include the
Barry Warsaw [Sat, 28 Sep 2002 18:17:56 +0000 (18:17 +0000)]
(py-pychecker-run): Fix calculation of last command to include the
filename of the current buffer.

22 years agoUse True/False everywhere.
Barry Warsaw [Sat, 28 Sep 2002 18:04:55 +0000 (18:04 +0000)]
Use True/False everywhere.

22 years agoAdded a feature suggested by Martin v Loewis, where a new header
Barry Warsaw [Sat, 28 Sep 2002 17:47:56 +0000 (17:47 +0000)]
Added a feature suggested by Martin v Loewis, where a new header
encoding flag SHORTEST means to return the shortest encoding between
base64 and qp.  This is used for the header_enc for utf-8.  SHORTEST
isn't legal for body_enc.

Also some code cleanup:

- use True/False everywhere
- use == instead of `is' in a few places
- added _unicode() and make consistent the "is unicode" checks
- update docstrings

22 years agoAllow internal whitespace in keys.
Fred Drake [Fri, 27 Sep 2002 16:21:18 +0000 (16:21 +0000)]
Allow internal whitespace in keys.
Closes SF bug #583248; backporting to r22-maint branch.

22 years agoitems(): New method, provided by Gustavo Niemeyer in SF bug #545096.
Fred Drake [Fri, 27 Sep 2002 15:49:56 +0000 (15:49 +0000)]
items():  New method, provided by Gustavo Niemeyer in SF bug #545096.

22 years agoAdded regression test for SF bug #561822: has_option() case sensitive.
Fred Drake [Fri, 27 Sep 2002 15:35:23 +0000 (15:35 +0000)]
Added regression test for SF bug #561822: has_option() case sensitive.

22 years agohas_option(): Use the option name transform consistently.
Fred Drake [Fri, 27 Sep 2002 15:33:11 +0000 (15:33 +0000)]
has_option():  Use the option name transform consistently.
Closes SF bug #561822.

Integrate the "code cleanup and general bug fix patch" (SF bug #545096),
contributed by Gustavo Niemeyer.  This is the portion of that patch that
does not add new functionality.

22 years agoRevert Rev 1.6
Kurt B. Kaiser [Fri, 27 Sep 2002 00:34:31 +0000 (00:34 +0000)]
Revert Rev 1.6
"Merge Py Idle changes:
Rev 1.7 [Python-idle] loewis
Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input."

Not compatible with Python 2.2.1.  Forwardport as a SF patch.

22 years agoFix Bug 612886 copy/paste menu items fail
Kurt B. Kaiser [Thu, 26 Sep 2002 22:13:22 +0000 (22:13 +0000)]
Fix Bug 612886 copy/paste menu items fail
(cut vs. Cut etc.)
Fix Bug 613006 Ctrl-x Unix Binding Clears Selection
(do-nothing does something :)
Leave some debugging prints behind, commented out
M EditorWindow.py
M config-keys.def
M configHandler.py

22 years agotry executing 'less' in a parenthesized subshell - prevents systems like
Skip Montanaro [Thu, 26 Sep 2002 21:44:57 +0000 (21:44 +0000)]
try executing 'less' in a parenthesized subshell - prevents systems like
Solaris from squawking if less isn't available.  See
http://python.org/sf/612111 for details.

22 years agoOops, must convert hyphens to underscores in keys of aliases dict.
Guido van Rossum [Thu, 26 Sep 2002 20:08:23 +0000 (20:08 +0000)]
Oops, must convert hyphens to underscores in keys of aliases dict.

22 years agotest_unicode_error(): Comment this test out, since we still have
Barry Warsaw [Thu, 26 Sep 2002 17:21:53 +0000 (17:21 +0000)]
test_unicode_error(): Comment this test out, since we still have
controversy.

22 years agoFixing some RFC 2231 related issues as reported in the Spambayes
Barry Warsaw [Thu, 26 Sep 2002 17:21:02 +0000 (17:21 +0000)]
Fixing some RFC 2231 related issues as reported in the Spambayes
project, and with assistance from Oleg Broytmann.  Specifically,
added some new tests to make sure we handle RFC 2231 encoded
parameters correctly.  Two new data files were added which contain RFC
2231 encoded parameters.

22 years agoFixing some RFC 2231 related issues as reported in the Spambayes
Barry Warsaw [Thu, 26 Sep 2002 17:19:34 +0000 (17:19 +0000)]
Fixing some RFC 2231 related issues as reported in the Spambayes
project, and with assistance from Oleg Broytmann.  Specifically,

get_param(), get_params(): Document that these methods may return
parameter values that are either strings, or 3-tuples in the case of
RFC 2231 encoded parameters.  The application should be prepared to
deal with such return values.

get_boundary(): Be prepared to deal with RFC 2231 encoded boundary
parameters.  It makes little sense to have boundaries that are
anything but ascii, so if we get back a 3-tuple from get_param() we
will decode it into ascii and let any failures percolate up.

get_content_charset(): New method which treats the charset parameter
just like the boundary parameter in get_boundary().  Note that
"get_charset()" was already taken to return the default Charset
object.

get_charsets(): Rewrite to use get_content_charset().

22 years agoPatch for the DEC Alpha under Linux, by Lee Busby.
Guido van Rossum [Thu, 26 Sep 2002 16:52:02 +0000 (16:52 +0000)]
Patch for the DEC Alpha under Linux, by Lee Busby.

22 years agoDisable big charsets in UCS-4 builds. Works around #599377.
Martin v. Löwis [Thu, 26 Sep 2002 16:39:20 +0000 (16:39 +0000)]
Disable big charsets in UCS-4 builds. Works around #599377.
Will backport to 2.2

22 years agoAdd encoding name in LookupError. Fixes #615013. Will backport to 2.2.
Martin v. Löwis [Thu, 26 Sep 2002 16:01:24 +0000 (16:01 +0000)]
Add encoding name in LookupError. Fixes #615013. Will backport to 2.2.

22 years agoAgain, I did check in too many changes. Sorry.
Thomas Heller [Thu, 26 Sep 2002 13:19:48 +0000 (13:19 +0000)]
Again, I did check in too many changes. Sorry.

22 years agoAdd deprecation notices to the documentation to reflect recent additions to
Fred Drake [Wed, 25 Sep 2002 22:13:27 +0000 (22:13 +0000)]
Add deprecation notices to the documentation to reflect recent additions to
PEP 4.

22 years ago__version__: Bump to 2.4
Barry Warsaw [Wed, 25 Sep 2002 22:07:50 +0000 (22:07 +0000)]
__version__: Bump to 2.4

Move the imports of Parser and Message inside the
message_from_string() and message_from_file() functions.  This way
just "import email" won't suck in most of the submodules of the
package.

Note: this will break code that relied on "import email" giving you a
bunch of the submodules, but that was never documented and should not
have been relied on.

22 years agoUpdate some comments about what version of the documentation tools
Fred Drake [Wed, 25 Sep 2002 21:41:22 +0000 (21:41 +0000)]
Update some comments about what version of the documentation tools
code to use.

22 years agoBack out previous change.
Neal Norwitz [Wed, 25 Sep 2002 21:26:19 +0000 (21:26 +0000)]
Back out previous change.
Quotes aren't necessary in case statements.  Spotted by Neil Schemenauer.

22 years agoFix SF # 614587, configure.in patch from Tim Rice
Neal Norwitz [Wed, 25 Sep 2002 20:38:34 +0000 (20:38 +0000)]
Fix SF # 614587, configure.in patch from Tim Rice

Need to quote $GCC in case it isn't set.

22 years agoSF bug 613233: test_threadedtempfile hangs
Tim Peters [Wed, 25 Sep 2002 20:32:28 +0000 (20:32 +0000)]
SF bug 613233: test_threadedtempfile hangs

A possibility to deadlock (on the hidden import lock) was created here
in 2.3, seemingly when tempfile.py started to call functions in
random.py.  The cure is "the usual":  don't spawn threads as a side
effect of importing, when the spawned threads themselves do imports
(directly or indirectly), and the code that spawned the threads is
waiting for the threads to finish (they can't finish, because they're
waiting for the import lock the spawner still holds).  Worming around
this is why the "test_main" mechanism was introduced in regrest, so
it's a straightforward fix.

NOT a bugfix candidate; the problem was introduced in 2.3.

22 years agoFix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton
Neal Norwitz [Wed, 25 Sep 2002 19:20:12 +0000 (19:20 +0000)]
Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton

Add a test too.  urljoin() would make file:/tmp/foo instead of file:///tmp/foo

Bugfix candidate, I will backport.

22 years agoFinish & commit some docs for markup that's been in use for a while.
Fred Drake [Wed, 25 Sep 2002 18:44:21 +0000 (18:44 +0000)]
Finish & commit some docs for markup that's been in use for a while.

22 years agoAdd yet another alias for ASCII found in the field. Will backport to
Guido van Rossum [Wed, 25 Sep 2002 16:44:34 +0000 (16:44 +0000)]
Add yet another alias for ASCII found in the field.  Will backport to
2.2.2.

22 years agoAdd regression test for a bug found in the version of the markupbase
Fred Drake [Wed, 25 Sep 2002 16:29:17 +0000 (16:29 +0000)]
Add regression test for a bug found in the version of the markupbase
module used in the Zope TAL implementation.  The bug was already fixed
in the Python standard library, but the regression test would be good
to keep around.

22 years agoDisable building of the fpectl module -- it's dangerous or useless
Guido van Rossum [Wed, 25 Sep 2002 15:02:44 +0000 (15:02 +0000)]
Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.  Will backport to 2.2.2.

22 years agoDisable building of the fpectl module -- it's dangerous or useless
Guido van Rossum [Wed, 25 Sep 2002 14:59:57 +0000 (14:59 +0000)]
Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.  Will backport to 2.2.2.

22 years agoOk, read the source this time: PyErr_SetObject() does not steal a reference.
Fred Drake [Wed, 25 Sep 2002 02:34:27 +0000 (02:34 +0000)]
Ok, read the source this time: PyErr_SetObject() does not steal a reference.

22 years agoAnother try at clarifying what goes into and comes out of Unicode objects.
Fred Drake [Tue, 24 Sep 2002 21:09:13 +0000 (21:09 +0000)]
Another try at clarifying what goes into and comes out of Unicode objects.
Document the indices() method of slice objects.

22 years agoAnother try at clarifying what goes into and comes out of Unicode objects.
Fred Drake [Tue, 24 Sep 2002 21:08:37 +0000 (21:08 +0000)]
Another try at clarifying what goes into and comes out of Unicode objects.

22 years agoOn Windows, select() does not accept empty lists.
Thomas Heller [Tue, 24 Sep 2002 17:30:31 +0000 (17:30 +0000)]
On Windows, select() does not accept empty lists.
Patch suggested by Guido, fixes SF item 611464.

Bugfix candidate, will backport to release22-maint myself.