Raymond Hettinger
ee562fc084
Make sets.py compatible with Py2.2
2003-08-15 21:17:04 +00:00
Walter Dörwald
c8cb5d9d69
Make a copy of L before appending, so the global L remains
...
unchanged (and sys.gettotalrefcount() remains constant).
Fix a few typos.
2003-08-15 17:52:39 +00:00
Michael W. Hudson
b2c7de4667
Fix for
...
[ 784825 ] fix obscure crash in descriptor handling
Should be applied to release23-maint and in all likelyhood
release22-maint, too.
Certainly doesn't apply to release21-maint.
2003-08-15 13:07:47 +00:00
Kurt B. Kaiser
b785518d05
IDLE didn't start correctly when Python was installed in "Program Files"
...
on W2K and XP. Python Bugs 780451, 784183
Backported to 2.2-maint
2003-08-14 14:54:28 +00:00
Andrew M. Kuchling
69f31eb80c
[Patch #739124 ] Add use_default_colors() to curses module
2003-08-13 23:11:04 +00:00
Walter Dörwald
a54b92b2eb
Add a unicode prefix to the characters in the UnicodeEncodeError and
...
UnicodeTranslateError message.
2003-08-12 17:34:49 +00:00
Walter Dörwald
fd196bd263
Enhance message for UnicodeEncodeError and UnicodeTranslateError.
...
If there is only one bad character it will now be printed in a
form that is a valid Python string.
2003-08-12 17:32:43 +00:00
Brett Cannon
c83124ab79
Fix bug in test_bad_timezone where test was assuming locale knew of PDT.
2003-08-11 19:06:13 +00:00
Andrew M. Kuchling
b2f89ee71a
Comment typo fixes
2003-08-11 16:20:39 +00:00
Jason Tishler
0fd54d8050
Unconditionally opening the temp file in text mode causes this test to fail
...
under Cygwin. The attached patch corrects this problem.
I tested this patch under Red Hat Linux 8.0 too.
2003-08-11 12:13:14 +00:00
Jack Jansen
a290e3d7c6
Bug fix for #780461 : 'sysu' gestalt selector is meaningless on MacOSX,
...
but attempting to get it resulted in a crash. Fixed. Backport candidate.
2003-08-11 11:08:49 +00:00
Brett Cannon
5187a3bcdb
Fix handling of bad locale setup where time.tzname[0] == time.tzname[1] and
...
time.daylight is true. Add an explicit test for this situation.
Fixed some wording in docstrings.
2003-08-11 07:24:05 +00:00
Raymond Hettinger
3081d59f92
SF bug #778964 : bad seed in python 2.3 random
...
The default seed is time.time().
Multiplied by 256 before truncating so that fractional seconds are used.
This way, two successive calls to random.seed() are much more likely
to produce different sequences.
2003-08-09 18:30:57 +00:00
Martin v. Löwis
39a682f5f2
Add HIDDEN. Fixes #777664 .
2003-08-09 09:53:51 +00:00
Raymond Hettinger
cffb9dee67
SF patch #747364 : BaseHTTPServer doesn't need StringIO intermediary
...
(Contributed by Andrew Dalke.)
2003-08-09 05:01:41 +00:00
Kurt B. Kaiser
3f42a6d267
IDLEfork Bug 782759
...
backported to 23-maint
2003-08-09 01:51:28 +00:00
Raymond Hettinger
5475f2394a
SF bug #770485 : cStringIO does not set closed attr
2003-08-08 12:20:03 +00:00
Raymond Hettinger
b5a420883c
Modified itertools.izip() to match the behavior of __builtin__.zip()
...
which can now take zero arguments.
2003-08-08 05:10:41 +00:00
Raymond Hettinger
77fe69bd08
Re-sync doc tests with the doc updates.
2003-08-08 04:33:19 +00:00
Brett Cannon
f5c96fb74d
Fix docstring in LocaleTime.
2003-08-08 01:53:05 +00:00
Michael W. Hudson
e723e453a1
Repair refcounting on error return from type_set_bases.
...
Include a test case that failed for one of my efforts to repair this.
2003-08-07 14:58:10 +00:00
Mark Hammond
7edd0a9b21
Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.
...
Will also check in on the 2.3 branch.
2003-08-06 02:46:58 +00:00
Walter Dörwald
5301d9c10d
Remove useless import.
2003-08-05 15:55:38 +00:00
Walter Dörwald
b27cca6634
Check both __div__ and __truediv__ in division tests.
...
(From SF patch #543867 )
2003-08-05 15:34:34 +00:00
Raymond Hettinger
f8a52d38ad
Removed deprecated functions
2003-08-05 12:23:19 +00:00
Martin v. Löwis
0d8e16c7ad
Support trailing dots in DNS names. Fixes #782510 . Will backport to 2.3.
2003-08-05 06:19:47 +00:00
Martin v. Löwis
8db4403a76
Correct URL of normalization file. Fixes #781065 . Will backport to 2.3.
2003-08-05 05:59:13 +00:00
Martin v. Löwis
249d50a25f
Make sure eol_convention is an ASCII string. Fixes #774680 .
...
Will backport to 2.3.
2003-08-05 05:51:20 +00:00
Brett Cannon
474335ce17
Re-introduce caching of TimeRE and compiled regexes with added thread-safety.
...
Also remove now unnecessary property attributes for thread safety
(no longer have lazy attributes) and code simplicity reasons.
Timezone storage has been reworked to be simpler and more flexible. All values
in LocaleTime instances are lower-cased. This is all done to simplify the
module.
The module now assumes nothing beyond the strptime function will be exposed for
general use beyond providing functionality for strptime.
2003-08-05 04:02:49 +00:00
Brett Cannon
8ab27dfa13
Touch-up to docstrings.
2003-08-05 03:52:04 +00:00
Skip Montanaro
ed9bf12848
protect against test problems with Jython
2003-08-03 23:30:40 +00:00
Skip Montanaro
d5cf0b86df
added test for bug 782369
2003-08-03 23:02:10 +00:00
Skip Montanaro
c1b4154587
more extension marshal tests and conversion to unittest - was surprised to
...
see how much of the file was not covered by the build process
2003-08-02 15:02:33 +00:00
Raymond Hettinger
eaef615116
As discussed on python-dev, changed builtin.zip() to handle zero arguments
...
by returning an empty list instead of raising a TypeError.
2003-08-02 07:42:57 +00:00
Kurt B. Kaiser
220fecf0f4
Added a banner to the shell startup message discussing possible
...
warnings from personal firewall software. Added the same text
to README.txt, updated NEWS.txt for release.
M NEWS.txt
M PyShell.py
M README.txt
2003-07-27 03:24:19 +00:00
Kurt B. Kaiser
7fbc3046df
Update for release.
2003-07-27 00:56:41 +00:00
Brett Cannon
2c24d42d32
Fixes bug of having default argument for TimeRE's __init__ that caused the
...
LocaleTime instance to only be created once and thus not be recreated when
the locale changed.
2003-07-24 20:02:28 +00:00
Brett Cannon
175ddb5b30
Remove caching of TimeRE (and thus LocaleTime) instance. Error was being
...
caught when executing test_strptime, test_logging, and test_time in that order
when the testing of "%c" occured. Suspect the cache was not being recreated
(the test passed when test_logging was forced to re-establish the locale).
2003-07-24 06:27:17 +00:00
Kurt B. Kaiser
6145a624b8
1. Python Bug 775541: Calltips error when docstring is None. Introduced
...
by patch 769142. Fixed by patch 776062. KBK will backport net result
to IDLE release22-maint and IDLEfork.
2. Update NEWS.txt and idlever for release.
2003-07-23 15:42:14 +00:00
Tim Peters
5943b4ac10
Restored commented-out line checked in by mistake.
2003-07-23 00:30:39 +00:00
Tim Peters
9390dd5b4a
locale-restoration code: Don't leave comparison to None implicit. For
...
all I know, the original locale may be '' (I don't think that's possible,
but ...), and if so we would certainly want to restore it.
2003-07-23 00:30:11 +00:00
Tim Peters
36f7e938f2
Fred wasn't kidding -- there really are docs for the locale module <wink>.
...
Obtain the original locale in the documented way. This way actually
works for me.
Restore the original locale at the end, instead of forcing to "C".
Move the locale fiddling into the test driver instead of doing it as a
side effect of merely importing the module. I don't know why the test
is mucking with locale (and also added a comment saying so), but it
surely has no justification for doing that as an import side-effect.
Now whenever the locale-changing code executes, the locale-restoring code
will also get run.
2003-07-23 00:05:07 +00:00
Brett Cannon
d1deac06e7
Fix error in test of not comparing against 0 item of a list
2003-07-22 21:07:16 +00:00
Jason Tishler
c23f39ca9d
Patch #775784 : YA Cygwin expected regression test skip patch
...
This patch just adds test_ioctl to the list of expected skips for Cygwin.
2003-07-22 18:35:58 +00:00
Thomas Heller
354e3d90d3
Change the zipimport implementation to accept files containing
...
arbitrary bytes before the actual zip compatible archive. Zipfiles
containing comments at the end of the file are still not supported.
Add a testcase to test_zipimport, and update NEWS.
This closes sf #775637 and sf #669036 .
2003-07-22 18:10:15 +00:00
Skip Montanaro
5d6ceb4aae
more generic reference to python interpreter
2003-07-22 14:37:42 +00:00
Tim Peters
291f14e3d3
Windows fix: When PYTHONCASEOK is set, or for any other reason imports
...
are satisfied in a case-insensitive manner, the attempt to import (the
non-existent) fcntl gets satisfied by FCNTL.py instead, and the tempfile
module defines a Unix-specific _set_cloexec() function in that case. As
a result, temp files can't be created then (blows up with an AttributeError
trying to reference fcntl.fcntl). This just popped up in the spambayes
project, where there is no apparent workaround (which is why I'm pushing
this in now).
2003-07-22 02:50:01 +00:00
Barry Warsaw
e3ea281280
readerThread(): Add max_retries to both DeadlockWrap() calls. This
...
may cause some tests to fail but it prevents them from hanging.
2003-07-21 23:01:34 +00:00
Jack Jansen
749f481478
Backport from r23c1-branch:
...
Pimp crashed if you tried to install a non-installable package, in stead
of printing a decent error message. Fixes #773450..
2003-07-21 20:47:11 +00:00
Barry Warsaw
e676c5ef3e
test01_join(): Fix a test failure when run with "python -O". The
...
setting of sCursor happened in an assert.
2003-07-21 18:43:33 +00:00