]> granicus.if.org Git - python/log
python
23 years agoPyFile_WriteString(): change prototype so that the string arg is
Tim Peters [Wed, 28 Nov 2001 22:13:25 +0000 (22:13 +0000)]
PyFile_WriteString():  change prototype so that the string arg is
const char* instead of char*.  The change is conceptually correct, and
indirectly fixes a compiler wng introduced when somebody else innocently
passed a const char* to this function.

23 years agoMore sprintf -> PyOS_snprintf.
Tim Peters [Wed, 28 Nov 2001 22:07:30 +0000 (22:07 +0000)]
More sprintf -> PyOS_snprintf.

23 years agoUse PyOS_snprintf() instead of sprintf().
Jeremy Hylton [Wed, 28 Nov 2001 21:49:51 +0000 (21:49 +0000)]
Use PyOS_snprintf() instead of sprintf().

23 years agoUse PyOS_snprintf() at some cost even though it was correct before.
Jeremy Hylton [Wed, 28 Nov 2001 21:46:59 +0000 (21:46 +0000)]
Use PyOS_snprintf() at some cost even though it was correct before.

seterror() uses a char array and a pointer to the current position in
that array.  Use snprintf() and compute the amount of space left in
the buffer based on the current pointer position.

23 years agoUse PyOS_vsnprintf() and check its return value.
Jeremy Hylton [Wed, 28 Nov 2001 21:44:53 +0000 (21:44 +0000)]
Use PyOS_vsnprintf() and check its return value.

If it returns -1 (which indicates overflow on old Linux platforms and
perhaps on Windows) or size greater than buffer, write a message
indicating that the previous message was truncated.

23 years agoste_repr(): Conversion of sprintf() to PyOS_snprintf() for buffer
Barry Warsaw [Wed, 28 Nov 2001 21:36:28 +0000 (21:36 +0000)]
ste_repr(): Conversion of sprintf() to PyOS_snprintf() for buffer
overrun avoidance.

23 years agoaix_loaderror(): Conversion of sprintf() to PyOS_snprintf() for buffer
Barry Warsaw [Wed, 28 Nov 2001 21:35:49 +0000 (21:35 +0000)]
aix_loaderror(): Conversion of sprintf() to PyOS_snprintf() for buffer
overrun avoidance.

23 years agoReverting last change so we don't have to think about the assert macro
Barry Warsaw [Wed, 28 Nov 2001 21:34:34 +0000 (21:34 +0000)]
Reverting last change so we don't have to think about the assert macro
redefinition problem.

23 years agoUse strncpy() instead of sprintf() in calculate_path().
Jeremy Hylton [Wed, 28 Nov 2001 21:30:04 +0000 (21:30 +0000)]
Use strncpy() instead of sprintf() in calculate_path().

Also reformat calculate_path() using the standard format.

23 years agocode_repr(), com_addop_varname(), com_list_comprehension(),
Barry Warsaw [Wed, 28 Nov 2001 21:10:39 +0000 (21:10 +0000)]
code_repr(), com_addop_varname(), com_list_comprehension(),
com_arglist(), symtable_check_unoptimized(), symtable_params(),
symtable_global(), symtable_list_comprehension():

    Conversion of sprintf() to PyOS_snprintf() for buffer overrun
    avoidance.

23 years agoPyGrammar_LabelRepr(): Conversion of sprintf() to PyOS_snprintf() for
Barry Warsaw [Wed, 28 Nov 2001 21:04:25 +0000 (21:04 +0000)]
PyGrammar_LabelRepr(): Conversion of sprintf() to PyOS_snprintf() for
buffer overrun avoidance.

23 years agoPyWin_FindRegisteredModule(): Conversion of sprintf() to
Barry Warsaw [Wed, 28 Nov 2001 21:03:37 +0000 (21:03 +0000)]
PyWin_FindRegisteredModule(): Conversion of sprintf() to
PyOS_snprintf() for buffer overrun avoidance.

23 years agoweakref_repr(), proxy_repr(): Conversion of sprintf() to
Barry Warsaw [Wed, 28 Nov 2001 21:01:56 +0000 (21:01 +0000)]
weakref_repr(), proxy_repr(): Conversion of sprintf() to
PyOS_snprintf() for buffer overrun avoidance.

