Suppose I define: class Foo(object): def __new__(cls): return 1 class Bar(object): def __new__(cls): return [1,2,3] Python 2.2 returns: print Foo() > 1 print Bar() > [] I would expect that Bar() should return [1,2,3]. Am I running into some clever undocumented feature or a bug? Thanks, -Kevin -- Kevin Jacobs The OPAL Group - Enterprise Systems Architect Voice: (216) 986-0710 x 19 E-mail: jacobs@theopalgroup.com Fax: (216) 986-0714 WWW: http://www.theopalgroup.com
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