Raymond Hettinger
5307bc50ea
Backport fix to SF bug #820397 : __nonzero__() returns 1/0
2003-10-12 23:41:21 +00:00
Raymond Hettinger
6b560bc648
SF patch #820195 : make object.__contains__() returns True or False instead
...
of 1 or 0.
Backport Guido's fix to the default __contains__() and to proxy_has_key()
so they will properly return booleans instead of integers.
2003-10-09 20:51:07 +00:00
Jeremy Hylton
77ecfdd171
Backport Tim's portability improvement and comments.
2003-09-17 03:22:27 +00:00
Jeremy Hylton
6687ded893
Backport: Double-fix of crash in Unicode freelist handling.
2003-09-16 20:30:03 +00:00
Raymond Hettinger
bd40b91238
Fix leak in classobject.c. The leak surfaced on the error exit when
...
hashing a class that does not define __hash__ but does define a
comparison.
2003-09-16 07:13:56 +00:00
Raymond Hettinger
5ae2511c06
Backport Neal's fix for bug #789402 -- a memory leak in fileobject.c
2003-09-16 05:29:50 +00:00
Martin v. Löwis
8dc455fe59
Only release buffer after file has been closed. Fixes #800824 .
2003-09-07 20:43:24 +00:00
Raymond Hettinger
046595e496
SF bug #800796 : Difference between hash() and __hash__()
...
slice(5).__hash__() now raises a TypeError.
2003-09-05 14:38:30 +00:00
Martin v. Löwis
41add1706d
Patch #788249 : Pass an explicit buffer to setvbuf in PyFile_SetBufSize().
...
Fixes #603724 .
2003-09-04 19:02:20 +00:00
Raymond Hettinger
a15a3a2cbb
SF patch #798467 : Update docstring of has_key for bool changes
...
(Contributed by George Yoshida.)
2003-09-01 22:17:18 +00:00
Raymond Hettinger
90ee21989b
Remove 'e.g.' from error message
2003-08-30 23:58:20 +00:00
Raymond Hettinger
eb85c6617b
SF bug #795506 : Wrong handling of string format code for float values.
...
Added missing support for '%F' as had been documented.
2003-08-27 05:08:19 +00:00
Walter Dörwald
4c1392a368
Backport checkin:
...
Fix refcounting leak in charmaptranslate_lookup()
2003-08-15 16:52:33 +00:00
Walter Dörwald
906bb770c8
Backport checkin:
...
Fix another refcounting leak in PyUnicode_EncodeCharmap().
2003-08-15 16:27:32 +00:00
Walter Dörwald
90de7fe3dc
Backport checkin:
...
Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).
2003-08-15 15:01:26 +00:00
Michael W. Hudson
62748a10f7
Backport my fix to my fix:
...
My last fix left n used unitialized in tha a==b case.
Fix, by not using n at all in that case.
2003-08-15 12:26:05 +00:00
Walter Dörwald
9ee6975fb6
Backport checkins:
...
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:26:44 +00:00
Michael W. Hudson
d7d9571879
And backport-2-3-4:
...
Fix reference leak noted in test_types:
Check for a[:] = a _before_ calling PySequence_Fast on a.
2003-08-14 17:25:59 +00:00
Michael W. Hudson
40b4a6b015
As penance for forgetting to flag my last checkins as bugfix candidates,
...
just do the backport.
These changes do not apply to release22-maint.
2003-08-07 15:08:55 +00:00
Neil Schemenauer
7555294576
Remove code that tried to warn about shadowing builtin names after a
...
module had been compiled. It gives too many spurious warnings.
2003-07-16 22:04:11 +00:00
Jeremy Hylton
f75d9fce16
Remove stray comments.
2003-07-16 16:17:57 +00:00
Jeremy Hylton
1c7a0ea056
Remove unnecessary check in tests for slots allowed.
...
The !PyType_Check(base) check snuck in as part of rev 2.215, but was
unrelated to the SF patch that is mentioned in the checkin comment.
The test is currently unnecessary because base is set to the return
value of best_bases(), which returns a type or NULL.
2003-07-16 16:08:23 +00:00
Fred Drake
fe89cc186c
Remove proxy_print(), since that caused an inconsistency between
...
"print repr(proxy(a))" and "proxy(a)" at an interactive prompt.
Closes SF bug #722763 .
2003-07-14 21:46:23 +00:00
Jeremy Hylton
6d3e0186d6
Add whitespace.
2003-07-11 17:02:39 +00:00
Mark Hammond
0ccda1ee10
Support 'mbcs' as a 'built-in' encoding, so the C API can use it without
...
defering to the encodings package.
As described in [ 763111 ] mbcs encoding should skip encodings package
2003-07-01 00:13:27 +00:00