[pypy-issue] [issue1360] type.__new__ is not a builtin function or method

Aaron Iles tracker at bugs.pypy.org
Sun Jan 6 02:39:46 CET 2013


New submission from Aaron Iles <aaron.iles+pypy at gmail.com>:

The type of the type object's __new__ method differs between Python2 and PyPy. 
This causes the unit tests for Python3.3's function signatures tools to fail if 
backported to 2.7.

$ python2.7
Python 2.7.3 (default, Sep 18 2012, 21:28:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> type(type.__new__)
<type 'builtin_function_or_method'>
>>>

$ pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:42:54)
[PyPy 1.9.0 with GCC 4.2.1] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``happy PyPy's year 2010!''
>>> type(type.__new__)
<type 'function'>
>>>

----------
messages: 5123
nosy: aliles, pypy-issue
priority: bug
status: unread
title: type.__new__ is not a builtin function or method

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1360>
________________________________________


More information about the pypy-issue mailing list