]> granicus.if.org Git - python/log
python
22 years agoStopped all warnings from the HTML Help Compiler, by generating proper
Tim Peters [Sat, 20 Apr 2002 20:26:26 +0000 (20:26 +0000)]
Stopped all warnings from the HTML Help Compiler, by generating proper
HTML (or, at least, proper in its view).  The TOC file is now identical
to what the HTML compiler itself generates, except for whitespace and
a glitch identified below.  The pretty-printing done by prechm.py is
pretty much destroyed for now; if you need it pretty-printed, just make
the Help Compiler save the files (it's got its own idea of pretty-
printing anyway).

Glitch:  The title of Ref Man "2.1.6 Blank lines" shows up as a blank
for now.  This is because the relevant entry in ref/index.html contains
nested anchors, and pychm really has no idea what to do with that.  I
hacked it for now to avoid any error messages or worse insanity, and
filed a bug report against the docs.

22 years ago#546163, fix link problem on Solaris 8 for makedev when using mknod
Neal Norwitz [Sat, 20 Apr 2002 13:46:43 +0000 (13:46 +0000)]
#546163, fix link problem on Solaris 8 for makedev when using mknod

22 years agoPatch #495401: Count number of required bytes for encoding UTF-8 before
Martin v. Löwis [Sat, 20 Apr 2002 13:44:01 +0000 (13:44 +0000)]
Patch #495401: Count number of required bytes for encoding UTF-8 before
allocating the target buffer.

22 years agoWidespread: Used classes in a more natural way. Added convenience
Tim Peters [Sat, 20 Apr 2002 08:36:42 +0000 (08:36 +0000)]
Widespread:  Used classes in a more natural way.  Added convenience
methods to squash code duplication.  Simplified several overly complex
chunks of logic.  Built output strings more with string interpolation
instead of infix '+'.  Added comments.  Exploited recent Python features
(chiefly bool and augmented assignment).

22 years agoForward port of patch # 500311: Work around for buggy https servers.
Martin v. Löwis [Sat, 20 Apr 2002 07:47:40 +0000 (07:47 +0000)]
Forward port of patch # 500311: Work around for buggy https servers.
Fixes #494762.

22 years agoAdd test for eval() w/ free variables.
Jeremy Hylton [Sat, 20 Apr 2002 04:51:39 +0000 (04:51 +0000)]
Add test for eval() w/ free variables.

Related to SF bug #505315

22 years agoFix SF bug #505315: Make free and cell vars show up consistently in locals().
Jeremy Hylton [Sat, 20 Apr 2002 04:46:55 +0000 (04:46 +0000)]
Fix SF bug #505315: Make free and cell vars show up consistently in locals().

PyFrame_FastToLocals() and PyFrame_LocalsToFast() had a return if
f_nlocals was 0.  I think this was a holdover from the pre 2.1 days
when regular locals were the only kind of local variables.

The change makes it possible to use a free variable in eval or exec if
it the variable is also used elsewhere in the same block, which is
what the documentation says.

22 years agoReplaced the fiddly 5-tuples with a new Book convenience class, allowing
Tim Peters [Sat, 20 Apr 2002 03:25:02 +0000 (03:25 +0000)]
Replaced the fiddly 5-tuples with a new Book convenience class, allowing
to reference fields via names instead of meaningless little integers.
This turned up one case where the wrong little integer was being used,
in informative progress output.  Fixed that too.

22 years agoFixed a comment.
Tim Peters [Sat, 20 Apr 2002 02:56:20 +0000 (02:56 +0000)]
Fixed a comment.

22 years agoAll over: get rid of blanks before colons that open code blocks.
Tim Peters [Sat, 20 Apr 2002 02:39:44 +0000 (02:39 +0000)]
All over:  get rid of blanks before colons that open code blocks.

22 years agodo_project(): Modernized the code.
Tim Peters [Sat, 20 Apr 2002 02:37:07 +0000 (02:37 +0000)]
do_project():  Modernized the code.

