[issue1553] An errornous __length_hint__ can make list() raise a SystemError

2007-12-05 Thread Christian Heimes
Christian Heimes added the comment: I've backported the fix to 2.5 and trunk. They suffered from the same problem. -- nosy: +tiran resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> _

[issue1553] An errornous __length_hint__ can make list() raise a SystemError

2007-12-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please post the patch here. I'll take a look to see if it should be backported. -- assignee: -> rhettinger nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]>

[issue1553] An errornous __length_hint__ can make list() raise a SystemError

2007-12-04 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: -- status: -> open __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1553] An errornous __length_hint__ can make list() raise a SystemError

2007-12-03 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Fixed for Py3k in r59316. Should this gets backported? -- status: open -> __ Tracker <[EMAIL PROTECTED]> __ __

[issue1553] An errornous __length_hint__ can make list() raise a SystemError

2007-12-03 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: If an iterator with a __length_hint__ method that returns a negative integer is passed to list(), a SystemError is raised. >>> class A: ... def __iter__(self): ... return self ... def __length_hint__(self): ... return -1 ... >>>