-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The currect assumption that `object` can be used to create a new object is not always valid. One example is the issue I'm currently facing: ``` >>> reify(ast.Num(n=var('x')), {var('x'): 123}) ... 55 def _reify_object_dict(o, s): ---> 56 obj = object.__new__(type(o)) 57 58 d = yield _reify(o.__dict__, s) TypeError: object.__new__(Num) is not safe, use Num.__new__() ```
- Loading branch information
1 parent
f25b20d
commit 6aab8e2
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters