[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Lily

New submission from Lily <[email protected]>:

Recursively getting __call__ method from existing __call__ causes interpreter 
infinitely grow in memory and calling resulting 
__call__.__call__...__call__.__call__() chain results in crash.

Platform: Windows 7 (x64)
Version: Python 2.7 (r27:82525) win32

Suggested solution:
* let the obj.__call__.__call__ point to obj.__call__

--
components: Interpreter Core
files: ###crasher.py
messages: 115380
nosy: modchan
priority: normal
severity: normal
status: open
title: __call__.__call__ chain cause crash when long enough
type: crash
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file18711/###crasher.py

___
Python tracker 
<http://bugs.python.org/issue9743>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9744] calling __getattribute__ with wrong instance causes hang up

2010-09-02 Thread Lily

New submission from Lily <[email protected]>:

Look for example file.

Current behaviour: one file is started, A.__getattribute__ will be called 
repeatedly. Entire application will not react on KeyboardInterrupt.

Expected behaviour: exception to be raised "TypeError: unbound method 
__getattribute__() must be called with A instance as first argument (got M 
instance instead)"

Platform: Windows 7 (x64)
Version: Python 2.7 (r27: 82525)

--
components: Interpreter Core
files: ###hanger.py
messages: 115381
nosy: modchan
priority: normal
severity: normal
status: open
title: calling __getattribute__ with wrong instance causes hang up
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file18712/###hanger.py

___
Python tracker 
<http://bugs.python.org/issue9744>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9744] calling __getattribute__ with wrong instance causes hang up

2010-09-02 Thread Lily

Changes by Lily <[email protected]>:


--
versions: +Python 2.6

___
Python tracker 
<http://bugs.python.org/issue9744>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com