Commit Graph

1959 Commits

Author SHA1 Message Date
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
Raymond Hettinger
d693a81595 Fix SF 762891: "del p[key]" on proxy object raises SystemError() 2003-06-30 04:18:48 +00:00
Raymond Hettinger
f466793fcc SF patch 703666: Several objects don't decref tmp on failure in subtype_new
Submitted By: Christopher A. Craig

Fillin some missing decrefs.
2003-06-28 20:04:25 +00:00
Jeremy Hylton
3e3159ce6a Require that __nonzero__() return a bool or exactly an int. 2003-06-27 17:38:27 +00:00
Jeremy Hylton
090a3495b3 Check return type of __nonzero__() method.
The language reference says you must return an int or a bool.  This
fix limits the scope of SF bug 759227 (infinite recursion) to
subclasses of int.
2003-06-27 16:46:45 +00:00
Walter Dörwald
03f6c54359 Whitespace normalization. 2003-06-25 13:12:18 +00:00
Walter Dörwald
9ff3f03c3e Fix whitespace. 2003-06-18 14:17:01 +00:00
Raymond Hettinger
be9715398b SF bug #753451: classmethod abuse --> SystemError
Check the argument to classmethod for callability.

Backport candidate.
2003-06-18 01:13:41 +00:00
Walter Dörwald
5ecd6c4db2 Fix typo in comment. 2003-06-17 20:22:24 +00:00
Walter Dörwald
e8049befdf Use _PyEval_SliceIndex to handle list.index() calls with
huge start and stop arguments. Add tests.
2003-06-17 19:27:39 +00:00
Walter Dörwald
e0a1bb6341 Whitespace normalization. 2003-06-17 15:48:11 +00:00
Guido van Rossum
2743d87d79 Fix sloppy index() implementation:
- don't use min() and max()
- interpret negative start/stop argument like negative slice indices
2003-06-17 14:25:14 +00:00