]> granicus.if.org Git - python/log
python
20 years agoTweak previous patch to silence a warning about the unused left value in the
Brett Cannon [Tue, 3 Aug 2004 04:53:29 +0000 (04:53 +0000)]
Tweak previous patch to silence a warning about the unused left value in the
comma expression in listpop() that was being returned.  Still essentially
unused (as it is meant to be), but now the compiler thinks it is worth
*something* by having it incremented.

20 years agofix a little lie ;-(
Fred Drake [Mon, 2 Aug 2004 23:05:25 +0000 (23:05 +0000)]
fix a little lie  ;-(

20 years agoFix typo though
Neal Norwitz [Mon, 2 Aug 2004 21:56:33 +0000 (21:56 +0000)]
Fix typo though

20 years agofix markup error
Fred Drake [Mon, 2 Aug 2004 21:50:26 +0000 (21:50 +0000)]
fix markup error

20 years agostart filling in documentation on extending distutils
Fred Drake [Mon, 2 Aug 2004 21:39:11 +0000 (21:39 +0000)]
start filling in documentation on extending distutils

20 years ago- fix description of option table entries
Fred Drake [Mon, 2 Aug 2004 17:58:51 +0000 (17:58 +0000)]
- fix description of option table entries
- fix broken assert statement; should just raise

20 years agoUse isabs() in conditional, not abspath
Andrew M. Kuchling [Mon, 2 Aug 2004 14:54:16 +0000 (14:54 +0000)]
Use isabs() in conditional, not abspath

20 years agoFix for the unfortunate fact that PyDict_GetItem and PyObject_GetItem
Michael W. Hudson [Mon, 2 Aug 2004 14:50:43 +0000 (14:50 +0000)]
Fix for the unfortunate fact that PyDict_GetItem and PyObject_GetItem
have differing refcount semantics.  If anyone sees a prettier way to
acheive the same ends, then please go for it.

I think this is the first time I've ever used Py_XINCREF.

20 years agoAdd PEP318
Andrew M. Kuchling [Mon, 2 Aug 2004 13:48:18 +0000 (13:48 +0000)]
Add PEP318

20 years agoAny call to insort_{left,right} with a non-list leaked a reference to None
Michael W. Hudson [Mon, 2 Aug 2004 13:24:54 +0000 (13:24 +0000)]
Any call to insort_{left,right} with a non-list leaked a reference to None
(or to whatever the 'insert' method chose to return).

20 years agoAdd a missing decref.
Michael W. Hudson [Mon, 2 Aug 2004 13:22:01 +0000 (13:22 +0000)]
Add a missing decref.

20 years agofor some reason, the lack of adherence to Python's C whitespace rules
Michael W. Hudson [Mon, 2 Aug 2004 13:21:09 +0000 (13:21 +0000)]
for some reason, the lack of adherence to Python's C whitespace rules
must have annoyed me at some point.

20 years agoAdd import change; add empty section for function decorators
Andrew M. Kuchling [Mon, 2 Aug 2004 12:44:28 +0000 (12:44 +0000)]
Add import change; add empty section for function decorators

20 years agoUpdate item
Andrew M. Kuchling [Mon, 2 Aug 2004 12:09:58 +0000 (12:09 +0000)]
Update item

20 years agoand a unit test for the staticmethod-of-a-non-method failure just fixed
Anthony Baxter [Mon, 2 Aug 2004 11:34:10 +0000 (11:34 +0000)]
and a unit test for the staticmethod-of-a-non-method failure just fixed

20 years agofix for @decorators under a debug build.
Anthony Baxter [Mon, 2 Aug 2004 11:08:15 +0000 (11:08 +0000)]
fix for @decorators under a debug build.

20 years agoFix doubled word.
Raymond Hettinger [Mon, 2 Aug 2004 08:36:07 +0000 (08:36 +0000)]
Fix doubled word.

20 years agoCompleted the patch for Bug #215126.
Raymond Hettinger [Mon, 2 Aug 2004 08:30:07 +0000 (08:30 +0000)]
Completed the patch for Bug #215126.
* Fixes an incorrect variable in a PyDict_CheckExact.
* Allow general mapping locals arguments for the execfile() function
  and exec statement.
* Add tests.

20 years agonotes for @decorator
Anthony Baxter [Mon, 2 Aug 2004 06:24:59 +0000 (06:24 +0000)]
notes for @decorator

20 years agoPEP-0318, @decorator-style. In Guido's words:
Anthony Baxter [Mon, 2 Aug 2004 06:10:11 +0000 (06:10 +0000)]
PEP-0318, @decorator-style. In Guido's words:
"@ seems the syntax that everybody can hate equally"
Implementation by Mark Russell, from SF #979728.

20 years agoTypo repair.
Tim Peters [Mon, 2 Aug 2004 04:30:37 +0000 (04:30 +0000)]
Typo repair.

20 years agoCompleted a sentence I left dangling.
Tim Peters [Mon, 2 Aug 2004 04:14:10 +0000 (04:14 +0000)]
Completed a sentence I left dangling.

20 years agoRemoved reliance on damaged module object appearing in sys.modules
Tim Peters [Mon, 2 Aug 2004 03:59:57 +0000 (03:59 +0000)]
Removed reliance on damaged module object appearing in sys.modules
after a failed import.

This is the last checkin in the "change import failure semantics" series.

20 years agoNew tests:
Tim Peters [Mon, 2 Aug 2004 03:58:27 +0000 (03:58 +0000)]
New tests:
    test_failing_import_sticks -- if an import raises an exception,
        ensure that trying to import it again continues raising exceptions
    test_failing_reload -- if a module loads OK, but a reload raises an
        exception, ensure that the module is still in sys.modules, and
        that its __dict__ reflects as much of the reload attempt as
        succeeded.  That doesn't seem like sane semantics, but it is
        backward-compatible semantics <wink>.

20 years agoRemoved no-longer-needed convolutions to recover from damaged modules
Tim Peters [Mon, 2 Aug 2004 03:55:18 +0000 (03:55 +0000)]
Removed no-longer-needed convolutions to recover from damaged modules
getting left beyind in sys.modules.

20 years agoPyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases.
Tim Peters [Mon, 2 Aug 2004 03:52:12 +0000 (03:52 +0000)]
PyImport_ExecCodeModuleEx():  remove module from sys.modules in error cases.
PyImport_ReloadModule():  restore the module to sys.modules in error cases.
load_package():  semantic-neutral refactoring from an earlier stab at
                 this patch; giving it a common error exit made the code
                 easier to follow, so retaining that part.
_RemoveModule():  new little utility to delete a key from sys.modules.

20 years ago"Core" and "C API" news about new semantics for failing imports.
Tim Peters [Mon, 2 Aug 2004 03:48:03 +0000 (03:48 +0000)]
"Core" and "C API" news about new semantics for failing imports.

20 years agoPyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule:
Tim Peters [Mon, 2 Aug 2004 03:46:45 +0000 (03:46 +0000)]
PyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule:
in failure cases, incompletely initalized module objects are no longer
left behind in sys.modules.

20 years agolock_held() docs: Use True/False instead of 1/0. The LaTeX docs were
Tim Peters [Sun, 1 Aug 2004 23:26:05 +0000 (23:26 +0000)]
lock_held() docs:  Use True/False instead of 1/0.  The LaTeX docs were
already correct, so not changed here.

20 years agoTrimmed trailing whitespace.
Tim Peters [Sun, 1 Aug 2004 23:24:21 +0000 (23:24 +0000)]
Trimmed trailing whitespace.

20 years agoFix SF #1001053, wave.open() with unicode filename fails
Neal Norwitz [Sun, 1 Aug 2004 22:48:06 +0000 (22:48 +0000)]
Fix SF #1001053, wave.open() with unicode filename fails

Backport candidate.

20 years agoFix typo in comment
Neal Norwitz [Sun, 1 Aug 2004 22:45:27 +0000 (22:45 +0000)]
Fix typo in comment

20 years agoSF bug #1001088, incorrect reference to macro named foo
Neal Norwitz [Sun, 1 Aug 2004 22:36:40 +0000 (22:36 +0000)]
SF bug #1001088, incorrect reference to macro named foo

Backport candidate.

20 years agolist_ass_slice(): Document the obscure new intent that deleting a slice
Tim Peters [Sat, 31 Jul 2004 21:53:19 +0000 (21:53 +0000)]
list_ass_slice():  Document the obscure new intent that deleting a slice
of no more than 8 elements cannot fail.

listpop():  Take advantage of that its calls to list_resize() and
list_ass_slice() can't fail.  This is assert'ed in a debug build now, but
in an icky way.  That is, you can't say:

assert(some_call() >= 0);

because then some_call() won't occur at all in a release build.  So it
has to be a big pile of #ifdefs on Py_DEBUG (yuck), or the pleasant:

        status = some_call();
        assert(status >= 0);

But in that case, compilers may whine in a release build, because status
appears unused then.  I'm not certain the ugly trick I used here will
convince all compilers to shut up about status (status is always "used" now,
as the first (ignored) clause in a comma expression).

20 years agoWhitespace normalization.
Tim Peters [Sat, 31 Jul 2004 21:17:37 +0000 (21:17 +0000)]
Whitespace normalization.

20 years agoBe more careful about reverting mutuations to system-wide (sys) variables.
Tim Peters [Sat, 31 Jul 2004 21:14:28 +0000 (21:14 +0000)]
Be more careful about reverting mutuations to system-wide (sys) variables.
This fixes 15 spurious test failures on Windows (probably all due to
the test leaving a wrong path in sys.argv[0], which then prevented
regrtest.py from finding the expected-output files for tests running
after test_optparse).

20 years agoMention upgrade of optparse to Optik 1.5a1.
Greg Ward [Sat, 31 Jul 2004 16:16:11 +0000 (16:16 +0000)]
Mention upgrade of optparse to Optik 1.5a1.

20 years agoUpgrade optparse module and tests to Optik 1.5a1:
Greg Ward [Sat, 31 Jul 2004 16:15:44 +0000 (16:15 +0000)]
Upgrade optparse module and tests to Optik 1.5a1:
  * add expansion of default values in help text: the string
    "%default" in an option's help string is expanded to str() of
    that option's default value, or "none" if no default value.
  * bug #955889: option default values that happen to be strings are
    now processed in the same way as values from the command line; this
    allows generation of nicer help when using custom types.  Can
    be disabled with parser.set_process_default_values(False).
  * bug #960515: don't crash when generating help for callback
    options that specify 'type', but not 'dest' or 'metavar'.
  * feature #815264: change the default help format for short options
    that take an argument from e.g. "-oARG" to "-o ARG"; add
    set_short_opt_delimiter() and set_long_opt_delimiter() methods to
    HelpFormatter to allow (slight) customization of the formatting.
  * patch #736940: internationalize Optik: all built-in user-
    targeted literal strings are passed through gettext.gettext().  (If
    you want translations (.po files), they're not included with Python
    -- you'll find them in the Optik source distribution from
    http://optik.sourceforge.net/ .)
  * bug #878453: respect $COLUMNS environment variable for
    wrapping help output.
  * feature #988122: expand "%prog" in the 'description' passed
    to OptionParser, just like in the 'usage' and 'version' strings.
    (This is *not* done in the 'description' passed to OptionGroup.)

20 years agolist_ass_slice(): The difference between "recycle" and "recycled" was
Tim Peters [Sat, 31 Jul 2004 02:54:42 +0000 (02:54 +0000)]
list_ass_slice():  The difference between "recycle" and "recycled" was
impossible to remember, so renamed one to something obvious.  Headed
off potential signed-vs-unsigned compiler complaints I introduced by
changing the type of a vrbl to unsigned.  Removed the need for the
tedious explanation about "backward pointer loops" by looping on an
int instead.

20 years agoArmin asked for a list_ass_slice review in his checkin, so here's the
Tim Peters [Sat, 31 Jul 2004 02:24:20 +0000 (02:24 +0000)]
Armin asked for a list_ass_slice review in his checkin, so here's the
result.

list_resize():  Document the intent.  Code is increasingly relying on
subtle aspects of its behavior, and they deserve to be spelled out.

list_ass_slice():  A bit more simplification, by giving it a common
error exit and initializing more values.

Be clearer in comments about what "size" means (# of elements?  # of
bytes?).

While the number of elements in a list slice must fit in an int, there's
no guarantee that the number of bytes occupied by the slice will.  That
malloc() and memmove() take size_t arguments is a hint about that <wink>.
So changed to use size_t where appropriate.

ihigh - ilow should always be >= 0, but we never asserted that.  We do
now.

The loop decref'ing the recycled slice had a subtle insecurity:  C doesn't
guarantee that a pointer one slot *before* an array will compare "less
than" to a pointer within the array (it does guarantee that a pointer
one beyond the end of the array compares as expected).  This was actually
an issue in KSR's C implementation, so isn't purely theoretical.  Python
probably has other "go backwards" loops with a similar glitch.
list_clear() is OK (it marches an integer backwards, not a pointer).

20 years agoRepair typo in docstring.
Tim Peters [Sat, 31 Jul 2004 00:19:43 +0000 (00:19 +0000)]
Repair typo in docstring.

20 years agore-wrap paragraphs containing long lines
Fred Drake [Fri, 30 Jul 2004 19:12:38 +0000 (19:12 +0000)]
re-wrap paragraphs containing long lines

20 years ago- document the termination condition for cmd.Cmd.cmdloop()
Fred Drake [Fri, 30 Jul 2004 18:58:54 +0000 (18:58 +0000)]
- document the termination condition for cmd.Cmd.cmdloop()
- document the use of the return value for cmd.Cmd.do_*() methods

20 years agoFix typo.
Martin v. Löwis [Fri, 30 Jul 2004 16:09:19 +0000 (16:09 +0000)]
Fix typo.

20 years agoAdd closing methoddesc. Add versionadded. Rewrap.
Martin v. Löwis [Fri, 30 Jul 2004 16:08:49 +0000 (16:08 +0000)]
Add closing methoddesc. Add versionadded. Rewrap.

20 years agoThis is a reorganization of list_ass_slice(). It should probably be reviewed,
Armin Rigo [Fri, 30 Jul 2004 11:38:22 +0000 (11:38 +0000)]
This is a reorganization of list_ass_slice().  It should probably be reviewed,
though I tried to be very careful.  This is a slight simplification, and it
adds a new feature: a small stack-allocated "recycled" array for the cases
when we don't remove too many items.

It allows PyList_SetSlice() to never fail if:
* you are sure that the object is a list; and
* you either do not remove more than 8 items, or clear the list.

This makes a number of other places in the source code correct again -- there
are some places that delete a single item without checking for MemoryErrors
raised by PyList_SetSlice(), or that clear the whole list, and sometimes the
context doesn't allow an error to be propagated.

20 years agoWhat if you call lst.__init__() while it is being sorted? :-)
Armin Rigo [Fri, 30 Jul 2004 11:20:18 +0000 (11:20 +0000)]
What if you call lst.__init__() while it is being sorted?  :-)
The invariant checks would break.

