Commit 1c564021 authored by Robert Bradshaw's avatar Robert Bradshaw

Test of __new__ on Python class.

parent 33ff4edd
......@@ -170,3 +170,11 @@ class Foo3(metaclass=Base3, a=0, b=0, **kwargs):
>>> sorted(Foo3.kwargs.items())
[('a', 0), ('b', 0), ('c', 0)]
"""
class PyClassWithNew(object):
"""
>>> PyClassWithNew(389)
389
"""
def __new__(self, arg):
return arg
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment