[Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST?

2006-03-13 Thread Travis E. Oliphant
I'm seeing strange behavior in the Python 2.5a0 trunk that is causing the tests for numpy to fail. Apparently obj[...] = 1 is not calling PyObject_SetItem Here is a minimal example to show the error. Does anyone else see this? class temp(object): def __setitem__(self, obj, v):

Re: [Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST?

2006-03-13 Thread Michael Hudson
"Travis E. Oliphant" <[EMAIL PROTECTED]> writes: > I'm seeing strange behavior in the Python 2.5a0 trunk that is causing > the tests for numpy to fail. Apparently obj[...] = 1 is not calling > PyObject_SetItem > > Here is a minimal example to show the error. Does anyone else see this? > > clas

Re: [Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST?

2006-03-13 Thread Nick Coghlan
Michael Hudson wrote: > "Travis E. Oliphant" <[EMAIL PROTECTED]> writes: > >> I'm seeing strange behavior in the Python 2.5a0 trunk that is causing >> the tests for numpy to fail. Apparently obj[...] = 1 is not calling >> PyObject_SetItem >> >> Here is a minimal example to show the error. Does

Re: [Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST?

2006-03-13 Thread Travis E. Oliphant
Nick Coghlan wrote: > > And how... > >case Ellipsis_kind: > ADDOP_O(c, LOAD_CONST, Py_Ellipsis, consts) > break; > > Just a couple of minor details missing, like, oh, compiling the actual > subscript operation :) > > Bug here: http://www.python.org/sf/1448804 > > (assigned to my

Re: [Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST?

2006-03-13 Thread Nick Coghlan
Travis E. Oliphant wrote: > Nick Coghlan wrote: >> And how... >> >>case Ellipsis_kind: >> ADDOP_O(c, LOAD_CONST, Py_Ellipsis, consts) >> break; >> >> Just a couple of minor details missing, like, oh, compiling the actual >> subscript operation :) >> >> Bug here: http://www.python.org

Re: [Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST?

2006-03-14 Thread Nick Coghlan
Nick Coghlan wrote: > Unfortunately my new test case breaks test_compiler. I didn't notice because > I > didn't use -uall before checking it in :( > > If no-one else gets to it, I'll try to sort it out tonight. OK, as of rev 43025 the compiler module also understands augmented assignment to tu