23 years agoformatfloat(), formatint(): Conversion of sprintf() to PyOS_snprintf()
Barry Warsaw [Wed, 28 Nov 2001 21:00:41 +0000 (21:00 +0000)]
formatfloat(), formatint(): Conversion of sprintf() to PyOS_snprintf()
for buffer overrun avoidance.

23 years agostructseq_new(): Conversion of sprintf() to PyOS_snprintf() for buffer
Barry Warsaw [Wed, 28 Nov 2001 20:56:44 +0000 (20:56 +0000)]
structseq_new(): Conversion of sprintf() to PyOS_snprintf() for buffer
overrun avoidance.

23 years agoPyInt_FromString(), int_repr(), int_oct(), int_hex(): Conversion of
Barry Warsaw [Wed, 28 Nov 2001 20:55:34 +0000 (20:55 +0000)]
PyInt_FromString(), int_repr(), int_oct(), int_hex(): Conversion of
sprintf() to PyOS_snprintf() for buffer overrun avoidance.

23 years agoPyFloat_FromString(): Conversion of sprintf() to PyOS_snprintf() for
Barry Warsaw [Wed, 28 Nov 2001 20:52:21 +0000 (20:52 +0000)]
PyFloat_FromString(): Conversion of sprintf() to PyOS_snprintf() for
buffer overrun avoidance.

23 years agocomplex_to_buf(), complex_subtype_from_c_complex(): Conversion of
Barry Warsaw [Wed, 28 Nov 2001 20:50:56 +0000 (20:50 +0000)]
complex_to_buf(), complex_subtype_from_c_complex(): Conversion of
sprintf() to PyOS_snprintf() for buffer overrun avoidance.

complex_print(), complex_repr(), complex_str(): Call complex_to_buf()
passing in sizeof(buf).

23 years agoUse PyOS_snprintf instead of sprintf.
Jeremy Hylton [Wed, 28 Nov 2001 20:42:20 +0000 (20:42 +0000)]
Use PyOS_snprintf instead of sprintf.

23 years agoUse PyOS_snprintf instead of sprintf.
Jeremy Hylton [Wed, 28 Nov 2001 20:37:25 +0000 (20:37 +0000)]
Use PyOS_snprintf instead of sprintf.

Also replace a switch statement with one case and a default to an
if/else.

23 years agoRepair a botched PyOS_snprintf conversion.
Tim Peters [Wed, 28 Nov 2001 20:32:57 +0000 (20:32 +0000)]
Repair a botched PyOS_snprintf conversion.

23 years agoUse PyOS_snprintf when possible.
Jeremy Hylton [Wed, 28 Nov 2001 20:29:22 +0000 (20:29 +0000)]
Use PyOS_snprintf when possible.

23 years agosprintf -> PyOS_snprintf in some "obviously safe" cases.
Tim Peters [Wed, 28 Nov 2001 20:27:42 +0000 (20:27 +0000)]
sprintf -> PyOS_snprintf in some "obviously safe" cases.
Also changed <>-style #includes to ""-style in some places where the
former didn't make sense.

23 years agoUse PyOS_snprintf instead of sprintf.
Jeremy Hylton [Wed, 28 Nov 2001 20:24:33 +0000 (20:24 +0000)]
Use PyOS_snprintf instead of sprintf.

Just being sure.  The old code looks like it was safe, but there's no
harm in double-checking.

23 years agoChecking in Zooko's version per SF patch #476866, plus my changes to
Guido van Rossum [Wed, 28 Nov 2001 19:41:45 +0000 (19:41 +0000)]
Checking in Zooko's version per SF patch #476866, plus my changes to
the usage docs: (a) align properly, (b) explain properly.

23 years agoRemoved preprocessor gimmick trying to force use of snprintf emulation
Tim Peters [Wed, 28 Nov 2001 16:51:49 +0000 (16:51 +0000)]
Removed preprocessor gimmick trying to force use of snprintf emulation
before 2.2b1.

