]> granicus.if.org Git - python/log
python
20 years agoAdd various items
Andrew M. Kuchling [Wed, 25 Aug 2004 13:38:46 +0000 (13:38 +0000)]
Add various items

20 years agoPatch #970015: Replace - by _ in version and release.
Martin v. Löwis [Wed, 25 Aug 2004 13:04:53 +0000 (13:04 +0000)]
Patch #970015: Replace - by _ in version and release.

20 years agoPatch #970019: Include version and release in the BuildRoot.
Martin v. Löwis [Wed, 25 Aug 2004 13:00:34 +0000 (13:00 +0000)]
Patch #970019: Include version and release in the BuildRoot.

20 years agoPatch #736857, #736859: Add -e option to build_scripts.
Martin v. Löwis [Wed, 25 Aug 2004 11:37:43 +0000 (11:37 +0000)]
Patch #736857, #736859: Add -e option to build_scripts.

20 years agoPatch #798244: More urllib2 examples.
Martin v. Löwis [Wed, 25 Aug 2004 11:24:42 +0000 (11:24 +0000)]
Patch #798244: More urllib2 examples.

20 years agoPatch #1014992: Never return more than a line from readline.
Martin v. Löwis [Wed, 25 Aug 2004 10:52:58 +0000 (10:52 +0000)]
Patch #1014992: Never return more than a line from readline.
Will backport to 2.3.

20 years agoPatch #1015021: Stop claiming that coerce can return None.
Martin v. Löwis [Wed, 25 Aug 2004 10:42:41 +0000 (10:42 +0000)]
Patch #1015021: Stop claiming that coerce can return None.
Will backport to 2.3.

20 years agoBack out 1.289, which breaks platforms needing addrinfo.h, and
Martin v. Löwis [Wed, 25 Aug 2004 06:24:58 +0000 (06:24 +0000)]
Back out 1.289, which breaks platforms needing addrinfo.h, and
1.293, 1.298, and 1.300, which have tried to fix this for specific
platforms.

20 years agoSimplify chains of conditional jumps.
Raymond Hettinger [Wed, 25 Aug 2004 03:18:29 +0000 (03:18 +0000)]
Simplify chains of conditional jumps.
(Suggested by Neal Norwitz.)

20 years agoAh whoops, we didn't turn string into a package (thanks Neal!)
Barry Warsaw [Wed, 25 Aug 2004 03:09:58 +0000 (03:09 +0000)]
Ah whoops, we didn't turn string into a package (thanks Neal!)

20 years agoPEP 292 classes Template and SafeTemplate are added to the string module.
Barry Warsaw [Wed, 25 Aug 2004 02:22:30 +0000 (02:22 +0000)]
PEP 292 classes Template and SafeTemplate are added to the string module.
This patch includes test cases and documentation updates, as well as NEWS file
updates.

This patch also updates the sre modules so that they don't import the string
module, breaking direct circular imports.

20 years agoStop producing or using OverflowWarning. PEP 237 thought this would
Tim Peters [Wed, 25 Aug 2004 02:14:08 +0000 (02:14 +0000)]
Stop producing or using OverflowWarning.  PEP 237 thought this would
happen in 2.3, but nobody noticed it still was getting generated (the
warning was disabled by default).  OverflowWarning and
PyExc_OverflowWarning should be removed for 2.5, and left notes all over
saying so.

20 years agoSF #1015517, get readline to compile with older compilers
Neal Norwitz [Wed, 25 Aug 2004 01:20:18 +0000 (01:20 +0000)]
SF #1015517, get readline to compile with older compilers

20 years agoFix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),
Mark Hammond [Tue, 24 Aug 2004 22:24:08 +0000 (22:24 +0000)]
Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),
and a test case.
When booting a new thread, use the PyGILState API to manage the GIL.

20 years agoKeep option parser from gobbling up the filename to be profiled and the
Skip Montanaro [Tue, 24 Aug 2004 14:26:43 +0000 (14:26 +0000)]
Keep option parser from gobbling up the filename to be profiled and the
flags it accepts.  It's too late to change optparse's default behavior now,
but I find the default setting of allow_interspersed_args very weird.

20 years agoFixed bug in DatagramHandler.send()
Vinay Sajip [Tue, 24 Aug 2004 09:36:23 +0000 (09:36 +0000)]
Fixed bug in DatagramHandler.send()

20 years agoIncorporate review comments courtesy of Neal Norwitz:
Raymond Hettinger [Tue, 24 Aug 2004 04:34:16 +0000 (04:34 +0000)]
Incorporate review comments courtesy of Neal Norwitz:
* Perform the code length check earlier.
* Eliminate the extra PyMem_Free() upon hitting an EXTENDED_ARG.
* Assert that the NOP count used in jump retargeting matches the NOPs
  eliminated in the final step.
