Paul Sokolovsky
b349479a49
tests/class_new: Add another testcase for __new__/__init__ interaction.
Similar to the existing testcase, but test that returning both value of
native type and instance of another user class from __new__ lead to
__init__ not being called, for better coverage.
7 years ago
Paul Sokolovsky
35be9e805f
tests/class_new: Add checks for __init__ being called and other improvements.
7 years ago
Paul Sokolovsky
a2803b74f4
tests/basics: Convert "sys.exit()" to "raise SystemExit".
8 years ago
Paul Sokolovsky
83623b2fde
tests/basic/[a-f]*: Make skippable.
For small ports which don't have all features enabled.
8 years ago
Damien George
d007cb8903
tests: Add more tests to improve coverage, mostly testing exceptions.
9 years ago
Damien George
0182385ab0
py: Automatically ake __new__ a staticmethod.
Addresses issue #622 .
10 years ago
Paul Sokolovsky
806ea1f6ca
py: Initial attempts to actually allow implementing __new__ in Python.
Caveat is that __new__ should recurse to base class __new__, and ultimately,
object.__new__ is what handles instance allocation.
11 years ago