A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-March/062318.html below:

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

[Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST? [Python-Dev] Strange behavior in Python 2.5a0 (trunk) --- possible error in AST?Travis E. Oliphant oliphant.travis at ieee.org
Mon Mar 13 09:28:56 CET 2006
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):
            print obj, v

mine = temp()
mine[...] = 1
mine[0] = 1


Output from Python 2.4.2:
Ellipsis 1
0 1


Output from Python 2.5a0:
0 1


In other words, the first line does nothing in Python 2.5a0.


Does anybody else see this?

Thanks,

-Travis

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4