20 years ago* Simplify and speed-up list_resize(). Relying on the newly documented
Raymond Hettinger [Thu, 29 Jul 2004 23:31:29 +0000 (23:31 +0000)]
* Simplify and speed-up list_resize().  Relying on the newly documented
  invariants allows the ob_item != NULL check to be replaced with an
  assertion.

* Added assertions to list_init() which document and verify that the
  tp_new slot establishes the invariants.  This may preclude a future
  bug if a custom tp_new slot is written.

20 years ago* drop the unreasonable list invariant that ob_item should never come back
Armin Rigo [Thu, 29 Jul 2004 12:40:23 +0000 (12:40 +0000)]
* drop the unreasonable list invariant that ob_item should never come back
  to NULL during the lifetime of the object.

* listobject.c nevertheless did not conform to the other invariants,
  either; fixed.

* listobject.c now uses list_clear() as the obvious internal way to clear
  a list, instead of abusing list_ass_slice() for that.  It makes it easier
  to enforce the invariant about ob_item == NULL.

* listsort() sets allocated to -1 during sort; any mutation will set it
  to a value >= 0, so it is a safe way to detect mutation.  A negative
  value for allocated does not cause a problem elsewhere currently.
  test_sort.py has a new test for this fix.

* listsort() leak: if items were added to the list during the sort, AND if
  these items had a __del__ that puts still more stuff into the list,
  then this more stuff (and the PyObject** array to hold them) were
  overridden at the end of listsort() and never released.

