]> granicus.if.org Git - python/log
python
20 years agoFix repr for negative imaginary part. Fixes #1013908.
Martin v. Löwis [Sun, 22 Aug 2004 21:09:15 +0000 (21:09 +0000)]
Fix repr for negative imaginary part. Fixes #1013908.

20 years agoStart deferring to the LaTeX docs for details. I'd like to move the
Tim Peters [Sun, 22 Aug 2004 20:51:53 +0000 (20:51 +0000)]
Start deferring to the LaTeX docs for details.  I'd like to move the
docstrings toward being a lot shorter, and telling the whole truth in
the manual instead.  This change is an example:  the manual has detailed
explanations of the option names now, so it's Bad to repeat them in
the docstring (two detailed descriptions are certain to get out of synch).
Just listing the names has memory-jogging benefits, though, so that's
still helpful in the docstring.

20 years agoAdded NDIFF_DIFF option.
Tim Peters [Sun, 22 Aug 2004 19:43:28 +0000 (19:43 +0000)]
Added NDIFF_DIFF option.

20 years agoWhitespace normalization.
Tim Peters [Sun, 22 Aug 2004 19:42:56 +0000 (19:42 +0000)]
Whitespace normalization.

20 years agoType in docstring.
Tim Peters [Sun, 22 Aug 2004 17:50:45 +0000 (17:50 +0000)]
Type in docstring.

20 years ago_parse_example(): Simplified new code to preserve trailing spaces before
Tim Peters [Sun, 22 Aug 2004 17:34:58 +0000 (17:34 +0000)]
_parse_example():  Simplified new code to preserve trailing spaces before
final newline.  Anything to get rid of "l" as a variable name <0.5 wink>.

20 years agoAdd acknowledgements to ExitDialog.
Martin v. Löwis [Sun, 22 Aug 2004 17:10:12 +0000 (17:10 +0000)]
Add acknowledgements to ExitDialog.

20 years agoPatch #997284: Allow pydoc to work with XP Themes (.manifest file)
Martin v. Löwis [Sun, 22 Aug 2004 16:13:26 +0000 (16:13 +0000)]
Patch #997284: Allow pydoc to work with XP Themes (.manifest file)
Will backport to 2.3.

20 years agoPatch #1009389: Make __credits__ a Unicode object.
Martin v. Löwis [Sun, 22 Aug 2004 16:08:04 +0000 (16:08 +0000)]
Patch #1009389: Make __credits__ a Unicode object.

20 years agoReplace yield with sequence class. Fixes #1009803.
Martin v. Löwis [Sun, 22 Aug 2004 16:04:50 +0000 (16:04 +0000)]
Replace yield with sequence class. Fixes #1009803.

20 years agoSF bug #1013760: Error in Chapter 4 of Tutorial
Raymond Hettinger [Sun, 22 Aug 2004 15:24:33 +0000 (15:24 +0000)]
SF bug #1013760: Error in Chapter 4 of Tutorial

Fit a nit.

20 years agoBugs fixed:
Jim Fulton [Sun, 22 Aug 2004 14:10:00 +0000 (14:10 +0000)]
Bugs fixed:

  - Test filenames sometimes had trailing .pyc or .pyo sufixes
    (when module __file__ did).

  - Trailing spaces spaces in expected output were dropped.

New default failure format:

  - Separation of examples from file info makes examples easier to see

  - More vertical separation, improving readability

  - Emacs-recognized file info (also closer to Python exception format)

20 years agoMove msi from sandbox to Tools.
Martin v. Löwis [Sun, 22 Aug 2004 13:34:34 +0000 (13:34 +0000)]
Move msi from sandbox to Tools.

20 years ago1. If user passes a non-existant filename on the commandline, just open
Kurt B. Kaiser [Sun, 22 Aug 2004 05:14:32 +0000 (05:14 +0000)]
1. If user passes a non-existant filename on the commandline, just open
   a new file, don't raise a dialog.  IDLEfork 954928.
