Neil Schemenauer
90b182c16c
Don't introduce map(None, ...) in the tutorial. In practice, zip() is
...
usually preferred.
2003-08-14 22:57:46 +00:00
Walter Dörwald
e98147a8e5
Fix refcount leak in the UnicodeError constructor:
...
When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
2003-08-14 20:59:07 +00:00
Neil Schemenauer
689735562d
Make filter(bool, ...) as fast as filter(None, ...).
2003-08-14 20:37:34 +00:00
Walter Dörwald
e5402fb340
Fix refcount leak in PyUnicode_EncodeCharmap(). The bug surfaces
...
when an encoding error occurs and the callback name is unknown,
i.e. when the callback has to be called. The problem was that
the fact that the callback has already been looked up was only
recorded in a local variable in charmap_encoding_error(), because
charmap_encoding_error() got it's own copy of the errorHandler
pointer instead of a pointer to the pointer in
PyUnicode_EncodeCharmap().
2003-08-14 20:25:29 +00:00
Raymond Hettinger
fb857893a2
SF patch #787929 : reflect the introduce of boolean type(libcfgparser.tex)
...
(Contributed by George Yoshida.)
2003-08-14 19:58:35 +00:00
Michael W. Hudson
b4f49385a3
Fix reference leak noted in test_types:
...
Check for a[:] = a _before_ calling PySequence_Fast on a.
release23-maint candidate
Reference leak doesn't happen with head of release22-maint.
2003-08-14 17:04:28 +00:00
Fred Drake
7d599482f2
When piping output into a pager like "less", quiting the pager before
...
the output was consumed would cause and exception to be raise in
logmerge; suppress this specific error, because it's not helpful.
2003-08-14 15:52:33 +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
Fred Drake
8fd8def1fa
fix markup
2003-08-14 04:51:24 +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
Raymond Hettinger
c7a26562f9
SF patch#786531 'the the' typo. Contributed by George Yoshida
2003-08-12 00:01:17 +00:00
Raymond Hettinger
f17d65da3a
SF patch#786531 'the the' typo. Contributed by George Yoshida
2003-08-12 00:01:16 +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
Michael W. Hudson
71665dc90d
Add a couple of decrefs to error paths.
...
Now test_descr only appears to leak two references & I think this
are in fact illusory (it's to do with things getting resurrected in
__del__ methods & it's easy to be believe confusion occurs when that
happens <wink>). Woohoo!
2003-08-11 17:32:02 +00:00
Andrew M. Kuchling
b2f89ee71a
Comment typo fixes
2003-08-11 16:20:39 +00:00
Michael W. Hudson
cc9d004f81
mention pymemcompat.h in Misc/README
2003-08-11 16:18:43 +00:00
Michael W. Hudson
bdc6ea1110
Fix silly typo in comment.
2003-08-11 16:14:06 +00:00
Skip Montanaro
bc961e5714
add a statement identifying StringI and StringO objects.
2003-08-11 15:06:07 +00:00
Skip Montanaro
eb2f0612e1
reverting to 2.41 version (distinct tp_names) - will add verbiage to the
...
docs
2003-08-11 14:51:15 +00:00
Skip Montanaro
e138828d03
shit - just change the visible name, not the comments - strictly speaking,
...
the tp_name is not correct, but what's exposed to users is known visibly as
"StringIO", not "StringI" or "StringO".
2003-08-11 13:15:11 +00:00
Skip Montanaro
4a0d3d2e40
typos
2003-08-11 13:09:12 +00:00
Michael W. Hudson
68debc935b
Fix refcounting and cut & paste error (?) in last checkin.
...
This should go onto release23-maint, too.
2003-08-11 12:20:24 +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
Martin v. Löwis
a2c17c5820
Move initialization of sys.std{in,out}.encoding to Py_Initialize.
...
Verify that the encoding actually exists. Fixes #775985 .
Will backport to 2.3.
2003-08-09 09:47:11 +00:00
Martin v. Löwis
fc9b75fafb
Patch #771998 : Put braces around variables. Will backport to 2.3.
2003-08-09 09:06:52 +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
Raymond Hettinger
12c484dab8
SF patch #783807 : Clarify PySequence_Setitem ref counting
...
(Contributed by Jay T Miller.)
2003-08-09 04:37:14 +00:00
Kurt B. Kaiser
3f42a6d267
IDLEfork Bug 782759
...
backported to 23-maint
2003-08-09 01:51:28 +00:00
Raymond Hettinger
0eec08794c
Explain argument unpacking
2003-08-08 23:32:46 +00:00
Michael W. Hudson
a6a277d831
/* XXX From here until type is allocated, "return NULL" leaks bases! */
...
Sure looks like it to me! <wink>
When I run the leak2.py script I posted to python-dev, I only see
three reference leaks in all of test_descr. When I run
test_descr.test_main, I still see 46 leaks. This clearly demands
posting a yelp to python-dev :-)
This certainly should be applied to release23-maint, and in all
likelyhood release22-maint as well.
2003-08-08 13:57:22 +00:00
Raymond Hettinger
5475f2394a
SF bug #770485 : cStringIO does not set closed attr
2003-08-08 12:20:03 +00:00
Raymond Hettinger
6e13bcc7b1
SF bug #775836 : change 0,1 to False,True in dict.has_key doc
2003-08-08 11:07:59 +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
Raymond Hettinger
c7d7766fda
Improve docs:
...
* Simplify the pure python examples
* Add a quantify() example
2003-08-08 02:40:28 +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
Fred Drake
bb18f620ad
Fix hyperlinks and one class reference.
...
Backporting to Python 2.3 branch.
2003-08-07 14:31:08 +00:00
Martin v. Löwis
5db099a4fe
Release host name memory. Fixes #783312 . Will backport to 2.3.
2003-08-07 11:55:15 +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
beb35f4da3
Removed deprecated functions
2003-08-05 12:32:41 +00:00
Raymond Hettinger
f8a52d38ad
Removed deprecated functions
2003-08-05 12:23:19 +00:00