20 years agoMinor memory leak.
Armin Rigo [Thu, 29 Jul 2004 10:56:55 +0000 (10:56 +0000)]
Minor memory leak.

20 years agoIgnore exceptions which occur when closing files in shutdown()
Vinay Sajip [Thu, 29 Jul 2004 09:19:30 +0000 (09:19 +0000)]
Ignore exceptions which occur when closing files in shutdown()

20 years agoSF bug #997533: "disjunct" should be "disjoint"
Raymond Hettinger [Thu, 29 Jul 2004 06:06:34 +0000 (06:06 +0000)]
SF bug #997533: "disjunct" should be "disjoint"

* Use plain wording in docs for id().
* Use normal quotation marks instead of single quotes in the description.

20 years agoFix obscure breakage (relative to 2.3) in listsort: the test for list
Tim Peters [Thu, 29 Jul 2004 04:07:15 +0000 (04:07 +0000)]
Fix obscure breakage (relative to 2.3) in listsort:  the test for list
mutation during list.sort() used to rely on that listobject.c always
NULL'ed ob_item when ob_size fell to 0.  That's no longer true, so the
test for list mutation during a sort is no longer reliable.  Changed the
test to rely instead on that listobject.c now never NULLs-out ob_item
after (if ever) ob_item gets a non-NULL value.  This new assumption is
also documented now, as a required invariant in listobject.h.