22 years agoAdded "What's New" to the 2.2 doc set.
Tim Peters [Sat, 20 Apr 2002 02:07:58 +0000 (02:07 +0000)]
Added "What's New" to the 2.2 doc set.

22 years agoFix com_arglist() and update grammar fragment.
Jeremy Hylton [Fri, 19 Apr 2002 22:56:37 +0000 (22:56 +0000)]
Fix com_arglist() and update grammar fragment.
SF bug #522264 reported by Evelyn Mitchell.

The code included a comment about "STAR STAR" which was translated
into the code as the bogus attribute token.STARSTAR.  This name never
caused an attribute error because it was never retrieved.  The code
was based on an old version of the grammar that specified kwargs as
two tokens ('*' '*').  I checked as far back as 2.1 and didn't find
this production.

The fix is simple, because token.DOUBLESTAR is the only token
allowed.  Also update the grammar fragment in com_arglist().

XXX I'll bet lots of other grammar fragments in comments are out of
date, probably in this module and in compile.c.

22 years agoPatch #546194: Check constants individually. Fixes 534143 on OpenBSD.
Martin v. Löwis [Fri, 19 Apr 2002 21:04:41 +0000 (21:04 +0000)]
Patch #546194: Check constants individually. Fixes 534143 on OpenBSD.
Will backport to 2.2.

22 years agoAdded a stop-list to reduce the size of the full text search index. Fred,
Tim Peters [Fri, 19 Apr 2002 18:41:46 +0000 (18:41 +0000)]
Added a stop-list to reduce the size of the full text search index.  Fred,
populate the "stop_list" triple-quoted string with your favorite handful
of stop words.

22 years agoproject_template: use dict interpolation instead of giant tuples.
Tim Peters [Fri, 19 Apr 2002 18:07:52 +0000 (18:07 +0000)]
project_template:  use dict interpolation instead of giant tuples.

22 years ago+ Changed TOC to folder-tree style.
Tim Peters [Fri, 19 Apr 2002 16:46:43 +0000 (16:46 +0000)]
+ Changed TOC to folder-tree style.
+ Increased size of the window the user sees the first time.
+ Arranged for the display to remember its last size and position.
+ Added a Favorites (bookmarks) tab.
+ Added the "Advanced Search" decorations.

22 years agoGenerates inputs to the Microsoft Help Compiler, which creates compiled
Tim Peters [Fri, 19 Apr 2002 16:09:26 +0000 (16:09 +0000)]
Generates inputs to the Microsoft Help Compiler, which creates compiled
HTML help files (.chm).  Obtained from Robin Dunn's packaging of the
2.2 docs at <http://alldunn.com/python/>, obtained in turn from
Hernán Martínez Foffani's original work at
<http://www.orgmf.com.ar/condor/pytstuff.html>.

22 years agoGet the right funny characters in Hernan's name.
Tim Peters [Fri, 19 Apr 2002 15:59:01 +0000 (15:59 +0000)]
Get the right funny characters in Hernan's name.

22 years ago#546155, remove posix_int() it is not used
Neal Norwitz [Fri, 19 Apr 2002 14:58:40 +0000 (14:58 +0000)]
#546155, remove posix_int() it is not used

22 years agoFix SF #544995 (zlib crash on second flush call)
Jeremy Hylton [Fri, 19 Apr 2002 14:37:07 +0000 (14:37 +0000)]
Fix SF #544995 (zlib crash on second flush call)
Bug fix by mhammond.

Bug fix candidate for 2.2, not present in 2.1.

22 years agoOops: we used PyMem_DEL() to clean up objects, and that's a problem since
Jack Jansen [Fri, 19 Apr 2002 14:29:47 +0000 (14:29 +0000)]
Oops: we used PyMem_DEL() to clean up objects, and that's a problem since
pymalloc, apparently. Fixed, but this means all bgen-generated modules will
have to be re-generated.