2. Refactor EditorWindow.wakeup() to WindowList.ListedToplevel.wakeup() and
   clarify that the Toplevel of an EditorWindow is a WindowList.ListedToplevel.
3. Make a number of improvements to keyboard focus binding.  Improve window
   raising, especially in the debugger.  IDLEfork Bug 763524 (GvR list).
4. Bump idlever to 1.1a3

M Debugger.py
M EditorWindow.py
M FileList.py
M NEWS.txt
M PyShell.py
M WindowList.py
M idlever.py

20 years ago_ellipsis_match(): Removed special-casing of "...\n". The semantics
Tim Peters [Sun, 22 Aug 2004 01:47:51 +0000 (01:47 +0000)]
_ellipsis_match():  Removed special-casing of "...\n".  The semantics
are non-obvious either way because the newline character "is invisible",
but it's still there all the same, and it's easier to explain/predict
if that reality is left alone.

20 years agosf #1009373, #1005936. fix underscores in index entries in PDF files.
Neal Norwitz [Sat, 21 Aug 2004 15:13:52 +0000 (15:13 +0000)]
sf #1009373, #1005936. fix underscores in index entries in PDF files.
I couldn't test this, but it didn't break anything and the patch
reported fixed the problem.

Bugfix candidate.

20 years agoPatch #880621: the last message of a Babyl mailbox ends in '\037' instead of
Johannes Gijsbers [Sat, 21 Aug 2004 12:30:26 +0000 (12:30 +0000)]
Patch #880621: the last message of a Babyl mailbox ends in '\037' instead of
'\037\014\n' (see http://quimby.gnus.org/notes/BABYL) so look for that as well,
so that applications won't get '\037' as the last line of the last message.

20 years agoPatch #1011123: Use urllib.quote() instead of cgi.escape() for encoding the
Johannes Gijsbers [Sat, 21 Aug 2004 10:43:29 +0000 (10:43 +0000)]
Patch #1011123: Use urllib.quote() instead of cgi.escape() for encoding the
href attribute in list_directory(). This fixes the links for legal Unix
filenames such as 'a"b'.

20 years agoPatch 1012740: cStringIO's truncate doesn't
Tim Peters [Sat, 21 Aug 2004 06:55:43 +0000 (06:55 +0000)]
Patch 1012740:  cStringIO's truncate doesn't

truncate() left the stream position unchanged, which meant the
"truncated" data didn't go away:

>>> io.write('abc')
>>> io.truncate(0)
>>> io.write('xyz')
>>> io.getvalue()
'abcxyz'

Patch by Dima Dorfman.

20 years agoFix grammar, spotted by Hye-Shik Chang
Neal Norwitz [Fri, 20 Aug 2004 23:13:26 +0000 (23:13 +0000)]
Fix grammar, spotted by Hye-Shik Chang

20 years agoCorrect argument specifications of load_compiled and load_source: the file
Johannes Gijsbers [Fri, 20 Aug 2004 14:38:56 +0000 (14:38 +0000)]
Correct argument specifications of load_compiled and load_source: the file
argument is optional on both (the format string is "ss|O!").

20 years agoQuote # as \# to make lib compile again.
Johannes Gijsbers [Fri, 20 Aug 2004 14:37:05 +0000 (14:37 +0000)]
Quote # as \# to make lib compile again.

20 years agoBump minimum Python version to 2.1. Fixes #1009803.
Martin v. Löwis [Fri, 20 Aug 2004 07:31:37 +0000 (07:31 +0000)]
Bump minimum Python version to 2.1. Fixes #1009803.

20 years agoReplace tricky and/or with straight-forward if:else:
Martin v. Löwis [Fri, 20 Aug 2004 06:35:46 +0000 (06:35 +0000)]
Replace tricky and/or with straight-forward if:else:

20 years agoFail fatally if strdup fails.
Martin v. Löwis [Fri, 20 Aug 2004 06:26:59 +0000 (06:26 +0000)]
Fail fatally if strdup fails.

20 years agoRemove debug print.
Martin v. Löwis [Fri, 20 Aug 2004 06:19:23 +0000 (06:19 +0000)]
Remove debug print.

20 years agoWhitespace normalization.
Tim Peters [Fri, 20 Aug 2004 03:47:14 +0000 (03:47 +0000)]
Whitespace normalization.

20 years agoStab at SF 1010777: test_queue fails occasionally
Tim Peters [Fri, 20 Aug 2004 03:27:12 +0000 (03:27 +0000)]
Stab at SF 1010777:  test_queue fails occasionally

test_queue has failed occasionally for years, and there's more than one
cause.

The primary cause in the SF report appears to be that the test driver
really needs entirely different code for thread tests that expect to
raise exceptions than for thread tests that are testing non-exceptional
blocking semantics.  So gave them entirely different code, and added a
ton of explanation.

Another cause is that the blocking thread tests relied in several places
on the difference between sleep(.1) and sleep(.2) being long enough for
the trigger thread to do its stuff sot that the blocking thread could make
progress.  That's just not reliable on a loaded machine.  Boosted the 0.2's
to 10.0's instead, which should be long enough under any non-catastrophic
system conditions.  That doesn't make the test take longer to run, the 10.0
is just how long the blocking thread is *willing* to wait for the trigger
thread to do something.  But if the Queue module is plain broken, such
tests will indeed take 10 seconds to fail now.

For similar (heavy load) reasons, changed threaded-test termination to
be willing to wait 10 seconds for the signal thread to end too.

20 years agoSemantic-neutral format and comment changes.
Tim Peters [Fri, 20 Aug 2004 02:37:25 +0000 (02:37 +0000)]
Semantic-neutral format and comment changes.

20 years agoTry to improve grammar and use versionadded
Neal Norwitz [Fri, 20 Aug 2004 02:36:27 +0000 (02:36 +0000)]
Try to improve grammar and use versionadded

20 years agoGave _ellipsis_match() an attractive new leading underscore.
Tim Peters [Fri, 20 Aug 2004 02:08:04 +0000 (02:08 +0000)]
Gave _ellipsis_match() an attractive new leading underscore.

20 years agoFix markup. versionchanged automatically adds a period, so remove the extra one.
Neal Norwitz [Fri, 20 Aug 2004 01:52:42 +0000 (01:52 +0000)]
Fix markup.  versionchanged automatically adds a period, so remove the extra one.

20 years agoEstablish policies with respect to 2.3 compatibilty and treated spec
Raymond Hettinger [Thu, 19 Aug 2004 22:39:55 +0000 (22:39 +0000)]
Establish policies with respect to 2.3 compatibilty and treated spec
updates as bugfixes.

20 years agoSF bug #1012315: weakref.WeakValueDictionary should override .has_key()
Raymond Hettinger [Thu, 19 Aug 2004 21:32:06 +0000 (21:32 +0000)]
SF bug #1012315:  weakref.WeakValueDictionary should override .has_key()

* Check the found object for a None value during a contains/has_key
  lookup.  Perhaps it will help the OP who is likely suffering from an
  occassional GC or threading object deletion after self.data is checked.

* Complete the previous patch by removing the unnecessary indirection
  for weak dict iterators.  Makes the code cleaner and more readable.

20 years agoGot rid of nooutput() (was used by DocTestCase.debug())
Edward Loper [Thu, 19 Aug 2004 19:26:06 +0000 (19:26 +0000)]
Got rid of nooutput() (was used by DocTestCase.debug())

It's redundant, since no output is written anyway: DebugRunner doesn't
generate any output for failures and unexpected exceptions, and since
verbose=False, it won't generate any output for non-failures either.

20 years agoUpdated __all__ to include every non-underscored class, function, and
Edward Loper [Thu, 19 Aug 2004 19:19:03 +0000 (19:19 +0000)]
Updated __all__ to include every non-underscored class, function, and
constant defined by the module (except the test*() functions, which
should be integrated into test/test_doctest.py, anyway).

20 years agoBug #1005737, #1007249: Fix several build problems and warnings
Hye-Shik Chang [Thu, 19 Aug 2004 17:52:37 +0000 (17:52 +0000)]
Bug #1005737, #1007249: Fix several build problems and warnings
found on old/legacy C compilers of HP-UX, IRIX and Tru64.  (Reported
by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)

20 years agoBug #1005737, #1007249: Fix several build problems and warnings
Hye-Shik Chang [Thu, 19 Aug 2004 17:49:56 +0000 (17:49 +0000)]
Bug #1005737, #1007249: Fix several build problems and warnings
found on legacy C compilers of HP-UX, IRIX and Tru64.  (Reported
by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)

20 years agoNow that they've settled down, document doctest directives.
Tim Peters [Thu, 19 Aug 2004 16:38:58 +0000 (16:38 +0000)]
Now that they've settled down, document doctest directives.

20 years agoPort test_zipfile to unittest (patch #736962).
Johannes Gijsbers [Thu, 19 Aug 2004 15:11:50 +0000 (15:11 +0000)]
Port test_zipfile to unittest (patch #736962).

20 years agoellipsis_match(): Changed treatment of start- and end-of-string exact
Tim Peters [Thu, 19 Aug 2004 14:06:20 +0000 (14:06 +0000)]
ellipsis_match():  Changed treatment of start- and end-of-string exact
matches to be symmetric.  This makes the algorithm easier to understand.

20 years agoPatch #900727: Add Py_InitializeEx to allow embedding without signals.
Martin v. Löwis [Thu, 19 Aug 2004 11:31:58 +0000 (11:31 +0000)]
Patch #900727: Add Py_InitializeEx to allow embedding without signals.

20 years agoPatch #1011822: Display errno/strerror for inaccessible files.
Martin v. Löwis [Thu, 19 Aug 2004 11:07:49 +0000 (11:07 +0000)]
Patch #1011822: Display errno/strerror for inaccessible files.

20 years agoReplaced the ELLIPSIS implementation with a worst-case linear-time one.
Tim Peters [Thu, 19 Aug 2004 08:10:08 +0000 (08:10 +0000)]
Replaced the ELLIPSIS implementation with a worst-case linear-time one.

20 years agoELLIPSIS implementation: an ellipsis couldn't match nothing if it
Tim Peters [Thu, 19 Aug 2004 06:49:33 +0000 (06:49 +0000)]
ELLIPSIS implementation:  an ellipsis couldn't match nothing if it
appeared at the end of a line.  Repaired that.  Also noted that it's
too easy to provoke this implementation into requiring exponential
time, and especially when a test fails.  I'll replace the implementation
with an always-efficient one later.

20 years agoRewrite test_order so as to be more "proper". Originally relied on an
Brett Cannon [Thu, 19 Aug 2004 03:48:24 +0000 (03:48 +0000)]
Rewrite test_order so as to be more "proper".  Originally relied on an
error based on decorating with staticmethod too soon for the code to execute.
This meant that if the test didn't pass it just errored out.  Now if the test
doesn't pass it leads to a failure instead.

20 years agofix SF bug #1008690: Incorrect <link rel="index"> href in Tutorial
Fred Drake [Thu, 19 Aug 2004 01:37:48 +0000 (01:37 +0000)]
fix SF bug #1008690: Incorrect <link rel="index"> href in Tutorial

The make_head_and_body() function used a hardcoded value for the
<link> element for the index; this patch causes the proper output
filename to be captured during the transformation phase so it can be
used during the page assembly phase.

20 years agoRemove commented definition of the MKHOWTO macro.
Matthias Klose [Wed, 18 Aug 2004 22:27:04 +0000 (22:27 +0000)]
Remove commented definition of the MKHOWTO macro.

20 years agoRemove zero-byte gif files from generated html docs
Matthias Klose [Wed, 18 Aug 2004 22:17:44 +0000 (22:17 +0000)]
Remove zero-byte gif files from generated html docs

20 years agoExpand tabs.
Martin v. Löwis [Wed, 18 Aug 2004 17:47:40 +0000 (17:47 +0000)]
Expand tabs.

20 years agoAdd support for FreeBSD 6.
Hye-Shik Chang [Wed, 18 Aug 2004 15:13:41 +0000 (15:13 +0000)]
Add support for FreeBSD 6.

20 years agoPatch #995126: Correct directory size, and generate GNU tarfiles by default.
Martin v. Löwis [Wed, 18 Aug 2004 13:57:44 +0000 (13:57 +0000)]
Patch #995126: Correct directory size, and generate GNU tarfiles by default.

20 years agoPatch #914291: Restore locale while readline is running.
Martin v. Löwis [Wed, 18 Aug 2004 13:34:00 +0000 (13:34 +0000)]
Patch #914291: Restore locale while readline is running.

20 years agoPatch #1011144: Correct regex for coding decls.
Martin v. Löwis [Wed, 18 Aug 2004 13:25:05 +0000 (13:25 +0000)]
Patch #1011144: Correct regex for coding decls.

20 years agoPatch #980082: Missing INCREF in PyType_Ready.
Martin v. Löwis [Wed, 18 Aug 2004 13:16:54 +0000 (13:16 +0000)]
Patch #980082: Missing INCREF in PyType_Ready.

20 years agoPatch #800236: add HTTPResponse.getheaders().
Martin v. Löwis [Wed, 18 Aug 2004 12:46:26 +0000 (12:46 +0000)]
Patch #800236: add HTTPResponse.getheaders().

20 years agoPatch #1006219: let inspect.getsource show '@' decorators and add tests for
Johannes Gijsbers [Wed, 18 Aug 2004 12:40:31 +0000 (12:40 +0000)]
Patch #1006219: let inspect.getsource show '@' decorators and add tests for
this (which are rather ugly, but it'll have to do until test_inspect gets a
major overhaul and a conversion to unittest). Thanks Simon Percivall!

20 years agoPatch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate.
Martin v. Löwis [Wed, 18 Aug 2004 12:27:40 +0000 (12:27 +0000)]
Patch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate.

20 years agoPatch #764217: Add nametofont function, exists parameter.
Martin v. Löwis [Wed, 18 Aug 2004 11:06:45 +0000 (11:06 +0000)]
Patch #764217: Add nametofont function, exists parameter.

20 years agoMove the bytecode optimizer upstream so that its results are saved in pyc
Raymond Hettinger [Wed, 18 Aug 2004 05:22:06 +0000 (05:22 +0000)]
Move the bytecode optimizer upstream so that its results are saved in pyc
files and not re-optimized upon import.  Saves a bit of startup time while
still remaining decoupled from the rest of the compiler.

As a side benefit, handcoded bytecode is not run through the optimizer
when new code objects are created.  Hopefully, a handcoder has already
created exactly what they want to have run.

(Idea suggested by Armin Rigo and Michael Hudson.  Initially avoided
 because of worries about compiler coupling; however, only the nexus
 point needed to be moved so there won't be a conflict when the AST
 branch is loaded.)

20 years agoVarious alpha 3 updates.
Raymond Hettinger [Wed, 18 Aug 2004 02:51:32 +0000 (02:51 +0000)]
Various alpha 3 updates.

20 years agoDeprecate sys.exitfunc in favor of the atexit module.
Raymond Hettinger [Wed, 18 Aug 2004 02:50:00 +0000 (02:50 +0000)]
Deprecate sys.exitfunc in favor of the atexit module.
Per Guido, sys.exitfunc will be kept around for backwards compatability
but atexit will become the one preferred way to do it.

20 years agoThis is Mark Russell's patch:
Michael W. Hudson [Tue, 17 Aug 2004 17:29:16 +0000 (17:29 +0000)]
This is Mark Russell's patch:

1009560 ] Fix @decorator evaluation order

From the description:

Changes in this patch:

- Change Grammar/Grammar to require
newlines between adjacent decorators.

- Fix order of evaluation of decorators
in the C (compile.c) and python
(Lib/compiler/pycodegen.py) compilers

- Add better order of evaluation check
to test_decorators.py (test_eval_order)

- Update the decorator documentation in
the reference manual (improve description
of evaluation order and update syntax
description)

and the comment:

Used Brett's evaluation order (see
http://mail.python.org/pipermail/python-dev/2004-August/047835.html)

(I'm checking this in for Anthony who was having problems getting SF to
talk to him)

20 years agoFixed bug in line-number finding for examples (DocTestParser wasn't
Edward Loper [Tue, 17 Aug 2004 16:37:12 +0000 (16:37 +0000)]
Fixed bug in line-number finding for examples (DocTestParser wasn't
updating line numbers correctly for bare prompts & examples containing
only comments).

20 years agoThere are no longer any special case test skips.
Raymond Hettinger [Tue, 17 Aug 2004 16:34:51 +0000 (16:34 +0000)]
There are no longer any special case test skips.

20 years agoRemove test of obsolete trim() operation which was supplanted by
Raymond Hettinger [Tue, 17 Aug 2004 16:27:04 +0000 (16:27 +0000)]
Remove test of obsolete trim() operation which was supplanted by
normalize() in Draft 1.06 (9 October 2002):

  The normalize operation has been added; it reduces a number to a
  canonical form.  (This replaces the trim operator, which only
  removed trailing fractional zeros.)

20 years agoUse readline/raw_input() in pydoc.Helper.interact if available and self.input
Johannes Gijsbers [Tue, 17 Aug 2004 13:21:53 +0000 (13:21 +0000)]
Use readline/raw_input() in pydoc.Helper.interact if available and self.input
is sys.stdin. Based on a patch (#726204) by Dmitry Vasiliev and a comment from
Guido in an older patch (#549901).

20 years agoThe get_installer_filename() method forgot to return the name it
Thomas Heller [Tue, 17 Aug 2004 10:15:07 +0000 (10:15 +0000)]
The get_installer_filename() method forgot to return the name it
calculates.  Spotted by Cort Danger Stratton.

20 years agoSF bug #833957: Ctrl+key combos stop working in IDLE
Raymond Hettinger [Tue, 17 Aug 2004 08:01:19 +0000 (08:01 +0000)]
SF bug #833957:  Ctrl+key combos stop working in IDLE

Make key combinations work with upper and lowercase as is the MS standard.

20 years agoThis file is no longer used in version 2.39.
Raymond Hettinger [Tue, 17 Aug 2004 06:56:25 +0000 (06:56 +0000)]
This file is no longer used in version 2.39.
Was supplanted by tointegral.decTest.

20 years agoAdd two new files and update remaining tests from the latest update of the
Raymond Hettinger [Tue, 17 Aug 2004 06:42:13 +0000 (06:42 +0000)]
Add two new files and update remaining tests from the latest update of the
test suite in version 2.39 of dectest.zip.

20 years agoRevise max() and min() to comply with the 8/2/2004 update to the specification
Raymond Hettinger [Tue, 17 Aug 2004 06:39:37 +0000 (06:39 +0000)]
Revise max() and min() to comply with the 8/2/2004 update to the specification
(version 1.45):

The max and min operations follow the rules in the current IEEE 754 revision draft:
if one operand is a quiet NaN and the other is number, then the number is always returned
if both operands are finite and equal in numerical value then an ordering is applied:
    if the signs differ then max returns the operand with the positive sign and
    min returns the operand with the negative sign; if the signs are the same then
    the exponent is used to select the result.

20 years ago* Dynamically build a list of files to be tested (necessary because
Raymond Hettinger [Tue, 17 Aug 2004 05:42:09 +0000 (05:42 +0000)]
* Dynamically build a list of files to be tested (necessary because
  version 2.39 of dectest.zip adds some new test files and because
  some existing test files were getting skipped).
* Remove two docstrings which cluttered unittest's output.
* Simplify a for-loop with a list comprehension.

20 years agoSF bug #951482: New module: doc versus action
Raymond Hettinger [Tue, 17 Aug 2004 02:31:55 +0000 (02:31 +0000)]
SF bug #951482:  New module: doc versus action

Strengthen the warnings about creating bogus objects using the new module.

20 years agoSF bug #805304: super instances don't support item assignment
Raymond Hettinger [Tue, 17 Aug 2004 02:21:45 +0000 (02:21 +0000)]
SF bug #805304:  super instances don't support item assignment

Document a nuance of super().  It is designed to work well with dotted
attribute lookup but not with equivalent implicit lookups using operators
or statements.

20 years agofix a couple problems with the last patch picked up by Michael Hudson
Skip Montanaro [Mon, 16 Aug 2004 16:15:13 +0000 (16:15 +0000)]
fix a couple problems with the last patch picked up by Michael Hudson

20 years agoTypo fix
Andrew M. Kuchling [Mon, 16 Aug 2004 16:12:23 +0000 (16:12 +0000)]
Typo fix

20 years agoTest cases and fixes for bugs described in patch #873418: email/Message.py:
Barry Warsaw [Mon, 16 Aug 2004 15:47:34 +0000 (15:47 +0000)]
Test cases and fixes for bugs described in patch #873418: email/Message.py:
del_param fails when specifying a header.

20 years agoBeing bsd-based, darwin/macosx has the same limitation w.r.t. the "echo"
Skip Montanaro [Mon, 16 Aug 2004 15:35:54 +0000 (15:35 +0000)]
Being bsd-based, darwin/macosx has the same limitation w.r.t. the "echo"
service.

20 years ago- pygettext.py: Generate POT-Creation-Date header in ISO format.
Matthias Klose [Mon, 16 Aug 2004 12:10:12 +0000 (12:10 +0000)]
- pygettext.py: Generate POT-Creation-Date header in ISO format.

20 years agoThe attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSD
Matthias Klose [Mon, 16 Aug 2004 11:35:51 +0000 (11:35 +0000)]
The attached patch fixes FTBFS on GNU/k*BSD.  The problem happens on GNU/k*BSD
because GNU/k*BSD uses gnu pth to provide pthreads, but will also happen on any
system that does the same.

python fails to build because it doesn't detect gnu pth in pthread
emulation. See C comments in patch for details.

patch taken from http://bugs.debian.org/264315

20 years agoMinor improvements to the threading introduction:
Raymond Hettinger [Mon, 16 Aug 2004 05:11:04 +0000 (05:11 +0000)]
Minor improvements to the threading introduction:

* Expand the example to show a join.

* Mention the use case of I/O running concurrent with a computational
  thread.

* Be a tad more forceful about recommending Queue over other approaches
  to synchonization.

* Eliminate discussion around having a single interpreter.  This is a
  more advanced discussion that belongs in the library reference and
  in a section on extending and embedding.

20 years agoMinor formatting cleanup.
Raymond Hettinger [Mon, 16 Aug 2004 01:45:34 +0000 (01:45 +0000)]
Minor formatting cleanup.

20 years ago* Uncomment the SyntaxError doctest after Tim demonstrated how.
Raymond Hettinger [Mon, 16 Aug 2004 01:35:28 +0000 (01:35 +0000)]
* Uncomment the SyntaxError doctest after Tim demonstrated how.
* Remove unnecessary sys.PS2 prompt lines.

20 years agoFix punctuation typo.
Raymond Hettinger [Sun, 15 Aug 2004 23:51:38 +0000 (23:51 +0000)]
Fix punctuation typo.

20 years agoAdd a notes section to the docs:
Raymond Hettinger [Sun, 15 Aug 2004 23:47:48 +0000 (23:47 +0000)]
Add a notes section to the docs:

* Discuss representation error versus loss of significance.
* Document special values including qNaN, sNaN, +0, -0.
* Show the suprising display of non-normalized zero values.

20 years agoSF patch #872326: generator expression implementation
Raymond Hettinger [Sun, 15 Aug 2004 23:28:10 +0000 (23:28 +0000)]
SF patch #872326:  generator expression implementation
(Contributed by Jiwon Seo.)

Add genexps to the reference manual.

20 years ago- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).
Matthias Klose [Sun, 15 Aug 2004 17:04:33 +0000 (17:04 +0000)]
- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).

20 years agoAdd get_history_item and replace_history_item functions to the readline
Skip Montanaro [Sun, 15 Aug 2004 14:32:06 +0000 (14:32 +0000)]
Add get_history_item and replace_history_item functions to the readline
module.  Closes patch #675551.  My apologies to Michal Vitecek for taking so
long to process this.

20 years agoMatch the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro [Sun, 15 Aug 2004 14:08:23 +0000 (14:08 +0000)]
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
warning from GCC.  Closes patch #1006629.

20 years agoQuote \r\n correctly, remove random indentation (patch #1009384). Thanks
Johannes Gijsbers [Sun, 15 Aug 2004 12:23:10 +0000 (12:23 +0000)]
Quote \r\n correctly, remove random indentation (patch #1009384). Thanks
Cherniavsky Beni!

20 years agoCorrect the order of application for decorators. Meant to be bottom-up and not
Brett Cannon [Sun, 15 Aug 2004 07:21:25 +0000 (07:21 +0000)]
Correct the order of application for decorators.  Meant to be bottom-up and not
top-down.  Now matches the PEP.

20 years agoFix incorrect comment for (struct compiling)->c_cellvars
Brett Cannon [Sun, 15 Aug 2004 01:15:01 +0000 (01:15 +0000)]
Fix incorrect comment for (struct compiling)->c_cellvars

20 years agoLet cgi.parse_header() properly unquote headers (patch #1008597).
Johannes Gijsbers [Sat, 14 Aug 2004 15:39:34 +0000 (15:39 +0000)]
Let cgi.parse_header() properly unquote headers (patch #1008597).

20 years agobug #989672: pdb.doc and the help messages for the help_d and help_u methods
Johannes Gijsbers [Sat, 14 Aug 2004 15:19:28 +0000 (15:19 +0000)]
bug #989672: pdb.doc and the help messages for the help_d and help_u methods
of the pdb.Pdb class gives have been corrected. d(own) goes to a newer frame,
u(p) to an older frame, not the other way around.

20 years agobug #990669: os.path.realpath() will resolve symlinks before normalizing the
Johannes Gijsbers [Sat, 14 Aug 2004 15:01:53 +0000 (15:01 +0000)]
bug #990669: os.path.realpath() will resolve symlinks before normalizing the
path, as normalizing the path may alter the meaning of the path if it contains
symlinks.

Also add tests for infinite symlink loops and parent symlinks that need to be
resolved.

20 years agoCatch OSError raised when src or dst argument to os.path.samefile doesn't
Johannes Gijsbers [Sat, 14 Aug 2004 14:51:01 +0000 (14:51 +0000)]
Catch OSError raised when src or dst argument to os.path.samefile doesn't
exist.

20 years agobug 990669: os.path.normpath may alter the meaning of a path if it contains
Johannes Gijsbers [Sat, 14 Aug 2004 14:41:32 +0000 (14:41 +0000)]
bug 990669: os.path.normpath may alter the meaning of a path if it contains
symbolic links. This has been documented in a comment since 1992, but is now in
the library reference as well.

20 years agobug #851123: shutil.copyfile will raise an exception when trying to copy a file
Johannes Gijsbers [Sat, 14 Aug 2004 14:03:03 +0000 (14:03 +0000)]
bug #851123: shutil.copyfile will raise an exception when trying to copy a file
onto a link to itself. Thanks Gregory Ball.

20 years agoUnwrap too-smart loop: we can't use `src` for both hard and symbolic links.
Johannes Gijsbers [Sat, 14 Aug 2004 13:57:08 +0000 (13:57 +0000)]
Unwrap too-smart loop: we can't use `src` for both hard and symbolic links.