The new assumption allowed some real simplification to some of the
hairier code in listsort(), so is a Good Thing on that count.

20 years agoSF bug #999776, zlib home page wrong
Neal Norwitz [Thu, 29 Jul 2004 03:55:56 +0000 (03:55 +0000)]
SF bug #999776, zlib home page wrong

Backport candidate.

20 years agoSF #998170, fix typo. Backport candidate
Neal Norwitz [Thu, 29 Jul 2004 03:48:59 +0000 (03:48 +0000)]
SF #998170, fix typo.  Backport candidate

20 years agoDocument what the members of PyListObject are used for, and the crucial
Tim Peters [Thu, 29 Jul 2004 03:29:15 +0000 (03:29 +0000)]
Document what the members of PyListObject are used for, and the crucial
invariants they must satisfy.

20 years agoTrimmed trailing whitespace.
Tim Peters [Thu, 29 Jul 2004 02:29:26 +0000 (02:29 +0000)]
Trimmed trailing whitespace.

20 years agoPyList_New(): we went to all the trouble of computing and bounds-checking
Tim Peters [Thu, 29 Jul 2004 02:28:42 +0000 (02:28 +0000)]
PyList_New():  we went to all the trouble of computing and bounds-checking
the size_t nbytes, and passed nbytes to malloc, so it was confusing to
effectively recompute the same thing from scratch in the memset call.

