Issue1772895
Created on 2007-08-13.07:29:54 by ayeshaiqbal, last changed 2007-08-20.06:35:56 by cgroves.
File name |
Uploaded |
Description |
Edit |
Remove |
isinstance.patch
|
ayeshaiqbal,
2007-08-16.03:35:40
|
|
|
|
msg2797 (view) |
Author: ayesha (ayeshaiqbal) |
Date: 2007-08-13.07:29:54 |
|
Hi,
I have enclosed a patch for the bug 1768988 .Now isinstance and issubclass check the no of times recursion has been performed and if the tuple is too deeply nested then a runtime exception is raised instead of allowing the recursion stack to overflow.This is identical to the functionality exhibited by isinstance and issubclass in python
Thanks,
Ayesha
|
msg2798 (view) |
Author: ayesha (ayeshaiqbal) |
Date: 2007-08-16.03:35:40 |
|
The new patch contains the changes made to the test file test_isinstance.py.This test runs properly now
File Added: isinstance.patch
|
msg2799 (view) |
Author: Charlie Groves (cgroves) |
Date: 2007-08-20.06:35:56 |
|
Committed the patch with some minor modifications in r3436. Since issubclass and isinstance can be called by interpreters running in separate threads, I replaced the static recursion counter with an argument to the function.
|
|
Date |
User |
Action |
Args |
2007-08-13 07:29:54 | ayeshaiqbal | create | |
|