]> granicus.if.org Git - python/log
python
24 years agoThe usual
Guido van Rossum [Tue, 23 Jan 2001 01:52:44 +0000 (01:52 +0000)]
The usual

24 years agoFix some make errors during "make clobber" or "make distclean", caused
Guido van Rossum [Tue, 23 Jan 2001 01:52:26 +0000 (01:52 +0000)]
Fix some make errors during "make clobber" or "make distclean", caused
by weird and (hopefully) unnecessary SET_CXX and SET_DLLLIBRARY macros
that occurr at the start of Makefile.in files.

- Also removed the already-commented-out SET_CCC macro cruft.

24 years agoAdd simple test of list comprehension that uses a name that isn't
Jeremy Hylton [Tue, 23 Jan 2001 01:51:40 +0000 (01:51 +0000)]
Add simple test of list comprehension that uses a name that isn't
otherwise used in the same code block.  (Not sure this is the right
place, but there is no test_list_comprehensions.py.)

24 years agoUse PyThreadState_DeleteCurrent() instead of PyThreadState_Delete()
Guido van Rossum [Tue, 23 Jan 2001 01:47:18 +0000 (01:47 +0000)]
Use PyThreadState_DeleteCurrent() instead of PyThreadState_Delete()
and PyEval_ReleaseThread().

This fixes SF bug #125673 PyThreadState_Delete: invalid tstate (Unix
only?).

24 years agoAdd a new API, PyThreadState_DeleteCurrent() that combines
Guido van Rossum [Tue, 23 Jan 2001 01:46:06 +0000 (01:46 +0000)]
Add a new API, PyThreadState_DeleteCurrent() that combines
PyThreadState_Delete() and PyEval_ReleaseLock().  It is only defined
if WITH_THREAD is defined.

24 years agoVisit the initial test element of the listmaker for a list
Jeremy Hylton [Tue, 23 Jan 2001 01:26:20 +0000 (01:26 +0000)]
Visit the initial test element of the listmaker for a list
comprehension.  Fixes bug reported by Tim Peters.

24 years agoprevent symtable_params() from dereferencing off the end of the
Jeremy Hylton [Tue, 23 Jan 2001 00:50:52 +0000 (00:50 +0000)]
prevent symtable_params() from dereferencing off the end of the
varagslist node. based on fix from Thomas Wouters.

24 years agoA few more contributors.
Guido van Rossum [Tue, 23 Jan 2001 00:06:20 +0000 (00:06 +0000)]
A few more contributors.

24 years ago- Use "exec ... in dict" to avoid having to walk on eggshells; locals
Guido van Rossum [Mon, 22 Jan 2001 23:37:04 +0000 (23:37 +0000)]
- Use "exec ... in dict" to avoid having to walk on eggshells; locals
  no don't have to start with underscore.

- Add spaces after commas in argument lists.

- Only test dbhash if bsddb can be imported.  (Wonder if there are
  more like this?)

24 years agoTypo repair.
Tim Peters [Mon, 22 Jan 2001 22:43:35 +0000 (22:43 +0000)]
Typo repair.

24 years agoReorganize pickle/cPickle testing so the tests pass regardless of the order
Tim Peters [Mon, 22 Jan 2001 22:05:20 +0000 (22:05 +0000)]
Reorganize pickle/cPickle testing so the tests pass regardless of the order
they're run.

24 years agoA variety of updates of out-of-date information.
Fred Drake [Mon, 22 Jan 2001 21:38:09 +0000 (21:38 +0000)]
A variety of updates of out-of-date information.

24 years agoWhen generating the source package, copy in the LICENSE file from the main
Fred Drake [Mon, 22 Jan 2001 21:34:20 +0000 (21:34 +0000)]
When generating the source package, copy in the LICENSE file from the main
source directory.

24 years agoNever mind ignoring a copied LICENSE file; let's do this another way.
Fred Drake [Mon, 22 Jan 2001 21:31:38 +0000 (21:31 +0000)]
Never mind ignoring a copied LICENSE file; let's do this another way.