20 years agoAdd missing doc for Py_True/Py_False. Use the correct macro to define
Skip Montanaro [Thu, 29 Jul 2004 02:16:04 +0000 (02:16 +0000)]
Add missing doc for Py_True/Py_False.  Use the correct macro to define
Py_RETURN_FALSE and Py_RETURN_TRUE.

20 years agoUse PyMODINIT_FUNC.
Thomas Heller [Wed, 28 Jul 2004 20:02:52 +0000 (20:02 +0000)]
Use PyMODINIT_FUNC.

20 years agoNew codec: [ 996067 ] hp-roman8 codec
Marc-André Lemburg [Wed, 28 Jul 2004 15:37:54 +0000 (15:37 +0000)]
New codec: [ 996067 ] hp-roman8 codec

20 years agoAdded new codec hp-roman8 submitted as patch [ 996067 ] hp-roman8 codec.
Marc-André Lemburg [Wed, 28 Jul 2004 15:35:29 +0000 (15:35 +0000)]
Added new codec hp-roman8 submitted as patch [ 996067 ] hp-roman8 codec.

20 years agoAdd new encodings
Andrew M. Kuchling [Wed, 28 Jul 2004 15:29:39 +0000 (15:29 +0000)]
Add new  encodings

20 years agoSince build_py handles package data installation, the list of outputs
Fred Drake [Wed, 28 Jul 2004 14:55:10 +0000 (14:55 +0000)]
Since build_py handles package data installation, the list of outputs
can contain more than just .py files.  Make sure we only report
bytecode files for the .py files.

