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
Raymond Hettinger
d05abdec7b
SF #754014 : list.index() should accept optional start, end arguments
...
Also, modified UserList.index() to match and expanded the related tests.
2003-06-17 05:05:49 +00:00
Guido van Rossum
59195fdf40
- SF patch 751998 fixes an unwanted side effect of the previous fix
...
for SF bug 742860 (the next item).
2003-06-13 20:54:40 +00:00
Brett Cannon
10147f7d13
Fixed a comment.
2003-06-11 20:50:33 +00:00
Neil Schemenauer
4e3363e884
Warn about creating global variables by __setattr__ that shadow builtin
...
names. Unfortunately, this is not bulletproof since the module
dictionary can be modified directly.
2003-06-09 18:42:19 +00:00
Neal Norwitz
e2fdc61004
Fix SF #749831 , copy raises SystemError when getstate raises exception
2003-06-08 13:19:58 +00:00
Guido van Rossum
1987c6693b
Fix for SF 742911. We now clear the weakrefs *before* calling __del__
...
or emptying __dict__, just as we do for classic classes.
2003-05-29 14:29:23 +00:00
Raymond Hettinger
e509b2ad24
Add notes on use cases with paired accesses to the same key.
2003-05-28 14:10:46 +00:00
Raymond Hettinger
e8b0f0461b
* Beefed-up tests
...
* Allow tuple re-use
* Call tp_iternext directly
2003-05-28 14:05:34 +00:00