I hope (and expect) that the pymalloc fixes aren't bugfix candidates, because
if they are this is one too.

22 years agoDocument the build process more precisely. Suggested by Hugh Sasse.
Martin v. Löwis [Fri, 19 Apr 2002 09:47:23 +0000 (09:47 +0000)]
Document the build process more precisely. Suggested by Hugh Sasse.

22 years ago\idxcode -> \py@idxcode (mimics index stuff in python.sty - problem only
Skip Montanaro [Fri, 19 Apr 2002 04:52:44 +0000 (04:52 +0000)]
\idxcode -> \py@idxcode (mimics index stuff in python.sty - problem only
revealed itself when i added index generating lines to doc/doc.tex)

22 years agofix duplicate label
Skip Montanaro [Fri, 19 Apr 2002 04:50:44 +0000 (04:50 +0000)]
fix duplicate label
add index turds

22 years agoClean up the use of version numbers in filenames; always use an "abstract"
Fred Drake [Fri, 19 Apr 2002 04:04:57 +0000 (04:04 +0000)]
Clean up the use of version numbers in filenames; always use an "abstract"
version number, and explain what it is at the top of the chapter.
This closes SF bug #225003.

22 years agoFix bug 544473 - "Queue module can deadlock".
Mark Hammond [Fri, 19 Apr 2002 00:11:32 +0000 (00:11 +0000)]
Fix bug 544473 - "Queue module can deadlock".
Use try/finally to ensure all Queue locks remain stable.
Includes test case.  Bugfix candidate.

22 years ago_PyObject_DebugMallocStats(): Added some potentially expensive internal
Tim Peters [Thu, 18 Apr 2002 22:25:03 +0000 (22:25 +0000)]
_PyObject_DebugMallocStats():  Added some potentially expensive internal
consistency checks, enabled only in a debug (Py_DEBUG) build.  Note that
this never gets called automatically unless PYMALLOC_DEBUG is #define'd
too, and the envar PYTHONMALLOCSTATS exists.

22 years agoPyObject_Malloc: make a tiny bit faster for platforms where malloc(0)
Tim Peters [Thu, 18 Apr 2002 21:58:56 +0000 (21:58 +0000)]
PyObject_Malloc:  make a tiny bit faster for platforms where malloc(0)
doesn't return NULL.

PyObject_Realloc:  better comment for why we don't call PyObject_Malloc(0).

22 years agoRemove some long-disabled debugging boilerplate.
Tim Peters [Thu, 18 Apr 2002 21:37:03 +0000 (21:37 +0000)]
Remove some long-disabled debugging boilerplate.

22 years agoceval.c/do_raise(): Tighten the test to disallow raising an instance of
Tim Peters [Thu, 18 Apr 2002 18:06:20 +0000 (18:06 +0000)]
ceval.c/do_raise():  Tighten the test to disallow raising an instance of
a str subclass.

test_descr.py/string_exceptions():  New sub-test.

For 2.3 only.  Guido doesn't want this backported.

22 years agoRemove more out-of-date comments and clarify explanation of visit().
Jeremy Hylton [Thu, 18 Apr 2002 16:26:40 +0000 (16:26 +0000)]
Remove more out-of-date comments and clarify explanation of visit().

22 years agoRemove out-of-date explanation in doc strings,
Jeremy Hylton [Thu, 18 Apr 2002 16:02:48 +0000 (16:02 +0000)]
Remove out-of-date explanation in doc strings,
as reported by Eric C. Newton.

22 years agoTest for --export-dynamic directly to avoid problems with binutils 2.12.
Martin v. Löwis [Thu, 18 Apr 2002 14:51:36 +0000 (14:51 +0000)]
Test for --export-dynamic directly to avoid problems with binutils 2.12.
Will backport to 2.1 and 2.2.

22 years agoSF bug 544733: Cygwin test_mmap fix for Python 2.2.1
Tim Peters [Thu, 18 Apr 2002 04:30:18 +0000 (04:30 +0000)]
SF bug 544733:  Cygwin test_mmap fix for Python 2.2.1
Close a file before trying to unlink it, and apparently Cygwin needs
writes to an mmap'ed file to get flushed before they're visible.

Bugfix candidate, but I think only for the 2.2 line (it's testing
features that I think were new in 2.2).

22 years agotype_get_doc(): Squash compiler wng about incompatible ptr types.
Tim Peters [Thu, 18 Apr 2002 04:12:28 +0000 (04:12 +0000)]
type_get_doc():  Squash compiler wng about incompatible ptr types.

22 years agoLong-forgotten change: Update first paragraph with actual release date
Andrew M. Kuchling [Thu, 18 Apr 2002 02:18:27 +0000 (02:18 +0000)]
Long-forgotten change: Update first paragraph with actual release date

22 years agoSF bug 542984.
Guido van Rossum [Thu, 18 Apr 2002 00:27:33 +0000 (00:27 +0000)]
SF bug 542984.

Change type_get_doc (the get function for __doc__) to look in tp_dict
more often, and if it finds a descriptor in tp_dict, to call it (with
a NULL instance).  This means you can add a __doc__ descriptor to a
new-style class that returns instance docs when called on an instance,
and class docs when called on a class -- or the same docs in either
case, but lazily computed.

I'll also check this into the 2.2 maintenance branch.

22 years agoSF bug 542984.
Guido van Rossum [Thu, 18 Apr 2002 00:22:00 +0000 (00:22 +0000)]
SF bug 542984.

Change type_get_doc (the get function for __doc__) to look in tp_dict
more often, and if it finds a descriptor in tp_dict, to call it (with
a NULL instance).  This means you can add a __doc__ descriptor to a
new-style class that returns instance docs when called on an instance,
and class docs when called on a class -- or the same docs in either
case, but lazily computed.

I'll also check this into the 2.2 maintenance branch.

22 years agoUse md5.new() constructor
Andrew M. Kuchling [Wed, 17 Apr 2002 21:53:21 +0000 (21:53 +0000)]
Use md5.new() constructor

22 years agoUse 2.1's .hexdigest() method
Andrew M. Kuchling [Wed, 17 Apr 2002 21:50:03 +0000 (21:50 +0000)]
Use 2.1's .hexdigest() method

22 years agoApply diff3.txt from SF patch http://www.python.org/sf/536241
Walter Dörwald [Wed, 17 Apr 2002 21:34:05 +0000 (21:34 +0000)]
Apply diff3.txt from SF patch http://www.python.org/sf/536241

If a str or unicode method returns the original object,
make sure that for str and unicode subclasses the original
will not be returned.

This should prevent SF bug http://www.python.org/sf/460020
from reappearing.

22 years agoAdded note about new distutils commands.
Marc-André Lemburg [Wed, 17 Apr 2002 20:33:40 +0000 (20:33 +0000)]
Added note about new distutils commands.

22 years agoPatch #531901 by Mark W. Alexander: adds a new distutils packager
Marc-André Lemburg [Wed, 17 Apr 2002 20:30:10 +0000 (20:30 +0000)]
Patch #531901 by Mark W. Alexander: adds a new distutils packager
base class (in bdist_packager) and two subclasses which make use
of this base class: bdist_pkgtool (for Solaris) and bdist_sdux (for
HP-UX).

22 years agotypo
Skip Montanaro [Wed, 17 Apr 2002 19:33:06 +0000 (19:33 +0000)]
typo

22 years agoAdd text on tp_as_buffer that refers tothe section that covers the topic.
Fred Drake [Wed, 17 Apr 2002 13:44:58 +0000 (13:44 +0000)]
Add text on tp_as_buffer that refers tothe section that covers the topic.
Additional material is still needed in that section.

22 years agoAdd a version annotation for the help() function.
Fred Drake [Wed, 17 Apr 2002 12:54:04 +0000 (12:54 +0000)]
Add a version annotation for the help() function.

22 years agoAdjust markup to worm around tool limitations; the "m" in "model" was being
Fred Drake [Wed, 17 Apr 2002 03:41:50 +0000 (03:41 +0000)]
Adjust markup to worm around tool limitations; the "m" in "model" was being
dropped in the HTML formatted version.
Reported by Mike Coleman.

22 years agoPass the -r option to getpagecounts to generate an entry for the "What's
Fred Drake [Wed, 17 Apr 2002 03:31:08 +0000 (03:31 +0000)]
Pass the -r option to getpagecounts to generate an entry for the "What's
New" document.

22 years agoRemove Emacs turd; not needed with modern Emacs versions.
Fred Drake [Wed, 17 Apr 2002 03:29:40 +0000 (03:29 +0000)]
Remove Emacs turd; not needed with modern Emacs versions.

Add a -r option; if given with a release number, the "What's New" document
is included with the relevant version number.

Update the text of the README distributed with the PostScript files to
reflect the changes in the user organizations in the Python community.

22 years agoChanged last remaining use of "./" to "index.html" when referring to the
Fred Drake [Wed, 17 Apr 2002 01:40:56 +0000 (01:40 +0000)]
Changed last remaining use of "./" to "index.html" when referring to the
index file for the top-level directory.  This makes it easier to use an
unpacked version of the documentation via file: URLs.
This closes SF bug #541257.

22 years agoStart of script to locate C symbols and segregate them into lists of
Fred Drake [Tue, 16 Apr 2002 21:27:17 +0000 (21:27 +0000)]
Start of script to locate C symbols and segregate them into lists of
the documented and undocumented symbols.

22 years agoWindows installer: disabled Wise's "delete in-use files" uninstall
Tim Peters [Tue, 16 Apr 2002 20:48:01 +0000 (20:48 +0000)]
Windows installer:  disabled Wise's "delete in-use files" uninstall
option.  It was the cause of at least one way UNWISE.EXE could vanish
(install a python; uninstall it; install it again; reboot the machine;
abracadabra the uinstaller is gone).

Bugfix candidate, but I'll backport it myself.

22 years agoAdded docstrings to the Profile class.
Fred Drake [Tue, 16 Apr 2002 19:27:23 +0000 (19:27 +0000)]
Added docstrings to the Profile class.
Avoid adding Python wrappers around the underlying C profiler if possible;
the extra layer of calls can lead to confusion in interpreting the logs.

22 years agoUpdate the dependencies.
Fred Drake [Tue, 16 Apr 2002 18:48:25 +0000 (18:48 +0000)]
Update the dependencies.

22 years agoMinor wording change.
Fred Drake [Tue, 16 Apr 2002 18:32:37 +0000 (18:32 +0000)]
Minor wording change.

22 years agoSF bug 544647.
Guido van Rossum [Tue, 16 Apr 2002 16:44:51 +0000 (16:44 +0000)]
SF bug 544647.

PyNumber_InPlaceMultiply insisted on calling sq_inplace_repeat if it
existed, even if nb_inplace_multiply also existed and the arguments
weren't right for sq_inplace_repeat.  Change this to only use
sq_inplace_repeat if nb_inplace_multiply isn't defined.

Bugfix candidate.

22 years agoWhitespace normalization and fold some long lines.
Guido van Rossum [Tue, 16 Apr 2002 16:32:50 +0000 (16:32 +0000)]
Whitespace normalization and fold some long lines.

22 years agoAdd more text from Guido on the type structure fields.
Fred Drake [Tue, 16 Apr 2002 16:22:24 +0000 (16:22 +0000)]
Add more text from Guido on the type structure fields.
Small additional changes.

22 years agoadded small clarification to the descriptions of encode() and decode()
Skip Montanaro [Tue, 16 Apr 2002 15:12:10 +0000 (15:12 +0000)]
added small clarification to the descriptions of encode() and decode()

22 years agoReplace the simpleminded string.find with a re.search looking only for
Thomas Heller [Tue, 16 Apr 2002 15:04:56 +0000 (15:04 +0000)]
Replace the simpleminded string.find with a re.search looking only for
full words. Before that, something like 'PyObject_Call' was missed
because 'PyObject_CallFunction' was found.

Passes PyChecker now.

22 years agotest_mktime(): Removed. This wasn't really testing anything useful
Barry Warsaw [Tue, 16 Apr 2002 12:37:55 +0000 (12:37 +0000)]
test_mktime(): Removed.  This wasn't really testing anything useful
(or platform independent).  Closes SF bug #460357.

Bug fix candidate.

22 years agoMove WITH_UNIVERSAL_NEWLINES template into configure.in.
Martin v. Löwis [Tue, 16 Apr 2002 05:51:02 +0000 (05:51 +0000)]
Move WITH_UNIVERSAL_NEWLINES template into configure.in.

22 years agoWhitespace normalization, while using non-whitespace literals for
Barry Warsaw [Tue, 16 Apr 2002 05:06:42 +0000 (05:06 +0000)]
Whitespace normalization, while using non-whitespace literals for
intended whitespace.

22 years agoExpect test_email_codecs to be skipped -- few users or developers will
Guido van Rossum [Tue, 16 Apr 2002 02:14:04 +0000 (02:14 +0000)]
Expect test_email_codecs to be skipped -- few users or developers will
have the needed optional Japanese codecs installed.

22 years agoApparently 3 of the tests here rely on trailing whitespace and/or hard
Tim Peters [Tue, 16 Apr 2002 02:08:51 +0000 (02:08 +0000)]
Apparently 3 of the tests here rely on trailing whitespace and/or hard
tab characters, so reverting the whitespace normalization.  Barry,
please repair this.

22 years agoRemove repeated index entry; adds nothing different.
Fred Drake [Tue, 16 Apr 2002 02:03:05 +0000 (02:03 +0000)]
Remove repeated index entry; adds nothing different.
Closes SF bug #518985.

22 years agoFewer deprecation warnings.
Tim Peters [Tue, 16 Apr 2002 01:59:17 +0000 (01:59 +0000)]
Fewer deprecation warnings.

22 years agoresetwarnings(): Remove extra space from docstring guts.
Tim Peters [Tue, 16 Apr 2002 01:51:25 +0000 (01:51 +0000)]
resetwarnings():  Remove extra space from docstring guts.

22 years agoWhitespace normalization.
Tim Peters [Tue, 16 Apr 2002 01:38:40 +0000 (01:38 +0000)]
Whitespace normalization.

22 years agoresetwarnings(): change the docstring to reflect what the code
Tim Peters [Tue, 16 Apr 2002 01:33:59 +0000 (01:33 +0000)]
resetwarnings():  change the docstring to reflect what the code
actually does.  Note that the description in the Library Reference
manual is already accurate.

Bugfix candidate.

22 years agoTighten up some warning filters, and break some dependencies on the
Tim Peters [Tue, 16 Apr 2002 01:27:44 +0000 (01:27 +0000)]
Tighten up some warning filters, and break some dependencies on the
order in which the tests are normally run.

22 years agoOK, don't call resetwarnings().
Tim Peters [Tue, 16 Apr 2002 00:29:27 +0000 (00:29 +0000)]
OK, don't call resetwarnings().

22 years agoIt makes more sense to call resetwarnings() after every test runs than
Tim Peters [Tue, 16 Apr 2002 00:01:09 +0000 (00:01 +0000)]
It makes more sense to call resetwarnings() after every test runs than
to keep doing that in every test that wants to filter a warning.

22 years agoI expect test_univnewlines to be skipped on Windows. I expect this
Tim Peters [Mon, 15 Apr 2002 23:56:04 +0000 (23:56 +0000)]
I expect test_univnewlines to be skipped on Windows.  I expect this
because it *is* skipped.  I'm not entirely sure it should be skipped, but
figuring that out would take actual thought <wink>.

22 years agoReduce the number of test-suite DeprecationWarnings; start adding
Tim Peters [Mon, 15 Apr 2002 23:52:04 +0000 (23:52 +0000)]
Reduce the number of test-suite DeprecationWarnings; start adding
resetwarnings() calls too.

22 years agoFix grammar
Neal Norwitz [Mon, 15 Apr 2002 22:57:46 +0000 (22:57 +0000)]
Fix grammar

22 years agotest_main(): Added this so the test can actually get run under the
Barry Warsaw [Mon, 15 Apr 2002 22:14:06 +0000 (22:14 +0000)]
test_main(): Added this so the test can actually get run under the
regrtest framework.  Keep the original standalone-unittest
scaffolding (i.e. suite() and __main__).

22 years agoparseaddr(): Don't use rfc822.parseaddr() because this now implies a
Barry Warsaw [Mon, 15 Apr 2002 22:00:25 +0000 (22:00 +0000)]
parseaddr(): Don't use rfc822.parseaddr() because this now implies a
double call to AddressList.getaddrlist(), and /that/ always returns an
empty list for the second and subsequent calls.

Instead, instantiate an AddressList directly, and get the parsed
addresses out of the addresslist attribute.

22 years agoAdd documentation for PyObject_Call().
Fred Drake [Mon, 15 Apr 2002 20:51:19 +0000 (20:51 +0000)]
Add documentation for PyObject_Call().
Note that PyObject_Size() is a synonym for PyObject_Length().
This closes SF patch #544330 (contributed by Thomas Heller).

22 years agoSeparate out a \cfuncline macro from the cfuncdesc environment.
Fred Drake [Mon, 15 Apr 2002 20:48:40 +0000 (20:48 +0000)]
Separate out a \cfuncline macro from the cfuncdesc environment.
This matches many other of the *desc environments, and is useful when
multiple functions share a description.

22 years agoDocument the cmemberdesc environment.
Fred Drake [Mon, 15 Apr 2002 20:10:23 +0000 (20:10 +0000)]
Document the cmemberdesc environment.

22 years agoehlo(): A proper fix for SF bug #498572. RFC 1869 describes ESMTP
Barry Warsaw [Mon, 15 Apr 2002 20:03:30 +0000 (20:03 +0000)]
ehlo(): A proper fix for SF bug #498572.  RFC 1869 describes ESMTP
which requires that if there are ehlo parameters returned with an ehlo
keyword (in the response to EHLO), the keyword and parameters must be
delimited by an ASCII space.  Thus responses like

    250-AUTH=LOGIN

should be ignored as non-conformant to the RFC (the `=' isn't allowed
in the ehlo keyword).

This is a bug fix candidate.

22 years agoBetter documentation for GetArgv() and the ProgressBar type.
Fred Drake [Mon, 15 Apr 2002 19:53:35 +0000 (19:53 +0000)]
Better documentation for GetArgv() and the ProgressBar type.
Back-porting to release22-maint.
This closes SF patch #496705.

22 years agoBe consistent in presenting the signatures.
Fred Drake [Mon, 15 Apr 2002 19:46:40 +0000 (19:46 +0000)]
Be consistent in presenting the signatures.

22 years agoAdd docs for os.fchdir().
Fred Drake [Mon, 15 Apr 2002 19:41:27 +0000 (19:41 +0000)]
Add docs for os.fchdir().

22 years agoposix_fildes(): New helper: run a function that takes a file descriptor
Fred Drake [Mon, 15 Apr 2002 19:40:07 +0000 (19:40 +0000)]
posix_fildes():  New helper: run a function that takes a file descriptor
    and returns None.  This allows any object that supports the fileno()
    method to be passed as a file descriptor, not just an integer.

posix_fchdir():  New exposed function: implements posix.fchdir().  This
    closes SF feature #536796.

posix_fsync(), posix_fdatasync():  Convert to use posix_fildes() instead
    of posix_int().  This also changes them from METH_VARARGS to METH_O
    functions.

setup_confname_table():  Remove unused variable.  Change to take a module
    rather than a dict to save the resulting table into.

setup_confname_tables():  Change to take a module instead of a dict to
    pass to setup_confname_table().

22 years agoGenerate the right annotations in the index entries.
Fred Drake [Mon, 15 Apr 2002 19:35:29 +0000 (19:35 +0000)]
Generate the right annotations in the index entries.
Thanks to Thomas Heller for the sharp eye.

22 years agoAdd a test for fchdir().
Fred Drake [Mon, 15 Apr 2002 19:20:27 +0000 (19:20 +0000)]
Add a test for fchdir().
This is part of SF feature #536796.

22 years agoIntegrated more text from Guido.
Fred Drake [Mon, 15 Apr 2002 18:44:46 +0000 (18:44 +0000)]
Integrated more text from Guido.

22 years agoMove the listing of the type structure, since both the C API reference and
Fred Drake [Mon, 15 Apr 2002 18:43:20 +0000 (18:43 +0000)]
Move the listing of the type structure, since both the C API reference and
the Extending & Embedding manual use it.

22 years agoReturn the orginal string only if it's a real str or unicode
Walter Dörwald [Mon, 15 Apr 2002 18:42:15 +0000 (18:42 +0000)]
Return the orginal string only if it's a real str or unicode
instance, otherwise make a copy.

22 years agoClean up the application of style to verbatim text.
Fred Drake [Mon, 15 Apr 2002 18:41:31 +0000 (18:41 +0000)]
Clean up the application of style to verbatim text.
This moves styling to the stylesheet; the use of <dl> structures to control
style sometimes produced improper indentation of subsequent text in many
browsers when the text was already part of the <dl> structure (as in a
function or class description).

22 years agoAdd support for \cmemberline and the cmemberdesc environment.
Fred Drake [Mon, 15 Apr 2002 17:46:00 +0000 (17:46 +0000)]
Add support for \cmemberline and the cmemberdesc environment.

22 years agoRemove unused variable reported by Walter Dörwald
Neal Norwitz [Mon, 15 Apr 2002 16:29:00 +0000 (16:29 +0000)]
Remove unused variable reported by Walter Dörwald

22 years agoAdd item
Andrew M. Kuchling [Mon, 15 Apr 2002 14:05:59 +0000 (14:05 +0000)]
Add item

22 years agoRemove 'const' from local variable declaration in string_zfill() -- it
Guido van Rossum [Mon, 15 Apr 2002 13:48:52 +0000 (13:48 +0000)]
Remove 'const' from local variable declaration in string_zfill() -- it
isn't constant, so why bother.

Folded long lines.

Whitespace normalization.

22 years agoApply the second version of SF patch http://www.python.org/sf/536241
Walter Dörwald [Mon, 15 Apr 2002 13:36:47 +0000 (13:36 +0000)]
Apply the second version of SF patch http://www.python.org/sf/536241

Add a method zfill to str, unicode and UserString and change
Lib/string.py accordingly.

This activates the zfill version in unicodeobject.c that was
commented out and implements the same in stringobject.c. It also
adds the test for unicode support in Lib/string.py back in and
uses repr() instead() of str() (as it was before Lib/string.py 1.62)

22 years agoposix.mknod() and {}.pop() were added
Neal Norwitz [Mon, 15 Apr 2002 12:46:11 +0000 (12:46 +0000)]
posix.mknod() and {}.pop() were added

22 years agoDeprecate % as well. The message for deprecation of //, % and divmod
Guido van Rossum [Mon, 15 Apr 2002 12:39:12 +0000 (12:39 +0000)]
Deprecate % as well.  The message for deprecation of //, % and divmod
is the same in all three cases (mostly because // calls divmod :-).