20 years agoA little boolean music if you please, maestro... (Not sure I have the
Skip Montanaro [Wed, 28 Jul 2004 14:17:04 +0000 (14:17 +0000)]
A little boolean music if you please, maestro... (Not sure I have the
versionadded{} args quite right).

20 years agoRemove unused source file from Windows project files.
Hye-Shik Chang [Wed, 28 Jul 2004 09:45:20 +0000 (09:45 +0000)]
Remove unused source file from Windows project files.

20 years agoAdd missing _codecs_iso2022 module of cjkcodecs. I'll add unittest
Hye-Shik Chang [Wed, 28 Jul 2004 09:39:54 +0000 (09:39 +0000)]
Add missing _codecs_iso2022 module of cjkcodecs.  I'll add unittest
for it soon.

20 years agoRemove CJKCodecs implementation of UTF-7 and UTF-8 codec which
Hye-Shik Chang [Wed, 28 Jul 2004 09:36:52 +0000 (09:36 +0000)]
Remove CJKCodecs implementation of UTF-7 and UTF-8 codec which
aren't intended to be part of Python distributiuon.  This was
accidently imported on mass converting from standalone version of
CJKCodecs.

20 years agoAdd versionadded info
Neal Norwitz [Wed, 28 Jul 2004 02:34:12 +0000 (02:34 +0000)]
Add versionadded info

20 years agoAck, removed useless import of os I just introduced.
Tim Peters [Tue, 27 Jul 2004 21:05:21 +0000 (21:05 +0000)]
Ack, removed useless import of os I just introduced.

20 years agoAdded a new fileno() method. ZODB's repozo.py wants this so it can
Tim Peters [Tue, 27 Jul 2004 21:02:02 +0000 (21:02 +0000)]
Added a new fileno() method.  ZODB's repozo.py wants this so it can
apply os.fsync() to the GzipFile backup files it creates.

20 years agoUse intptr_t/uintptr_t on Windows
Martin v. Löwis [Tue, 27 Jul 2004 15:57:24 +0000 (15:57 +0000)]
Use intptr_t/uintptr_t on Windows

20 years agoSwitch arguments to memset (kudos to MSVC C4318 for finding that)
Martin v. Löwis [Tue, 27 Jul 2004 15:03:53 +0000 (15:03 +0000)]
Switch arguments to memset (kudos to MSVC C4318 for finding that)

20 years agoProperly check for Win64 compilers.
Martin v. Löwis [Tue, 27 Jul 2004 14:16:14 +0000 (14:16 +0000)]
Properly check for Win64 compilers.

20 years agoAdd an item
Andrew M. Kuchling [Tue, 27 Jul 2004 12:13:25 +0000 (12:13 +0000)]
Add an item

20 years agoPatch #995766: Keyword argument support in cPickle.
Martin v. Löwis [Tue, 27 Jul 2004 05:22:33 +0000 (05:22 +0000)]
Patch #995766: Keyword argument support in cPickle.

20 years agoPatch #998149: imaplib deleteacl and myrights.
Martin v. Löwis [Tue, 27 Jul 2004 05:07:19 +0000 (05:07 +0000)]
Patch #998149: imaplib deleteacl and myrights.

20 years agoAdd some items
Andrew M. Kuchling [Mon, 26 Jul 2004 19:28:46 +0000 (19:28 +0000)]
Add some items

20 years agoTwo typo fixes
Andrew M. Kuchling [Mon, 26 Jul 2004 19:25:54 +0000 (19:25 +0000)]
Two typo fixes

20 years ago[Bug #997166] Fix example
Andrew M. Kuchling [Mon, 26 Jul 2004 18:52:48 +0000 (18:52 +0000)]
[Bug #997166] Fix example

20 years agofix information about what flag database files are opened with by default
Fred Drake [Mon, 26 Jul 2004 16:33:29 +0000 (16:33 +0000)]
fix information about what flag database files are opened with by default

20 years agoPatch #962487: Don't crash for empty locale names.
Martin v. Löwis [Mon, 26 Jul 2004 12:45:18 +0000 (12:45 +0000)]
Patch #962487: Don't crash for empty locale names.

20 years agoPatch #605370: Add description[s] for RFC 2980 compliance.
Martin v. Löwis [Mon, 26 Jul 2004 12:40:50 +0000 (12:40 +0000)]
Patch #605370: Add description[s] for RFC 2980 compliance.

20 years agoPatch #995782: Add FreeBSD 5 expectations. Will backport to 2.3.
Martin v. Löwis [Mon, 26 Jul 2004 12:09:13 +0000 (12:09 +0000)]
Patch #995782: Add FreeBSD 5 expectations. Will backport to 2.3.

20 years agoPatch #997668: Correct explanation of salts.
Martin v. Löwis [Mon, 26 Jul 2004 12:05:16 +0000 (12:05 +0000)]
Patch #997668: Correct explanation of salts.
Will backport to 2.3.

20 years agoExplain that most floats are actually integers. This is a common confusion
Tim Peters [Mon, 26 Jul 2004 05:12:01 +0000 (05:12 +0000)]
Explain that most floats are actually integers.  This is a common confusion
for people using floor(), ceil() and modf().

20 years agoTypo in new docs.
Tim Peters [Mon, 26 Jul 2004 04:58:50 +0000 (04:58 +0000)]
Typo in new docs.

20 years agoSF bugs 996748: os.environ documentation should indicate unreliability
Tim Peters [Mon, 26 Jul 2004 00:42:41 +0000 (00:42 +0000)]
SF bugs 996748:  os.environ documentation should indicate unreliability

Clarifed that os.environ is captured once; emphasized that it's better
to assign to os.environ than to call putenv() directly (the putenv()
docs said so, but the environ docs didn't).

20 years agoGenerate rc[_d].h after linking
Martin v. Löwis [Sun, 25 Jul 2004 09:49:26 +0000 (09:49 +0000)]
Generate rc[_d].h after linking

20 years agoSF bug 996392: math and cmath docs don't specify radians
Tim Peters [Sat, 24 Jul 2004 23:00:24 +0000 (23:00 +0000)]
SF bug 996392:  math and cmath docs don't specify radians

Major rewrite of the math module docs.  Slapped in "radians" where
appropriate; grouped the functions into reasonable categories; supplied
many more words to address common confusions about some of the subtler
issues.

20 years agoadded test for bug #996359.
Skip Montanaro [Sat, 24 Jul 2004 19:56:03 +0000 (19:56 +0000)]
added test for bug #996359.

20 years agoadd missing newlines to read/readline.
Skip Montanaro [Sat, 24 Jul 2004 19:54:44 +0000 (19:54 +0000)]
add missing newlines to read/readline.
fixes bug #996359.

20 years agoFactored out a method to determine the final installer filename.
Thomas Heller [Fri, 23 Jul 2004 19:58:28 +0000 (19:58 +0000)]
Factored out a method to determine the final installer filename.

20 years agoMake the distutils version number the same as the python version. It
Thomas Heller [Fri, 23 Jul 2004 19:47:32 +0000 (19:47 +0000)]
Make the distutils version number the same as the python version.  It
must be literally contained here, because it is still possible to
install this distutils in older Python versions.

20 years agobdist_wininst does now properly handle unicode strings or byte strings
Thomas Heller [Fri, 23 Jul 2004 19:44:29 +0000 (19:44 +0000)]
bdist_wininst does now properly handle unicode strings or byte strings
with umlauts in the author argument and others.

Fixes sf # 993943.

20 years agoAdd news item for u'%s' change.
Marc-André Lemburg [Fri, 23 Jul 2004 16:14:57 +0000 (16:14 +0000)]
Add news item for u'%s' change.

20 years agoLet u'%s' % obj try obj.__unicode__() first and fallback to obj.__str__().
Marc-André Lemburg [Fri, 23 Jul 2004 16:13:25 +0000 (16:13 +0000)]
Let u'%s' % obj try obj.__unicode__() first and fallback to obj.__str__().

20 years agoFix an uncorrect function prototype.
Thomas Heller [Fri, 23 Jul 2004 14:49:52 +0000 (14:49 +0000)]
Fix an uncorrect function prototype.
Will backport to release23-maint.

BTW: Shouldn't it read PY_LONG_LONG instead of 'long long' ?

20 years agoRemove copyright notices from gencodec.py output.
Marc-André Lemburg [Fri, 23 Jul 2004 10:09:57 +0000 (10:09 +0000)]
Remove copyright notices from gencodec.py output.

The script was originally used to create the initial set of
codecs (and these were (c) CNRI). While the script itself still
is (c) CNRI, the output certainly isn't anymore.

20 years agoWhitespace normalization.
Tim Peters [Fri, 23 Jul 2004 02:50:10 +0000 (02:50 +0000)]
Whitespace normalization.