]> granicus.if.org Git - python/log
python
22 years agoNew private API functions _PyFloat_{Pack,Unpack}(4,8}. This is a
Tim Peters [Thu, 20 Mar 2003 20:53:32 +0000 (20:53 +0000)]
New private API functions _PyFloat_{Pack,Unpack}(4,8}.  This is a
refactoring to get all the duplicates of this delicate code out of the
cPickle and struct modules.

22 years agoSF bug 705836: struct.pack of floats in non-native endian order
Tim Peters [Thu, 20 Mar 2003 18:32:13 +0000 (18:32 +0000)]
SF bug 705836: struct.pack of floats in non-native endian order

pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.

Bugfix candidate, but I already backported this to 2.2.

In 2.3, this code remains in severe need of refactoring.

22 years ago- apply SF patch #700798: fixes and cleanups for descriptor info
Fred Drake [Thu, 20 Mar 2003 18:17:16 +0000 (18:17 +0000)]
- apply SF patch #700798: fixes and cleanups for descriptor info
- use a TeX "tie" to prevent word-wrapping in "section x.y"-like text

22 years agoadd descriptions of {get,set}defaulttimeout.
Skip Montanaro [Thu, 20 Mar 2003 17:58:12 +0000 (17:58 +0000)]
add descriptions of {get,set}defaulttimeout.

22 years ago- explain what a UNC path is in the makedirs() description, since
Fred Drake [Thu, 20 Mar 2003 17:39:38 +0000 (17:39 +0000)]
- explain what a UNC path is in the makedirs() description, since
  they're actually mentioned there
- remove some extraneous paragraph separations
- \versionadded --> \versionchanged in one place

22 years agoSkip the ioctl test if we can't open /dev/tty. This happens on
Neal Norwitz [Thu, 20 Mar 2003 04:33:16 +0000 (04:33 +0000)]
Skip the ioctl test if we can't open /dev/tty.  This happens on
Solaris (and probably other Unixes) when run without a terminal
(eg, from cron or at).

22 years agoGetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by
Jack Jansen [Wed, 19 Mar 2003 22:51:42 +0000 (22:51 +0000)]
GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by
Just.

22 years agoFixed SF bug #663074. The codec system was using global static
Gustavo Niemeyer [Wed, 19 Mar 2003 00:35:36 +0000 (00:35 +0000)]
Fixed SF bug #663074. The codec system was using global static
variables to store internal data. As a result, any atempts to use the
unicode system with multiple active interpreters, or successive
interpreter executions, would fail.

Now that information is stored into members of the PyInterpreterState
structure.

22 years agoreplace obsolete 'exceptions' implicit by 'warnings'
Just van Rossum [Tue, 18 Mar 2003 18:48:17 +0000 (18:48 +0000)]
replace obsolete 'exceptions' implicit by 'warnings'

22 years agoFix SF bug #697556, test_posix fails: getlogin
Neal Norwitz [Tue, 18 Mar 2003 13:30:14 +0000 (13:30 +0000)]
Fix SF bug #697556, test_posix fails: getlogin

getlogin() can fail for too many reasons, so remove the test

22 years ago_encode_chunks(): Throw out empty chunks.
Barry Warsaw [Mon, 17 Mar 2003 20:36:20 +0000 (20:36 +0000)]
_encode_chunks(): Throw out empty chunks.

22 years agotest_long_lines_with_different_header(): Another test from Jason.
Barry Warsaw [Mon, 17 Mar 2003 20:35:14 +0000 (20:35 +0000)]
test_long_lines_with_different_header(): Another test from Jason.

22 years agoRenamed PyObject_GenericGetIter to PyObject_SelfIter
Raymond Hettinger [Mon, 17 Mar 2003 19:46:11 +0000 (19:46 +0000)]
Renamed PyObject_GenericGetIter to PyObject_SelfIter
to more accurately describe what the function does.

Suggested by Thomas Wouters.

22 years agotest_getaddresses_nasty(): A test for mimelib SF bug # 697641.
Barry Warsaw [Mon, 17 Mar 2003 18:36:37 +0000 (18:36 +0000)]
test_getaddresses_nasty(): A test for mimelib SF bug # 697641.

