diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-01-05 14:52:06 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-01-05 14:52:06 +0100 |
commit | e79851b19ff00bb94f141f6037128ae186e49213 (patch) | |
tree | 6b9d7d914722fca3b0c3ee9fee439396d183fe15 /protocols.py | |
parent | 44c584702ed7ae46ac50a8accf55b5a2698505d3 (diff) | |
download | astroid-git-e79851b19ff00bb94f141f6037128ae186e49213.tar.gz |
add support for object.__new__ (base patch provided by Chris Torek)
The builtin object.__new__ function takes a class and returns
an object of that type, i.e., we should infer the result has
whatever type we can find from the first argument.
To make this work (with Python2.5 at least), we need to note
that built in functions whose __module__ is None are really
in the __builtin__ module.
Diffstat (limited to 'protocols.py')
0 files changed, 0 insertions, 0 deletions