23 years agoFix SF bug [ #476852 ] Some bad macros in abstract.h
Jeremy Hylton [Wed, 28 Nov 2001 16:20:07 +0000 (16:20 +0000)]
Fix SF bug [ #476852 ] Some bad macros in abstract.h

Change macros as requested by Guido

23 years agoAdding test for Unicode repr()-output.
Marc-André Lemburg [Wed, 28 Nov 2001 14:03:14 +0000 (14:03 +0000)]
Adding test for Unicode repr()-output.

23 years agoFix for bug #485951: repr diff between string and unicode.
Marc-André Lemburg [Wed, 28 Nov 2001 12:56:20 +0000 (12:56 +0000)]
Fix for bug #485951: repr diff between string and unicode.

23 years agoFixes for possible buffer overflows in sprintf() usages.
Marc-André Lemburg [Wed, 28 Nov 2001 11:47:00 +0000 (11:47 +0000)]
Fixes for possible buffer overflows in sprintf() usages.

23 years agoRe-arrange the modules in the "Internet Data Handling" chapter to try to
Fred Drake [Wed, 28 Nov 2001 07:50:45 +0000 (07:50 +0000)]
Re-arrange the modules in the "Internet Data Handling" chapter to try to
achieve a more sensible organization.

23 years agoClarify that on some systems, lockf() using LOCK_EX requires that the file
Fred Drake [Wed, 28 Nov 2001 07:48:32 +0000 (07:48 +0000)]
Clarify that on some systems, lockf() using LOCK_EX requires that the file
is opened for writing; this closes SF bug #485342.

Added notes that file objects are also accepted in the place of file
descriptors.

23 years agoAdd synopsis for the SimpleXMLRPCServer module; used in the chapter-level
Fred Drake [Wed, 28 Nov 2001 07:32:53 +0000 (07:32 +0000)]
Add synopsis for the SimpleXMLRPCServer module; used in the chapter-level
list of modules.

23 years agoClean up some markup cruft. A number of the macros that take no
Fred Drake [Wed, 28 Nov 2001 07:26:15 +0000 (07:26 +0000)]
Clean up some markup cruft.  A number of the macros that take no
parameters (like \UNIX) are commonly entered using an empty group to
separate the markup from a following inter-word space; this is not
needed when the next character is punctuation, or the markup is the
last thing in the enclosing group.  These cases were marked
inconsistently; the empty group is now *only* used when needed.

23 years ago__format(): Applied SF patch #482003 by Skip to fix multiline dict
Barry Warsaw [Wed, 28 Nov 2001 05:49:39 +0000 (05:49 +0000)]
__format(): Applied SF patch #482003 by Skip to fix multiline dict
output.

Patch includes additional test case test_basic_line_wrap().

This patch is a candidate for Python 2.1.2.

23 years agoFix docstring typo
Andrew M. Kuchling [Wed, 28 Nov 2001 04:28:31 +0000 (04:28 +0000)]
Fix docstring typo

23 years agoFix [ #484645 ] little bug in pycodegen.py
Jeremy Hylton [Tue, 27 Nov 2001 23:35:10 +0000 (23:35 +0000)]
Fix [ #484645 ] little bug in pycodegen.py

23 years agoSF bug #483469: crash on unbounded recursion in __del__.
Tim Peters [Tue, 27 Nov 2001 23:29:29 +0000 (23:29 +0000)]
SF bug #483469:  crash on unbounded recursion in __del__.
PyEval_EvalCodeEx():  increment tstate->recursion_depth around the
decref of the frame, because the C stack for this call is still in
use and the decref can lead to __del__ methods getting called.

While this gives tstate->recursion_depth a value proportional to the
depth of the C stack (instead of a small constant no matter how
deeply __del__s recurse), it's not enough to stop the reported crash
when using the default recursion limit on Windows.

Bugfix candidate.

23 years agoSF bug 485175: buffer overflow in traceback.c.
Tim Peters [Tue, 27 Nov 2001 20:30:42 +0000 (20:30 +0000)]
SF bug 485175:  buffer overflow in traceback.c.
Bugfix candidate.
tb_displayline():  the sprintf format was choking off the file name, but
used plain %s for the function name (which can be arbitrarily long).
Limit both to 500 chars max.

23 years agotest_formatdate(): Integrating Jack's 22b2 branch fix for Mac epoch:
Barry Warsaw [Tue, 27 Nov 2001 07:12:35 +0000 (07:12 +0000)]
test_formatdate(): Integrating Jack's 22b2 branch fix for Mac epoch:

    More changes to the formatdate epoch test: the Mac epoch is in
    localtime, so east of GMT it falls in 1903:-( Changed the test to
    obtain the epoch in both local time and GMT, and do the right
    thing in the comparisons. As a sanity measure also check that
    day/month is Jan 1.

23 years agoTypo, spotted by Fredrik Lundh.
Fred Drake [Mon, 26 Nov 2001 21:46:53 +0000 (21:46 +0000)]
Typo, spotted by Fredrik Lundh.

23 years agoTypo, spotted by Detlef Lannert.
Fred Drake [Mon, 26 Nov 2001 21:39:40 +0000 (21:39 +0000)]
Typo, spotted by Detlef Lannert.

23 years agoTk-related modules should no longer be listed here.
Fred Drake [Mon, 26 Nov 2001 21:38:50 +0000 (21:38 +0000)]
Tk-related modules should no longer be listed here.

23 years agoFix typo, extra markup constructs.
Fred Drake [Mon, 26 Nov 2001 21:30:36 +0000 (21:30 +0000)]
Fix typo, extra markup constructs.
This closes SF bug #485252.

23 years agoAdd documentation for the PyCell* APIs.
Fred Drake [Mon, 26 Nov 2001 21:29:17 +0000 (21:29 +0000)]
Add documentation for the PyCell* APIs.

23 years agoCorrectly create new-style classes in the examples
Andrew M. Kuchling [Mon, 26 Nov 2001 18:15:44 +0000 (18:15 +0000)]
Correctly create new-style classes in the examples
Mention change to _PyTuple_Resize

23 years agoSF patch 483059: Avoid use of eval() in random.py, from Finn Bock.
Tim Peters [Sun, 25 Nov 2001 21:12:43 +0000 (21:12 +0000)]
SF patch 483059: Avoid use of eval() in random.py, from Finn Bock.
_verify():  Pass in the values of globals insted of eval()ing their
names.  The use of eval() was obscure and unnecessary, and the patch
claimed random.py couldn't be used in Jython applets because of it.

23 years agoProperly set static options for tixBalloon and tixResizeHandle.
Martin v. Löwis [Sun, 25 Nov 2001 14:50:56 +0000 (14:50 +0000)]
Properly set static options for tixBalloon and tixResizeHandle.
Expose Tix.ResizeHandle.{detach_widget,hide,show}.
Update Tix demos.

23 years agoPatch #484847: Default to netscape.exe on OS/2.
Martin v. Löwis [Sun, 25 Nov 2001 14:35:58 +0000 (14:35 +0000)]
Patch #484847: Default to netscape.exe on OS/2.

23 years ago- Change all remaining assertions into verify() and vereq() calls.
Guido van Rossum [Sat, 24 Nov 2001 21:07:01 +0000 (21:07 +0000)]
- Change all remaining assertions into verify() and vereq() calls.

- Add tests for the recent fixes to copy_reg.py:
  __getstate__/__setstate__ and mixed inheritance from new+classic
  classes.

23 years ago_reduce():
Guido van Rossum [Sat, 24 Nov 2001 21:04:31 +0000 (21:04 +0000)]
_reduce():

  - Fix for SF bug #482752: __getstate__ & __setstate__ ignored (by Anon.)

    In fact, only __getstate__ isn't recognized.  This fixes that.

  - Separately, the test for base.__flags__ & _HEAPTYPE raised an
    AttributeError exception when a classic class was amongst the
    bases.  Fixed this with a hasattr() bandaid (classic classes never
    qualify as the "hard" base class anyway, which is what the code is
    trying to find).

23 years agoPyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few
Guido van Rossum [Sat, 24 Nov 2001 18:24:47 +0000 (18:24 +0000)]
PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few
confusing error messages.  If a new-style class has no sequence or
mapping behavior, attempting to use the indexing notation with a
non-integer key would complain that the sequence index must be an
integer, rather than complaining that the operation is not supported.

23 years agoMore typo fixes.
Barry Warsaw [Sat, 24 Nov 2001 16:56:56 +0000 (16:56 +0000)]
More typo fixes.

23 years agoDocstring typo fix.
Greg Ward [Sat, 24 Nov 2001 15:49:53 +0000 (15:49 +0000)]
Docstring typo fix.

23 years agoAdd hotshot to LIBSUBDIRS. Fixes #484642.
Martin v. Löwis [Sat, 24 Nov 2001 09:39:05 +0000 (09:39 +0000)]
Add hotshot to LIBSUBDIRS. Fixes #484642.

23 years agoCorrect typo. Fixes #484611.
Martin v. Löwis [Sat, 24 Nov 2001 09:31:44 +0000 (09:31 +0000)]
Correct typo. Fixes #484611.

23 years agoSupport bsddb 3.2. Fixes #483653.
Martin v. Löwis [Sat, 24 Nov 2001 09:28:42 +0000 (09:28 +0000)]
Support bsddb 3.2. Fixes #483653.

23 years agoRename get_referents to get_referrers. Fixes #483815.
Martin v. Löwis [Sat, 24 Nov 2001 09:24:51 +0000 (09:24 +0000)]
Rename get_referents to get_referrers. Fixes #483815.

23 years agofix for redundant empty parent window when invoked from idle shell window
Steven M. Gava [Wed, 21 Nov 2001 05:58:24 +0000 (05:58 +0000)]
fix for redundant empty parent window when invoked from idle shell window

23 years agoback in harness on new config system
Steven M. Gava [Wed, 21 Nov 2001 05:56:26 +0000 (05:56 +0000)]
back in harness on new config system

23 years agoFix for bug #438164: %-formatting using Unicode objects.
Marc-André Lemburg [Tue, 20 Nov 2001 15:18:49 +0000 (15:18 +0000)]
Fix for bug #438164: %-formatting using Unicode objects.

This patch also does away with an incompatibility between Jython
and CPython.

23 years agoFix for bug #480188: printing unicode objects
Marc-André Lemburg [Tue, 20 Nov 2001 15:17:25 +0000 (15:17 +0000)]
Fix for bug #480188: printing unicode objects

23 years agotest_formatdate(): Remove the unnecessary ldate calculation.
Barry Warsaw [Mon, 19 Nov 2001 18:38:42 +0000 (18:38 +0000)]
test_formatdate(): Remove the unnecessary ldate calculation.

test_formatdate_zoneoffsets() => test_formatdate_localtime(): Do the
sign corrected calculation of the zone offset.

23 years agoformatdate(): Jason Mastaler correctly points out that divmod with a
Barry Warsaw [Mon, 19 Nov 2001 18:36:43 +0000 (18:36 +0000)]
formatdate(): Jason Mastaler correctly points out that divmod with a
negative modulus won't return the right values.  So always do positive
modulus on an absolute value and twiddle the sign as appropriate after
the fact.

23 years agotest_formatdate(), test_formatdate_zoneoffsets(): Two changes. First,
Barry Warsaw [Mon, 19 Nov 2001 16:31:06 +0000 (16:31 +0000)]
test_formatdate(), test_formatdate_zoneoffsets(): Two changes.  First,
use the correct way to test for epoch, by looking at the year
component of gmtime(0).  Add clause for Unix epoch and Mac epoch (Tim,
what is Windows epoch?).

Also, get rid of the strptime() test, it was way too problematic given
that strptime() is missing on many platforms and issues with locales.
Instead, simply test that formatdate() gets the numeric timezone
calculation correct for the altzone and timezone.

23 years agoformatdate(): The calculation of the minutes part of the zone was
Barry Warsaw [Mon, 19 Nov 2001 16:28:07 +0000 (16:28 +0000)]
formatdate(): The calculation of the minutes part of the zone was
incorrect for "uneven" timezones.  This algorithm should work for even
timezones (e.g. America/New_York) and uneven timezones (e.g.
Australia/Adelaide and America/St_Johns).

Closes SF bug #483231.

23 years agoTest for negative buffer sizes. Fixes #482871.
Martin v. Löwis [Mon, 19 Nov 2001 10:41:26 +0000 (10:41 +0000)]
Test for negative buffer sizes. Fixes #482871.

23 years agoAvoid trailing blank lines in the output.
Fred Drake [Mon, 19 Nov 2001 05:28:29 +0000 (05:28 +0000)]
Avoid trailing blank lines in the output.

23 years agoAdjust input pre-processing so that a comment on the last line does not
Fred Drake [Mon, 19 Nov 2001 05:27:40 +0000 (05:27 +0000)]
Adjust input pre-processing so that a comment on the last line does not
break the processor; this will do the right thing.

23 years agoUpdate the platform notes for the CGIHTTPServer module; it works on more
Fred Drake [Mon, 19 Nov 2001 05:16:35 +0000 (05:16 +0000)]
Update the platform notes for the CGIHTTPServer module; it works on more
platforms now, and has since Python 2.0.
This closes SF bug #482943.

23 years agoAnother name...
Fred Drake [Mon, 19 Nov 2001 04:35:58 +0000 (04:35 +0000)]
Another name...

23 years agoFix the default value for feature_namespaces, per discussions on the XML-SIG
Fred Drake [Mon, 19 Nov 2001 04:34:50 +0000 (04:34 +0000)]
Fix the default value for feature_namespaces, per discussions on the XML-SIG
mailing list.  This causes the docs to match the default implementation.

23 years agotest_formatdate(): A test that has a mild hope of working on Mac,
Barry Warsaw [Sun, 18 Nov 2001 23:15:58 +0000 (23:15 +0000)]
test_formatdate(): A test that has a mild hope of working on Mac,
which has a different epoch than *nix.  Jack may need to twiddle the
details.

23 years agoPaul Rubin reminds me that of course a class's constructor /could/ get
Barry Warsaw [Sun, 18 Nov 2001 16:24:01 +0000 (16:24 +0000)]
Paul Rubin reminds me that of course a class's constructor /could/ get
called, if the pickler found a __getinitargs__() method.

23 years agoa whole bunch of OSX tweaks
Just van Rossum [Sun, 18 Nov 2001 14:12:43 +0000 (14:12 +0000)]
a whole bunch of OSX tweaks

23 years agoClarified a couple of issues for the startElement*() handlers:
Fred Drake [Sun, 18 Nov 2001 04:58:28 +0000 (04:58 +0000)]
Clarified a couple of issues for the startElement*() handlers:
- the attrs value may be re-used by the parser, so the implementation
  cannot rely on owning the object.
- an element with no namespace encountered in namespace mode will have a URI
  of None, not "" (startElementNS() only).

Fixed a couple of minor markup issues as well.

23 years agoRelatively large expansion of the docs for gc.garbage.
Tim Peters [Sun, 18 Nov 2001 04:51:17 +0000 (04:51 +0000)]
Relatively large expansion of the docs for gc.garbage.

23 years agoSince the MAGIC number scheme is going to break on January 1st, document
Tim Peters [Sun, 18 Nov 2001 04:06:29 +0000 (04:06 +0000)]
Since the MAGIC number scheme is going to break on January 1st, document
what it is more carefully and point out some of the subtleties.

23 years agoassert.h was not always included by Python.h; make sure we import it for
Fred Drake [Sun, 18 Nov 2001 02:36:07 +0000 (02:36 +0000)]
assert.h was not always included by Python.h; make sure we import it for
older versions.  (Thanks to Martijn Faassen.)

23 years agoExhibit good form in C code: always provide docstrings in method tables, and
Fred Drake [Sat, 17 Nov 2001 06:50:42 +0000 (06:50 +0000)]
Exhibit good form in C code: always provide docstrings in method tables, and
always fill in all slots of table entries.
Fixed a few minor markup errors.

23 years agoAdd omitted word for clarity.
Fred Drake [Sat, 17 Nov 2001 06:39:18 +0000 (06:39 +0000)]
Add omitted word for clarity.

23 years agoUpdate to use more modern calling conventions; also avoid a magic number
Fred Drake [Sat, 17 Nov 2001 06:30:20 +0000 (06:30 +0000)]
Update to use more modern calling conventions; also avoid a magic number
in the function table.  Add a docstring for the function as well, since
examples should show good form.

23 years agoBump the version number; used to identify the Python runtime we link to.
Fred Drake [Sat, 17 Nov 2001 06:28:08 +0000 (06:28 +0000)]
Bump the version number; used to identify the Python runtime we link to.

23 years agoUpdate Windows installer for 2.2c1.
Tim Peters [Sat, 17 Nov 2001 00:24:45 +0000 (00:24 +0000)]
Update Windows installer for 2.2c1.

23 years agoAdd skeleton for 2.2c1 news.
Tim Peters [Sat, 17 Nov 2001 00:21:57 +0000 (00:21 +0000)]
Add skeleton for 2.2c1 news.

23 years agoToughen up the security warnings a bit.
Barry Warsaw [Fri, 16 Nov 2001 22:28:17 +0000 (22:28 +0000)]
Toughen up the security warnings a bit.

23 years agoAdd a clarification that the email package always deals in native line
Barry Warsaw [Fri, 16 Nov 2001 22:16:04 +0000 (22:16 +0000)]
Add a clarification that the email package always deals in native line
endings, and that it is smtplib's job to convert those to RFC 2821
line endings when sending the message.

23 years agoBumping version number.
Barry Warsaw [Fri, 16 Nov 2001 21:12:25 +0000 (21:12 +0000)]
Bumping version number.

23 years agoPost-release bumps. Do *NOT* merge into the 2.2b2 branch.
Fred Drake [Fri, 16 Nov 2001 17:34:38 +0000 (17:34 +0000)]
Post-release bumps.  Do *NOT* merge into the 2.2b2 branch.

23 years agoMerged in NEWS changes from the r22b2 branch.
Barry Warsaw [Fri, 16 Nov 2001 16:17:27 +0000 (16:17 +0000)]
Merged in NEWS changes from the r22b2 branch.

23 years agoClean up some markup a little bit more. Make this work with the PDF format,
Fred Drake [Fri, 16 Nov 2001 06:02:55 +0000 (06:02 +0000)]
Clean up some markup a little bit more.  Make this work with the PDF format,
which is a little more strict than the other formats on some things (fixable,
but not tonight).

23 years agoDocument the urlsplit() and urlunsplit() functions.
Fred Drake [Fri, 16 Nov 2001 03:22:15 +0000 (03:22 +0000)]
Document the urlsplit() and urlunsplit() functions.

23 years agoFix parsing of parameters from a URL; urlparse() did not check that it only
Fred Drake [Fri, 16 Nov 2001 02:52:57 +0000 (02:52 +0000)]
Fix parsing of parameters from a URL; urlparse() did not check that it only
split parameters from the last path segment.  Introduces two new functions,
urlsplit() and urlunsplit(), that do the simpler job of splitting the URL
without monkeying around with the parameters field, since that was not being
handled properly.
This closes bug #478038.

23 years agoSwitched a couple of sections around.
Fred Drake [Fri, 16 Nov 2001 01:05:27 +0000 (01:05 +0000)]
Switched a couple of sections around.
Cleaned up some markup nits.
Add a few more of the Tk-related modules to the list of modules.

23 years agoA few minor updates to make it clear(er) that pickle should be used
Barry Warsaw [Thu, 15 Nov 2001 23:55:12 +0000 (23:55 +0000)]
A few minor updates to make it clear(er) that pickle should be used
instead of marshal for object serialization.

Fred, please proofread!

23 years agoA change to sync with pickle.py:
Barry Warsaw [Thu, 15 Nov 2001 23:45:26 +0000 (23:45 +0000)]
A change to sync with pickle.py:

find_class(): We no longer mask all exceptions[1] by transforming them
into SystemError.  The latter is definitely not the right thing to do,
so we let any exceptions that occur in the PyObject_GetAttr() call to
simply propagate up if they occur.

[1] Note that pickle only masked ImportError, KeyError, and
AttributeError, but cPickle masked all exceptions.

23 years agoTwo changes:
Barry Warsaw [Thu, 15 Nov 2001 23:42:58 +0000 (23:42 +0000)]
Two changes:

load_inst(): Implement the security hook that cPickle already had.
When unpickling callables which are not classes, we look to see if the
object has an attribute __safe_for_unpickling__.  If this exists and
has a true value, then we can call it to create the unpickled object.
Otherwise we raise an UnpicklingError.

find_class(): We no longer mask ImportError, KeyError, and
AttributeError by transforming them into SystemError.  The latter is
definitely not the right thing to do, so we let the former three
exceptions simply propagate up if they occur, i.e. we remove the
try/except!

23 years agoA massive rewrite affecting both the pickle and cPickle module
Barry Warsaw [Thu, 15 Nov 2001 23:39:07 +0000 (23:39 +0000)]
A massive rewrite affecting both the pickle and cPickle module
documentation.  This addresses previously undocumented parts of the
public interfaces, the differences between pickle and cPickle,
security concerns, and on and on.

Fred please proofread!

23 years agoMinor updates to add more pointers to the pickle documentation, and to
Barry Warsaw [Thu, 15 Nov 2001 23:37:26 +0000 (23:37 +0000)]
Minor updates to add more pointers to the pickle documentation, and to
clarify some of the interface.

23 years agoThe turtle docs will be moving to another location in the Tkinter chapter.
Fred Drake [Thu, 15 Nov 2001 22:10:46 +0000 (22:10 +0000)]
The turtle docs will be moving to another location in the Tkinter chapter.