summaryrefslogtreecommitdiffstats
path: root/Lib/test/crashers/infinite_rec_2.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-01-14 10:58:30 (GMT)
committerArmin Rigo <arigo@tunes.org>2006-01-14 10:58:30 (GMT)
commitb4b5a7601b72ab43cb9f5a0f6b9ab33776b2e16d (patch)
tree7686888e730ccaf128362a6dd265c775bb531af5 /Lib/test/crashers/infinite_rec_2.py
parentf60cd47f102ee97d6ff8c689281bd441cbab84fb (diff)
downloadcpython-b4b5a7601b72ab43cb9f5a0f6b9ab33776b2e16d.zip
cpython-b4b5a7601b72ab43cb9f5a0f6b9ab33776b2e16d.tar.gz
cpython-b4b5a7601b72ab43cb9f5a0f6b9ab33776b2e16d.tar.bz2
collected my segfaulting Python examples from the SF trackers
(is the purpose of the crashers directory to scare people? :-)
Diffstat (limited to 'Lib/test/crashers/infinite_rec_2.py')
-rw-r--r--Lib/test/crashers/infinite_rec_2.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/crashers/infinite_rec_2.py b/Lib/test/crashers/infinite_rec_2.py
new file mode 100644
index 0000000..5a14b33
--- /dev/null
+++ b/Lib/test/crashers/infinite_rec_2.py
@@ -0,0 +1,10 @@
+
+# http://python.org/sf/1202533
+
+class A(str):
+ __get__ = getattr
+
+if __name__ == '__main__':
+ a = A('a')
+ A.a = a
+ a.a # segfault: infinite recursion in C