22 years agogetaddrlist(): Make sure this consumes all the data, and if there is
Barry Warsaw [Mon, 17 Mar 2003 18:35:42 +0000 (18:35 +0000)]
getaddrlist(): Make sure this consumes all the data, and if there is
no address there (perhaps because of invalid characters, it appends
('', '') to the result set.

Closes mimelib SF bug # 697641.

22 years agoTest for UnicodeError instead of ImportError to determine whether
Martin v. Löwis [Mon, 17 Mar 2003 18:30:15 +0000 (18:30 +0000)]
Test for UnicodeError instead of ImportError to determine whether
the test file name can be encoded.

22 years agoGet rid of Mac.pth: plat-mac is now added through the normal mechanism.
Jack Jansen [Mon, 17 Mar 2003 15:45:38 +0000 (15:45 +0000)]
Get rid of Mac.pth: plat-mac is now added through the normal mechanism.

22 years agoAdded a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen [Mon, 17 Mar 2003 15:44:10 +0000 (15:44 +0000)]
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
for specific platforms. Use this to add plat-mac and
plat-mac/lib-scriptpackages on MacOSX. Also tested for not having adverse
effects on Linux, and I think this code isn't used on Windows anyway.

Fixes #661521.

22 years agoAdd Hye-Shik Chang for SF patch/bugreport #703471.
Thomas Wouters [Mon, 17 Mar 2003 11:34:01 +0000 (11:34 +0000)]
Add Hye-Shik Chang for SF patch/bugreport #703471.

22 years agobinascii_a2b_base64: Properly return an empty string if the input was all
Thomas Wouters [Mon, 17 Mar 2003 11:24:29 +0000 (11:24 +0000)]
binascii_a2b_base64: Properly return an empty string if the input was all
    invalid, rather than returning a string of random garbage of the
    estimated result length. Closes SF patch #703471 by Hye-Shik Chang.

Will backport to 2.2-maint (consider it done.)

22 years agoCapturing the exit status for the build process didn't work. Using
Jack Jansen [Mon, 17 Mar 2003 10:54:41 +0000 (10:54 +0000)]
Capturing the exit status for the build process didn't work. Using
popen2.Popen4() makes it work. Fixes #702180.

22 years agoCreated PyObject_GenericGetIter().
Raymond Hettinger [Mon, 17 Mar 2003 08:35:49 +0000 (08:35 +0000)]
Created PyObject_GenericGetIter().
Factors out the common case of returning self.

22 years agoCreated PyObject_GenericGetIter().
Raymond Hettinger [Mon, 17 Mar 2003 08:24:35 +0000 (08:24 +0000)]
Created PyObject_GenericGetIter().
Factors out the common case of returning self.

22 years agoThe MacPython introductory help is now called MacPython Help, and the
Jack Jansen [Sun, 16 Mar 2003 22:09:22 +0000 (22:09 +0000)]
The MacPython introductory help is now called MacPython Help, and the
optional full documentation Python Documentation.

22 years ago- Don't ask for bring-to-front when quitting through an appleevent.
Jack Jansen [Sun, 16 Mar 2003 21:04:50 +0000 (21:04 +0000)]
- Don't ask for bring-to-front when quitting through an appleevent.
- Changed checkbox labels as suggested by Kevin Ollivier.

22 years agoLots of textual changes suggested by Matthew Moelter.
Jack Jansen [Sun, 16 Mar 2003 20:41:58 +0000 (20:41 +0000)]
Lots of textual changes suggested by Matthew Moelter.

22 years agoEliminate data dependency in predict macro.
Raymond Hettinger [Sun, 16 Mar 2003 20:14:44 +0000 (20:14 +0000)]
Eliminate data dependency in predict macro.
Added two predictions:
  GET_ITER --> FOR_ITER
  FOR_ITER --> STORE_FAST or UNPACK_SEQUENCE

Improves timings on pybench and timeit.py. Pystone results are neutral.

22 years agoFix comment and whitespace.
Raymond Hettinger [Sun, 16 Mar 2003 15:41:11 +0000 (15:41 +0000)]
Fix comment and whitespace.

22 years agoIntroduced macros for a simple opcode prediction protocol.
Raymond Hettinger [Sun, 16 Mar 2003 03:11:04 +0000 (03:11 +0000)]
Introduced macros for a simple opcode prediction protocol.

Applied to common cases:
    COMPARE_OP is often followed by a JUMP_IF.
    JUMP_IF is usually followed by POP_TOP.

Shows improved timings on PyStone, PyBench, and specific tests
using timeit.py:
    python timeit.py -s "x=1" "if x==1: pass"
    python timeit.py -s "x=1" "if x==2: pass"
    python timeit.py -s "x=1" "if x: pass"
    python timeit.py -s "x=100" "while x!=1: x-=1"

Potential future candidates:
    GET_ITER predicts FOR_ITER
    FOR_ITER predicts STORE_FAST or UNPACK_SEQUENCE

Also, applied missing goto fast_next_opcode to DUP_TOPX.

22 years agoChange the default number of repetitions to 3, both in the Timer class
Guido van Rossum [Sat, 15 Mar 2003 12:25:00 +0000 (12:25 +0000)]
Change the default number of repetitions to 3, both in the Timer class
(from 10) and in main() (from 1).

Add a -v option that shows the raw times.  Repeating it cranks up the
display precision.

Always use the "best of N" form of output.

22 years agoIf time.tzset doesn't exist, don't test it.
Guido van Rossum [Sat, 15 Mar 2003 12:01:52 +0000 (12:01 +0000)]
If time.tzset doesn't exist, don't test it.

22 years ago- New function time.tzset() provides access to the C library tzet()
Guido van Rossum [Fri, 14 Mar 2003 21:51:36 +0000 (21:51 +0000)]
- New function time.tzset() provides access to the C library tzet()
  function, if supported.  (SF patch #675422, by Stuart Bishop.)

22 years agoImplement some recommendations from Raymond H:
Guido van Rossum [Fri, 14 Mar 2003 17:21:00 +0000 (17:21 +0000)]
Implement some recommendations from Raymond H:

- Make all local variables in the template start with an underscore,
  to prevent name conflicts with the timed code.

- Added a method to print a traceback that shows source lines from the
  expanded template.

- Use that method in main().

22 years agoAccept commas in unquoted attribute values.
Fred Drake [Fri, 14 Mar 2003 16:21:57 +0000 (16:21 +0000)]
Accept commas in unquoted attribute values.
This closes SF patch #669683.

22 years agoSF patch #701907: More use of fast_next_opcode
Raymond Hettinger [Fri, 14 Mar 2003 01:37:42 +0000 (01:37 +0000)]
SF patch #701907: More use of fast_next_opcode

My previous patches should have used fast_next_opcode
in a few places instead of continue.

Also, applied one PyInt_AS_LONG macro in a place where
the type had already been checked.

22 years agoTake out my (long since disabled) POSIX signal mask handling code.
Michael W. Hudson [Thu, 13 Mar 2003 13:56:53 +0000 (13:56 +0000)]
Take out my (long since disabled) POSIX signal mask handling code.

I'm not going to have the time or energy to get this working x-platform
-- anyone who does is welcome to the code!

22 years agoMove setting of ioready 'wait' earlier in call chain, to
Kurt B. Kaiser [Wed, 12 Mar 2003 20:52:00 +0000 (20:52 +0000)]
Move setting of ioready 'wait' earlier in call chain, to
rpc.SocketIO.main() and asyncreturn().  Improve comment.

22 years agoFilter out the depracation warning for macfs.
Jack Jansen [Wed, 12 Mar 2003 13:47:39 +0000 (13:47 +0000)]
Filter out the depracation warning for macfs.

22 years agoSF bug #699237: Tutorial uses omitted slice indices before explaining them
Raymond Hettinger [Wed, 12 Mar 2003 04:46:52 +0000 (04:46 +0000)]
SF bug #699237: Tutorial uses omitted slice indices before explaining them

Moved up the explanation of slice default arguments.

22 years agoSF bug #699934: Obscure error message
Raymond Hettinger [Wed, 12 Mar 2003 04:25:42 +0000 (04:25 +0000)]
SF bug #699934: Obscure error message

Clarify error message for mro conflicts.

22 years agoUpdate the package version number
Barry Warsaw [Wed, 12 Mar 2003 03:43:09 +0000 (03:43 +0000)]
Update the package version number

22 years agotest_whitespace_eater_unicode(): Make this test Python 2.1 compatible.
Barry Warsaw [Wed, 12 Mar 2003 03:14:11 +0000 (03:14 +0000)]
test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.

22 years agoPython 2.1 doesn't have True and False
Barry Warsaw [Wed, 12 Mar 2003 02:54:17 +0000 (02:54 +0000)]
Python 2.1 doesn't have True and False

22 years agoAdd a simple Apple Help book to the framework.
Jack Jansen [Tue, 11 Mar 2003 23:07:08 +0000 (23:07 +0000)]
Add a simple Apple Help book to the framework.

22 years agoAdding MacPython online help. Only the basics are installed, with a
Jack Jansen [Tue, 11 Mar 2003 22:59:26 +0000 (22:59 +0000)]
Adding MacPython online help. Only the basics are installed, with a
placeholder for the full documentation (pointing to the online docs
and explaining you can also install them locally to make them
searchable, etc).

22 years agoM rpc.py
Kurt B. Kaiser [Tue, 11 Mar 2003 22:55:56 +0000 (22:55 +0000)]
M rpc.py
M run.py
1. Clarify that rpc.SocketIO._getresponse() currently blocks on socket.
2. Improve exception handling in subprocess when GUI terminates abruptly.

22 years agoThis file was terribly outdated. The example is still silly (and won't
Jack Jansen [Tue, 11 Mar 2003 21:50:21 +0000 (21:50 +0000)]
This file was terribly outdated. The example is still silly (and won't
work), but at least the rest of the text is okay now.

22 years agoAllow unicode pathnames where FSRefs are expected. Fixes 696253.
Jack Jansen [Tue, 11 Mar 2003 21:48:57 +0000 (21:48 +0000)]
Allow unicode pathnames where FSRefs are expected. Fixes 696253.

22 years agoFix spelling.
Raymond Hettinger [Tue, 11 Mar 2003 21:43:55 +0000 (21:43 +0000)]
Fix spelling.

22 years agoOpen with O_NONBLOCK to avoid hanging on open().
Greg Ward [Tue, 11 Mar 2003 16:53:13 +0000 (16:53 +0000)]
Open with O_NONBLOCK to avoid hanging on open().

22 years agoAdd 'audio' resource.
Guido van Rossum [Tue, 11 Mar 2003 14:46:48 +0000 (14:46 +0000)]
Add 'audio' resource.

ALERT! A month ago or so I made test_ossaudiodev.py require the
'audio' resource, but I didn't make the necessary changes to
regrtest.py.  This means that *nobody* has been testing the oss module
all that time!

22 years agoPatch by Andrew Straw: use urllib2 so proxie access works.
Jack Jansen [Tue, 11 Mar 2003 14:37:19 +0000 (14:37 +0000)]
Patch by Andrew Straw: use urllib2 so proxie access works.

22 years agoAdjust tests for no newline appending to MIMEText.__init__()'s _text
Barry Warsaw [Tue, 11 Mar 2003 05:10:46 +0000 (05:10 +0000)]
Adjust tests for no newline appending to MIMEText.__init__()'s _text
argument.

22 years agobeta 1
Barry Warsaw [Tue, 11 Mar 2003 05:05:21 +0000 (05:05 +0000)]
beta 1

22 years agoAdjust tests for no newline appending to MIMEText.__init__()'s _text
Barry Warsaw [Tue, 11 Mar 2003 05:04:54 +0000 (05:04 +0000)]
Adjust tests for no newline appending to MIMEText.__init__()'s _text
argument.

22 years ago__init__(): Don't add a newline to _text if it doesn't already end in
Barry Warsaw [Tue, 11 Mar 2003 05:04:09 +0000 (05:04 +0000)]
__init__(): Don't add a newline to _text if it doesn't already end in
one.  Possibly controversial.

22 years agoFor email 2.5b1, we no longer add a trailing newline to
Barry Warsaw [Tue, 11 Mar 2003 05:03:25 +0000 (05:03 +0000)]
For email 2.5b1, we no longer add a trailing newline to
MIMEText.__init__()'s _text argument if it doesn't already end in a
newline.  This may be controversial.

22 years agobody_line_iterator(): Accept optional decode argument, pass through to
Barry Warsaw [Tue, 11 Mar 2003 04:41:35 +0000 (04:41 +0000)]
body_line_iterator(): Accept optional decode argument, pass through to
Message.get_payload().

22 years agobody_line_iterator() now takes a decode argument.
Barry Warsaw [Tue, 11 Mar 2003 04:40:14 +0000 (04:40 +0000)]
body_line_iterator() now takes a decode argument.

22 years agoget_payload(): Teach this about various uunencoded
Barry Warsaw [Tue, 11 Mar 2003 04:33:30 +0000 (04:33 +0000)]
get_payload(): Teach this about various uunencoded
Content-Transfer-Encodings

22 years agotest_get_decoded_uu_payload(): A new test for
Barry Warsaw [Tue, 11 Mar 2003 04:31:37 +0000 (04:31 +0000)]
test_get_decoded_uu_payload(): A new test for
Content-Transfer-Encoding: x-uuencode

22 years agoM PyShell.py
Kurt B. Kaiser [Mon, 10 Mar 2003 20:42:24 +0000 (20:42 +0000)]
M PyShell.py
M rpc.py
Improve exception handing if peer process has terminated.

22 years agoA interruptmodule.c
Kurt B. Kaiser [Mon, 10 Mar 2003 20:41:07 +0000 (20:41 +0000)]
A interruptmodule.c
M setup.py
Implements an interrupt extension module which allows a subthread
to raise an interrupt in the main thread.

22 years agospecialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
Barry Warsaw [Mon, 10 Mar 2003 19:20:18 +0000 (19:20 +0000)]
specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
that backslashes must be escaped in character sets.

22 years agotest_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.
Barry Warsaw [Mon, 10 Mar 2003 19:18:34 +0000 (19:18 +0000)]
test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.

22 years ago_bdecode(): Remove redundant check.
Barry Warsaw [Mon, 10 Mar 2003 17:36:04 +0000 (17:36 +0000)]
_bdecode(): Remove redundant check.

22 years agoFix base class
Barry Warsaw [Mon, 10 Mar 2003 17:00:43 +0000 (17:00 +0000)]
Fix base class

22 years agoUse ndiffAssertEqual in a couple of places for better error reporting.
Barry Warsaw [Mon, 10 Mar 2003 16:59:34 +0000 (16:59 +0000)]
Use ndiffAssertEqual in a couple of places for better error reporting.

22 years agoDescribe what happens when decode=True and the payload has bogus
Barry Warsaw [Mon, 10 Mar 2003 16:13:50 +0000 (16:13 +0000)]
Describe what happens when decode=True and the payload has bogus
base64 data.

22 years agoget_payload(): If we get a low-level binascii.Error when base64
Barry Warsaw [Mon, 10 Mar 2003 16:13:14 +0000 (16:13 +0000)]
get_payload(): If we get a low-level binascii.Error when base64
decoding the payload, just return it as-is.

22 years agotest_broken_base64_payload(): Test for crash in low-level binascii
Barry Warsaw [Mon, 10 Mar 2003 16:09:51 +0000 (16:09 +0000)]
test_broken_base64_payload(): Test for crash in low-level binascii
module when decoding a message with broken base64.

22 years agoPatch #700839: Fix bugs in the plural handling.
Martin v. Löwis [Mon, 10 Mar 2003 16:01:43 +0000 (16:01 +0000)]
Patch #700839: Fix bugs in the plural handling.

22 years ago[Patch #649762] Fix for asynchat endless loop
Andrew M. Kuchling [Mon, 10 Mar 2003 15:16:54 +0000 (15:16 +0000)]
[Patch #649762] Fix for asynchat endless loop
When the null string is used as the terminator, it used to be the same
as None, meaning "collect all the data".  In the current code, however, it
falls into an endless loop; this change reverts to the old behavior.

22 years ago_split_ascii() [method and function]: Don't join the lines just to
Barry Warsaw [Mon, 10 Mar 2003 15:14:08 +0000 (15:14 +0000)]
_split_ascii() [method and function]: Don't join the lines just to
split them again.  Simply return them as chunk lists.

_encode_chunks(): Don't add more folding whitespace than necessary.

22 years agoUse isinstance() instead of type comparison
Andrew M. Kuchling [Mon, 10 Mar 2003 15:12:00 +0000 (15:12 +0000)]
Use isinstance() instead of type comparison

22 years agotest_another_long_multiline_header(): Yet another formatting test.
Barry Warsaw [Mon, 10 Mar 2003 15:11:29 +0000 (15:11 +0000)]
test_another_long_multiline_header(): Yet another formatting test.

22 years agoopenmixer()'s 'mode' parameter has been removed.
Greg Ward [Mon, 10 Mar 2003 03:18:19 +0000 (03:18 +0000)]
openmixer()'s 'mode' parameter has been removed.

22 years ago<sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include
Greg Ward [Mon, 10 Mar 2003 03:17:06 +0000 (03:17 +0000)]
<sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include
it instead of the OS-specific <linux/soundcard.h> or <machine/soundcard.h>.

Mixers devices have an ioctl-only interface, no read/write -- so the
flags passed to open() don't really matter.  Thus, drop the 'mode'
parameter to openmixer() (ie. second arg to newossmixerobject()) and
always open mixers with O_RDWR.

22 years agoExpand description of ossaudiodev.error exception.
Greg Ward [Mon, 10 Mar 2003 03:05:21 +0000 (03:05 +0000)]
Expand description of ossaudiodev.error exception.
Improve descriptions of open(), openmixer().

22 years agoRewrite intro paragraphs and add a "See also" box for the link to the
Greg Ward [Mon, 10 Mar 2003 02:09:51 +0000 (02:09 +0000)]
Rewrite intro paragraphs and add a "See also" box for the link to the
official OSS docs.

Markup fixes: change \code{} variously to \function{}, \method{}, or
\constant{} as appropriate.

22 years agoFix two unformatted lists: one is now an 'enumerate' environment, the
Greg Ward [Mon, 10 Mar 2003 00:24:42 +0000 (00:24 +0000)]
Fix two unformatted lists: one is now an 'enumerate' environment, the
other a 'tableii'.

Formatting/typo fix.

22 years agoAdd libossaudiodev.tex.
Greg Ward [Mon, 10 Mar 2003 00:07:14 +0000 (00:07 +0000)]
Add libossaudiodev.tex.

22 years agoWrap all paragraphs to 72 columns.
Greg Ward [Sun, 9 Mar 2003 23:57:34 +0000 (23:57 +0000)]
Wrap all paragraphs to 72 columns.
Two spaces between sentences.
Fix em-dashes -- should be "---" not " - ".
Spelling fix.

22 years agoDocumentation for the ossaudiodev module.
Greg Ward [Sun, 9 Mar 2003 23:34:52 +0000 (23:34 +0000)]
Documentation for the ossaudiodev module.

Initial revision supplied by Nicholas FitzRoy-Dale <wzdd@lardcave.net>
(emailed to me [gward@python.net] 2003-03-08 23:37 +1100).

22 years agoSF patch #691928: Use datetime in _strptime
Raymond Hettinger [Sun, 9 Mar 2003 07:44:42 +0000 (07:44 +0000)]
SF patch #691928: Use datetime in _strptime
Contributed by Brett Cannon.

To prevent code duplication, I patched _strptime to use datetime's date
object to do Julian day, Gregorian, and day of the week calculations.

Patch also includes new regression tests to test results and the
calculation gets triggered.

Very minor comment changes and the contact email are also changed.

22 years agoSf patch #700047: unicode object leaks refcount on resizing
Raymond Hettinger [Sun, 9 Mar 2003 07:30:43 +0000 (07:30 +0000)]
Sf patch #700047: unicode object leaks refcount on resizing
Contributed by Hye-Shik Chang.

22 years agoAdd contributor name.
Raymond Hettinger [Sun, 9 Mar 2003 07:19:38 +0000 (07:19 +0000)]
Add contributor name.

22 years agoSF patch #667730: More DictMixin
Raymond Hettinger [Sun, 9 Mar 2003 07:05:43 +0000 (07:05 +0000)]
SF patch #667730: More DictMixin

* Adds missing pop() methods to weakref.py
* Expands test suite to broaden coverage of objects with
  a mapping interface.

Contributed by Sebastien Keim.

22 years agoSF 698520: Iterator for urllib.URLOpener
Raymond Hettinger [Sun, 9 Mar 2003 05:33:33 +0000 (05:33 +0000)]
SF 698520:  Iterator for urllib.URLOpener
Contributed by Brett Cannon.

22 years ago[ 684677 ] Allow freeze to exclude implicits
Just van Rossum [Sat, 8 Mar 2003 19:50:38 +0000 (19:50 +0000)]
[ 684677 ] Allow freeze to exclude implicits

22 years agoSkip the test if TESTFN_ENCODING is None. Fixes #699386.
Martin v. Löwis [Sat, 8 Mar 2003 10:25:31 +0000 (10:25 +0000)]
Skip the test if TESTFN_ENCODING is None. Fixes #699386.

22 years ago_split_ascii(): lstrip the individual lines in the ascii split lines,
Barry Warsaw [Fri, 7 Mar 2003 23:24:34 +0000 (23:24 +0000)]
_split_ascii(): lstrip the individual lines in the ascii split lines,
since we'll be adding our own continuation whitespace later.

22 years agotest_long_unbreakable_lines_with_continuation(): Another funky example
Barry Warsaw [Fri, 7 Mar 2003 23:23:04 +0000 (23:23 +0000)]
test_long_unbreakable_lines_with_continuation(): Another funky example
from Jason Mastaler :)

22 years agodecode_rfc2231(): RFC 2231 allows leaving out both the charset and
Barry Warsaw [Fri, 7 Mar 2003 22:46:41 +0000 (22:46 +0000)]
decode_rfc2231(): RFC 2231 allows leaving out both the charset and
language without including any single quotes.

22 years agotest_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out
Barry Warsaw [Fri, 7 Mar 2003 22:45:55 +0000 (22:45 +0000)]
test_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out
both the charset and language without including any single quotes.

22 years agoDon't quote the path to Python unless the path contains an embedded space.
Tim Peters [Fri, 7 Mar 2003 21:10:21 +0000 (21:10 +0000)]
Don't quote the path to Python unless the path contains an embedded space.
Quoting the path doesn't work on Win2K (cmd.exe) regardless, this is just
a hack to let the test pass again on Win2K (so long as Python isn't
installed in a path that does contain an embedded space).  On Win2K it
looks like we'd also have to add a second pair of double quotes, around
the entire command line.

22 years agoWhitespace normalization.
Tim Peters [Fri, 7 Mar 2003 17:30:48 +0000 (17:30 +0000)]
Whitespace normalization.

22 years agowhitespace normalization
Barry Warsaw [Fri, 7 Mar 2003 15:58:51 +0000 (15:58 +0000)]
whitespace normalization

22 years agoThis test relied on significant trailing whitespace in a string literal.
Tim Peters [Fri, 7 Mar 2003 15:55:36 +0000 (15:55 +0000)]
This test relied on significant trailing whitespace in a string literal.
Evil.

22 years agoAdd a little more verbiage about the bsddb module/package change. It's
Skip Montanaro [Fri, 7 Mar 2003 15:45:15 +0000 (15:45 +0000)]
Add a little more verbiage about the bsddb module/package change.  It's
clear from recent discussions on c.l.py that people are a bit confused about
the differences between the old bsddb, the new bssdb, the bsddb3/PyBSDDB
package and changes to file formats.  Tried to clarify the issues.