Commit d1a8e7d3 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by Stefan Behnel

Test of __new__ on Python class.

parent e5b83461
......@@ -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