* Add an XXX note to indicate that more work is being to done to
  handle linenotab with intervals > 255.

20 years agoSF Patch #1013667: Cleanup Peepholer Output
Raymond Hettinger [Mon, 23 Aug 2004 23:37:48 +0000 (23:37 +0000)]
SF Patch #1013667:  Cleanup Peepholer Output

* Make a pass to eliminate NOPs.  Produce code that is more readable,
  more compact, and a tiny bit faster.  Makes the peepholer more flexible
  in the scope of allowable transformations.

* With Guido's okay, bumped up the magic number so that this patch gets
  widely exercised before the alpha goes out.

20 years agoAdd Nick Coghlan for his patch solving an issue with joining string
Raymond Hettinger [Mon, 23 Aug 2004 23:30:20 +0000 (23:30 +0000)]
Add Nick Coghlan for his patch solving an issue with joining string
subclasses.

20 years agoSF Patch #1007087: Return new string for single subclass joins (Bug #1001011)
Raymond Hettinger [Mon, 23 Aug 2004 23:23:54 +0000 (23:23 +0000)]
SF Patch #1007087:  Return new string for single subclass joins (Bug #1001011)
(Patch contributed by Nick Coghlan.)

Now joining string subtypes will always return a string.
Formerly, if there were only one item, it was returned unchanged.

20 years agoThe attempt to shut up deprecation warnings for doctest's own use of
Tim Peters [Mon, 23 Aug 2004 22:42:55 +0000 (22:42 +0000)]
The attempt to shut up deprecation warnings for doctest's own use of
is_private in its tests failed if doctest.py was run directly.  Now
it works.

20 years agotest_DocTestFinder(): This test failed when test_doctest was run
Tim Peters [Mon, 23 Aug 2004 22:38:05 +0000 (22:38 +0000)]
test_DocTestFinder():  This test failed when test_doctest was run
directly, due to assuming a filename specific to running tests "the
normal way".  +ELLIPSIS to the rescue!

20 years agoMoved some test cases from doctest to test_doctest.
Tim Peters [Mon, 23 Aug 2004 22:13:22 +0000 (22:13 +0000)]
Moved some test cases from doctest to test_doctest.

20 years agoMisc cleanups.
Tim Peters [Mon, 23 Aug 2004 21:43:39 +0000 (21:43 +0000)]
Misc cleanups.

20 years agodebug_script(): I changed this in haste before to take out the use of
Tim Peters [Mon, 23 Aug 2004 21:37:56 +0000 (21:37 +0000)]
debug_script():  I changed this in haste before to take out the use of
NamedTemporaryFile (which can't work for this function's purposes on
Windows).  Leaving temp files behind wasn't a great idea either, though,
so try to clean up.  At least the test suite no longer leaves any of
these guys behind now.

20 years agoPatch #1014237: Consistently return booleans throughout.
Martin v. Löwis [Mon, 23 Aug 2004 20:42:35 +0000 (20:42 +0000)]
Patch #1014237: Consistently return booleans throughout.

20 years agoUpdated the socketpair() docstring and documentation to explain that the
Dave Cole [Mon, 23 Aug 2004 05:16:23 +0000 (05:16 +0000)]
Updated the socketpair() docstring and documentation to explain that the
default famility is AF_UNIX if defined for the platform, otherwise the
default is AF_INET.

20 years agoRemoved unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignored
Dave Cole [Mon, 23 Aug 2004 04:54:53 +0000 (04:54 +0000)]
Removed unnecessary calls to signal() to ignore SIGPIPE.  SIGPIPE is ignored
in initsigs() inside pythonrun.c.

20 years agoRemoved redundant versionadded{} for NDIFF_DIFF. Virtually everything
Tim Peters [Mon, 23 Aug 2004 00:26:42 +0000 (00:26 +0000)]
Removed redundant versionadded{} for NDIFF_DIFF.  Virtually everything
in this section is new in 2.4, and that's all mentioned already in
versionadded{} thingies at the end of the section.  It hurts readability
to have them after every line <wink>.

20 years agoAdd version info
Neal Norwitz [Sun, 22 Aug 2004 21:48:37 +0000 (21:48 +0000)]
Add version info

20 years agoFlush bz2 data even if nothing had been written so far. Fixes #1013882.
Martin v. Löwis [Sun, 22 Aug 2004 21:28:33 +0000 (21:28 +0000)]
Flush bz2 data even if nothing had been written so far. Fixes #1013882.
Will backport to 2.3.

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.