24 years agoIgnore the generated LICENSE file needed for the documentation source
Fred Drake [Mon, 22 Jan 2001 21:07:36 +0000 (21:07 +0000)]
Ignore the generated LICENSE file needed for the documentation source
package.

24 years agoChange the main targets to generate HTML instead of PostScript.
Fred Drake [Mon, 22 Jan 2001 20:47:26 +0000 (20:47 +0000)]
Change the main targets to generate HTML instead of PostScript.

Update the comments at the beginning of the file.

24 years agoAdded link to the "Python Codecs" project at SourceForge.
Fred Drake [Mon, 22 Jan 2001 20:17:54 +0000 (20:17 +0000)]
Added link to the "Python Codecs" project at SourceForge.
Changed markup of the list of values for the list of meaningful "errors"
values.

24 years agoAdded dictionary.popitem() and the improved XML modules.
Andrew M. Kuchling [Mon, 22 Jan 2001 19:51:13 +0000 (19:51 +0000)]
Added dictionary.popitem() and the improved XML modules.
Reorder the smaller items, roughly in decreasing order of visibility to
   the Python coder
Finished an incomplete sentence.
Moved the unwritten sections down to the bottom.
Bumped version number and added acknowledgements

24 years agoThe "user" module cannot reasonably be tested. Moved to the end (and
Fred Drake [Mon, 22 Jan 2001 19:38:37 +0000 (19:38 +0000)]
The "user" module cannot reasonably be tested.  Moved to the end (and
commented it out), and added an explanation as to *why*.

Added period to docstring.

24 years agoOK, changed my mind once more on this. The comparison hierarchy is
Guido van Rossum [Mon, 22 Jan 2001 19:30:07 +0000 (19:30 +0000)]
OK, changed my mind once more on this.  The comparison hierarchy is
now

    None < all numeric types < all other types

so that once again

    map(max, Squares(3), Squares(2))

equals

    [0, 1, 4]

24 years agoNew special case in comparisons: None is smaller than any other object
Guido van Rossum [Mon, 22 Jan 2001 19:28:09 +0000 (19:28 +0000)]
New special case in comparisons: None is smaller than any other object
(unless the object's type overrides this comparison).

24 years agoChange some wording to make this work with PDF generation -- using a PDF
Fred Drake [Mon, 22 Jan 2001 19:06:20 +0000 (19:06 +0000)]
Change some wording to make this work with PDF generation -- using a PDF
hyperlink at the start of the paragraph confused pdflatex; it saw the
link start while still in vertical mode, which is not allowed.  Including
text before the link forces horizontal mode.

24 years agoWorked around bug SF #125880: changed the text of three sections that
Fred Drake [Mon, 22 Jan 2001 18:38:00 +0000 (18:38 +0000)]
Worked around bug SF #125880: changed the text of three sections that
really nasty TeX source to "bleed" into the PDF "bookmarks".

24 years agoClean up the docs for the "random" module according to comments from Tim
Fred Drake [Mon, 22 Jan 2001 18:18:30 +0000 (18:18 +0000)]
Clean up the docs for the "random" module according to comments from Tim
Peters.

This closes SF bug #125919.

24 years agoAdd reference to PEP 232.
Andrew M. Kuchling [Mon, 22 Jan 2001 17:52:19 +0000 (17:52 +0000)]
Add reference to PEP 232.
Use correct flag name Py_TPFLAGS_CHECKTYPES
Mention that numeric methods can return Py_NotImplemented (NAS)
Mention optional arguments in time modules (TW)
Various minor rewrites and additional attributions

24 years agoRemove the dollar sign from the formatting of environment variables --
Fred Drake [Mon, 22 Jan 2001 17:50:42 +0000 (17:50 +0000)]
Remove the dollar sign from the formatting of environment variables --
too Unix-specific, and not really needed.  (Already fixed the HTML
formatting, but forgot to mention it in the checkin for python.perl 1.94.)

24 years agoMake "PythonLabs" bold.
Fred Drake [Mon, 22 Jan 2001 17:48:23 +0000 (17:48 +0000)]
Make "PythonLabs" bold.

24 years agoUpdated note about collection of cyclic garbage, based on comments from
Fred Drake [Mon, 22 Jan 2001 17:46:18 +0000 (17:46 +0000)]
Updated note about collection of cyclic garbage, based on comments from
Chris Ryland.

24 years agoMinor markup adjustment.
Fred Drake [Mon, 22 Jan 2001 17:42:32 +0000 (17:42 +0000)]
Minor markup adjustment.

24 years agoFix \seepep handling -- correct URL to the online PEP repository on SF is
Fred Drake [Mon, 22 Jan 2001 17:33:24 +0000 (17:33 +0000)]
Fix \seepep handling -- correct URL to the online PEP repository on SF is
now generated.  (SF bug #129692.)

Patch from Anthon van der Neut <anthon@mnt.org>:
Work around the removal of content-less paired tags used for name
anchors in some places.  (SF bug #116008.)

Move some class attributes from an artificial SPAN element to otherwise
"useful" elements that are being generated anyway.  Added the class
"versionnote", used for \deprecated, \versionadded, \versionchanged.

24 years agoRemove include-file-dependant half-prototype of clnt_create().
Thomas Wouters [Mon, 22 Jan 2001 16:50:11 +0000 (16:50 +0000)]
Remove include-file-dependant half-prototype of clnt_create().

24 years agoRegenerated (shoulnd't make a difference).
Jack Jansen [Mon, 22 Jan 2001 16:27:54 +0000 (16:27 +0000)]
Regenerated (shoulnd't make a difference).

24 years agoUnicodedatabase.c has gone.
Jack Jansen [Mon, 22 Jan 2001 16:26:46 +0000 (16:26 +0000)]
Unicodedatabase.c has gone.

24 years agoFill out various transcripts and XXX bits, thanks to the WMATA.
Andrew M. Kuchling [Mon, 22 Jan 2001 16:15:44 +0000 (16:15 +0000)]
Fill out various transcripts and XXX bits, thanks to the WMATA.
    The only missing section is the Nested Scopes section, which has to wait
    to see if a patch is actually committed.  (Plus any other notable changes
    that get made or backed out between now and 2.1final, of course...)

24 years agoNumeric-smelling objects now once again compare smaller than
Guido van Rossum [Mon, 22 Jan 2001 16:01:24 +0000 (16:01 +0000)]
Numeric-smelling objects now once again compare smaller than
non-numeric ones, so 4 < None again in the 'map' test.

24 years agoOnce again, numeric-smelling objects compare smaller than non-numeric
Guido van Rossum [Mon, 22 Jan 2001 15:59:32 +0000 (15:59 +0000)]
Once again, numeric-smelling objects compare smaller than non-numeric
ones.

24 years agoBetter test for skipping project creation: the project file should also exist and...
Jack Jansen [Mon, 22 Jan 2001 15:38:40 +0000 (15:38 +0000)]
Better test for skipping project creation: the project file should also exist and be newer than the xml file, and the .exp should exist.

24 years agoSF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
Guido van Rossum [Mon, 22 Jan 2001 15:29:14 +0000 (15:29 +0000)]
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin

24 years agoFinn Bock (SF patch #103349):
Guido van Rossum [Mon, 22 Jan 2001 14:53:29 +0000 (14:53 +0000)]
Finn Bock (SF patch #103349):
Allow pickle.py to be using with Jython unicode strings

24 years agoFinn Bock (SF patch #103345): Avoid outdated exec form in
Guido van Rossum [Mon, 22 Jan 2001 14:51:41 +0000 (14:51 +0000)]
Finn Bock (SF patch #103345): Avoid outdated exec form in
test_class.py.

24 years agoNo need to make the S_ constants 32 bit (and its actually harmful because of multiple...
Jack Jansen [Mon, 22 Jan 2001 14:51:03 +0000 (14:51 +0000)]
No need to make the S_ constants 32 bit (and its actually harmful because of multiple defines).

24 years agoWaste needs the ICProgKit API.
Jack Jansen [Mon, 22 Jan 2001 14:50:05 +0000 (14:50 +0000)]
Waste needs the ICProgKit API.

24 years agoIt's SetControlData_Handle, not SetControl_DataHandle.
Jack Jansen [Mon, 22 Jan 2001 14:49:28 +0000 (14:49 +0000)]
It's SetControlData_Handle, not SetControl_DataHandle.

24 years agounicodedatabase.c is no longer needed thanks to Fredrik's patches.
Marc-André Lemburg [Mon, 22 Jan 2001 10:38:27 +0000 (10:38 +0000)]
unicodedatabase.c is no longer needed thanks to Fredrik's patches.

24 years agoFix off-by-one error in array size.
Martin v. Löwis [Mon, 22 Jan 2001 08:19:10 +0000 (08:19 +0000)]
Fix off-by-one error in array size.

24 years agounicodedatabase.[ch] are no longer used.
Fredrik Lundh [Mon, 22 Jan 2001 07:28:10 +0000 (07:28 +0000)]
unicodedatabase.[ch] are no longer used.

24 years agoremoved unicodedatabase.[ch] references from Makefile.pre.in.
Fredrik Lundh [Mon, 22 Jan 2001 07:25:44 +0000 (07:25 +0000)]
removed unicodedatabase.[ch] references from Makefile.pre.in.
also added unicodename_db.h dependency to ucnhash.

24 years agocom_init(): My entry into the smallest patch possible category.
Barry Warsaw [Mon, 22 Jan 2001 04:35:57 +0000 (04:35 +0000)]
com_init(): My entry into the smallest patch possible category.
(cosmetic whitespace change).

24 years agoBeginning of a "What's New in Python 2.1" article
Andrew M. Kuchling [Mon, 22 Jan 2001 04:02:09 +0000 (04:02 +0000)]
Beginning of a "What's New in Python 2.1" article

24 years agoFixed teensy memory leak, but doesn't help test_sax on Windows.
Tim Peters [Mon, 22 Jan 2001 03:20:55 +0000 (03:20 +0000)]
Fixed teensy memory leak, but doesn't help test_sax on Windows.

24 years agoRemove unicodedatabase.c from the unicodedata subproject.
Tim Peters [Sun, 21 Jan 2001 23:49:56 +0000 (23:49 +0000)]
Remove unicodedatabase.c from the unicodedata subproject.

24 years agoMove declaration of 'clnt_create()' NIS function to pyport.h, as it's
Thomas Wouters [Sun, 21 Jan 2001 23:34:12 +0000 (23:34 +0000)]
Move declaration of 'clnt_create()' NIS function to pyport.h, as it's
supposed to be declared in system include files (with a proper prototype.)
Should be moved to a platform-specific block if anyone finds out which
broken platforms need it :-)

24 years agoUnicode nits: Don't include unicodedatabase.h no more. And make sure
Fredrik Lundh [Sun, 21 Jan 2001 23:31:52 +0000 (23:31 +0000)]
Unicode nits: Don't include unicodedatabase.h no more.  And make sure
to build *all* tables in makeunicodedata.py.

24 years agocompress unicode decomposition tables (this saves another 55k)
Fredrik Lundh [Sun, 21 Jan 2001 22:41:08 +0000 (22:41 +0000)]
compress unicode decomposition tables (this saves another 55k)

24 years agoRe-generated with relative paths.
Jack Jansen [Sun, 21 Jan 2001 22:27:11 +0000 (22:27 +0000)]
Re-generated with relative paths.

24 years agoAdded CarbonAccessors.o to the non-carbon targets, and probably a few minor things...
Jack Jansen [Sun, 21 Jan 2001 22:26:26 +0000 (22:26 +0000)]
Added CarbonAccessors.o to the non-carbon targets, and probably a few minor things having to do with Python 2.1a1.

24 years agoAdded support for forced project building.
Jack Jansen [Sun, 21 Jan 2001 22:25:11 +0000 (22:25 +0000)]
Added support for forced project building.
Added carbon targets (mainly placeholders at the moment).

24 years agoAdded a force option (to force project generation, the default is now to only generat...
Jack Jansen [Sun, 21 Jan 2001 22:24:27 +0000 (22:24 +0000)]
Added a force option (to force project generation, the default is now to only generate if different).
Try to convert all search paths to relative.

24 years agoDon't generate project if the XML file already exists and is identical to what we...
Jack Jansen [Sun, 21 Jan 2001 22:23:13 +0000 (22:23 +0000)]
Don't generate project if the XML file already exists and is identical to what we've generated. Overridable with a "force" argument to mkproject().

24 years agoPatch #103342: Make shutil.copytree more useful under Jython.
Tim Peters [Sun, 21 Jan 2001 20:00:00 +0000 (20:00 +0000)]
Patch #103342:  Make shutil.copytree more useful under Jython.

24 years agoPatch #103343: Allow the important test_pkg to succeed under Jython.
Tim Peters [Sun, 21 Jan 2001 19:51:53 +0000 (19:51 +0000)]
Patch #103343:  Allow the important test_pkg to succeed under Jython.

24 years agoIn format(), consider sign only after grouping.
Martin v. Löwis [Sun, 21 Jan 2001 18:52:33 +0000 (18:52 +0000)]
In format(), consider sign only after grouping.
Suggested by Kevin Jacobs in bug report #129417.

24 years agoPatch #103344: Sort dicts from extcall for easier comparison with Jython.
Tim Peters [Sun, 21 Jan 2001 18:52:02 +0000 (18:52 +0000)]
Patch #103344:  Sort dicts from extcall for easier comparison with Jython.

24 years agoforgot to check in the new makeunicodedata.py script
Fredrik Lundh [Sun, 21 Jan 2001 17:01:31 +0000 (17:01 +0000)]
forgot to check in the new makeunicodedata.py script

24 years agoRemove a smelly export.
Neil Schemenauer [Sun, 21 Jan 2001 16:25:18 +0000 (16:25 +0000)]
Remove a smelly export.

24 years agoCheck for None to decide when pyexpat should not be built.
Martin v. Löwis [Sun, 21 Jan 2001 10:54:52 +0000 (10:54 +0000)]
Check for None to decide when pyexpat should not be built.

24 years agoFix typo: MICRO instead of MINOR.
Martin v. Löwis [Sun, 21 Jan 2001 10:22:12 +0000 (10:22 +0000)]
Fix typo: MICRO instead of MINOR.

24 years agoMerge with 1.25 of PyXML:
Martin v. Löwis [Sun, 21 Jan 2001 10:18:10 +0000 (10:18 +0000)]
Merge with 1.25 of PyXML:
Participate in garbage collection if available.
Potentially decref handlers in clear_handlers.
Partially reindent.
Put synthetic frame object on the stack to support better error output.
Expose Python codecs to pyexpat.
Add new Expat 1.2 handlers and API.
Fix memory leak: release self->handlers.
Do not expect PyModule_AddObject and PyModule_AddStringConstant in 2.0b1.
Raise exception in ParseFile.

24 years agoWhitespace normalization.
Tim Peters [Sun, 21 Jan 2001 07:07:30 +0000 (07:07 +0000)]
Whitespace normalization.

24 years agoWhitespace normalization.
Tim Peters [Sun, 21 Jan 2001 04:49:16 +0000 (04:49 +0000)]
Whitespace normalization.

24 years agoBug #128475: mimetools.encode (sometimes) fails when called from a thread.
Tim Peters [Sun, 21 Jan 2001 03:40:37 +0000 (03:40 +0000)]
Bug #128475: mimetools.encode (sometimes) fails when called from a thread.
pythonrun.c:  In Py_Finalize, don't reset the initialized flag until after
the exit funcs have run.
atexit.py:  in _run_exitfuncs, mutate the list of pending calls in a
threadsafe way.  This wasn't a contributor to bug 128475, it just burned
my eyeballs when looking at that bug.

24 years agomore __all__ updates
Skip Montanaro [Sat, 20 Jan 2001 23:34:12 +0000 (23:34 +0000)]
more __all__ updates

24 years agoadded some tests for urlencode
Skip Montanaro [Sat, 20 Jan 2001 20:22:30 +0000 (20:22 +0000)]
added some tests for urlencode

24 years agoadded __all__ lists to a number of Python modules
Skip Montanaro [Sat, 20 Jan 2001 19:54:20 +0000 (19:54 +0000)]
added __all__ lists to a number of Python modules
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.

24 years agodocstring typo
Skip Montanaro [Sat, 20 Jan 2001 19:12:54 +0000 (19:12 +0000)]
docstring typo

24 years agoI've been using gdb a lot lately -- I'm missing 'bt' as a command in
Guido van Rossum [Sat, 20 Jan 2001 17:57:37 +0000 (17:57 +0000)]
I've been using gdb a lot lately -- I'm missing 'bt' as a command in
pdb (pdb calls it 'where').  Added 'bt' as an alias for 'where'.

24 years agorewrite of robotparser.py by Bastian Kleineidam. Closes patch 102229.
Skip Montanaro [Sat, 20 Jan 2001 15:59:25 +0000 (15:59 +0000)]
rewrite of robotparser.py by Bastian Kleineidam.  Closes patch 102229.

24 years agomodify urlencode so sequences in the dict are treated as multivalued
Skip Montanaro [Sat, 20 Jan 2001 15:56:39 +0000 (15:56 +0000)]
modify urlencode so sequences in the dict are treated as multivalued
parameters.  This closes the code part of patch 103314.

24 years agoFix comment.
Neil Schemenauer [Sat, 20 Jan 2001 15:50:42 +0000 (15:50 +0000)]
Fix comment.

24 years agoBetter error message if ucnhash cannot be found (obscure attribute
Fredrik Lundh [Sat, 20 Jan 2001 11:15:25 +0000 (11:15 +0000)]
Better error message if ucnhash cannot be found (obscure attribute
errors aren't that helpful), or doesn't contain what's expected from
it.  Also tweaked the test script so it compiles even if ucnhash is
missing.

24 years agoUpdating NEWS to match the current state of affairs.
Marc-André Lemburg [Sat, 20 Jan 2001 10:34:52 +0000 (10:34 +0000)]
Updating NEWS to match the current state of affairs.

24 years agoTim chastens:
Barry Warsaw [Sat, 20 Jan 2001 06:24:55 +0000 (06:24 +0000)]
Tim chastens:

    Barry, that comment belongs in the code, not in the checkin msg.
    The code *used* to do this correctly (as you well know, since you
    & I went thru considerable pain to fix this the first time).
    However, because the *reason* for the convolution wasn't recorded
    in the code as a comment, somebody threw it all away the first
    time it got reworked.

    c-code-isn't-often-self-explanatory-ly y'rs  - tim

default_3way_compare(): Stick the checkin message from 2.110 in a
comment.

24 years agodefault_3way_compare(): When comparing the pointers, they must be cast
Barry Warsaw [Sat, 20 Jan 2001 06:08:10 +0000 (06:08 +0000)]
default_3way_compare(): When comparing the pointers, they must be cast
to integer types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t).
ANSI specifies that pointer compares other than == and != to
non-related structures are undefined.  This quiets an Insure
portability warning.

24 years agoSF patch #103336: Missing cast.
Tim Peters [Sat, 20 Jan 2001 05:15:26 +0000 (05:15 +0000)]
SF patch #103336:  Missing cast.

24 years agoWhen running the tests twice, stuck a "Press any key to continue ..." pause
Tim Peters [Sat, 20 Jan 2001 01:53:43 +0000 (01:53 +0000)]
When running the tests twice, stuck a "Press any key to continue ..." pause
between passes:  Win9x DOS boxes are limited to 50 lines max, and the result
of the first pass scrolls off irretrievably otherwise.  Also simplified
the goto-laden logic a bit.

24 years agoVarious tweaks for Python 2.1a1.
Jack Jansen [Fri, 19 Jan 2001 23:47:21 +0000 (23:47 +0000)]
Various tweaks for Python 2.1a1.

24 years agoTreat an empty kwdict argument the same as a missing one.
Jack Jansen [Fri, 19 Jan 2001 23:46:28 +0000 (23:46 +0000)]
Treat an empty kwdict argument the same as a missing one.

24 years agoUndefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of...
Jack Jansen [Fri, 19 Jan 2001 23:45:57 +0000 (23:45 +0000)]
Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of a funny define makes portable code impossible:-(

24 years agoUse #if TARGET_API_MAC_CARBON to determine carbon/classic macos, not #ifdef.
Jack Jansen [Fri, 19 Jan 2001 23:34:06 +0000 (23:34 +0000)]
Use #if TARGET_API_MAC_CARBON to determine carbon/classic macos, not #ifdef.

24 years agoMake the 'time' argument to the timemodule functions strftime, asctime,
Thomas Wouters [Fri, 19 Jan 2001 23:16:56 +0000 (23:16 +0000)]
Make the 'time' argument to the timemodule functions strftime, asctime,
ctime, gmtime and localtime optional, defaulting to 'the current time' in
all cases. Adjust docs, add news item. Also convert all argument-handling to
METH_VARARGS. Closes SF patch #103265.

24 years agoFixed a bunch of typos caught by Gilles Civario.
Fred Drake [Fri, 19 Jan 2001 22:48:33 +0000 (22:48 +0000)]
Fixed a bunch of typos caught by Gilles Civario.

24 years agoClarify comments about returning None using a return without an expression;
Fred Drake [Fri, 19 Jan 2001 22:34:59 +0000 (22:34 +0000)]
Clarify comments about returning None using a return without an expression;
this is not hard to explain!

Closes SF bug #129345.

24 years agoNow that Marc-Andre has retracted unistr(), remove the tests.
Guido van Rossum [Fri, 19 Jan 2001 21:57:52 +0000 (21:57 +0000)]
Now that Marc-Andre has retracted unistr(), remove the tests.

24 years agoA hack to augment sys.path with the build/lib.<platform> directory
Guido van Rossum [Fri, 19 Jan 2001 21:54:59 +0000 (21:54 +0000)]
A hack to augment sys.path with the build/lib.<platform> directory
created by Andrew's setup.py script, *if* we're actually running from
the build directory.  (The test for that: whether the sys.path[-1]
ends in "/Modules".)

This has one disadvantage: it imports a fair amount of code from the
distutils package, just in order to be able to calculate the correct
pathname.  See if I care. :-)

24 years agoRun tests twice by default, first time deleting .pyc/.pyo files.
Tim Peters [Fri, 19 Jan 2001 21:43:49 +0000 (21:43 +0000)]
Run tests twice by default, first time deleting .pyc/.pyo files.
New option "-q" to leave .pyc/.pyo alone.

24 years agoBacked out the unistr() builtin.
Marc-André Lemburg [Fri, 19 Jan 2001 21:36:19 +0000 (21:36 +0000)]
Backed out the unistr() builtin.

24 years agoUse a saner test filename, to work on Windows.
Guido van Rossum [Fri, 19 Jan 2001 21:06:50 +0000 (21:06 +0000)]
Use a saner test filename, to work on Windows.

24 years agoDelete the bytecode from the library and tests before running the
Guido van Rossum [Fri, 19 Jan 2001 21:00:04 +0000 (21:00 +0000)]
Delete the bytecode from the library and tests before running the
tests for the first time -- like the Unix Makefile does.  This
avoids not catching problems in the bytecode generator and/or bytecode
marshalling.

24 years ago"make test" was still broken when building in a subdirectory: Andrew's
Guido van Rossum [Fri, 19 Jan 2001 20:21:59 +0000 (20:21 +0000)]
"make test" was still broken when building in a subdirectory: Andrew's
fix set PYTHONPATH to something starting with $(srcdir)/build/lib....
The use of $(srcdir) was wrong here, it should be ./build/lib...

24 years agoOK, checking in patch 103329.
Moshe Zadka [Fri, 19 Jan 2001 19:56:27 +0000 (19:56 +0000)]
OK, checking in patch 103329.
Please check it against your nearest pop server --
mine doesn't support APOP (I checked I'm getting the same error
message, though)