This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kaizhu
Recipients kaizhu
Date 2009-09-08.01:56:14
SpamBayes Score 3.7830072e-11
Marked as misclassified No
Message-id <1252374976.15.0.672645211717.issue6861@psf.upfronthosting.co.za>
In-reply-to
Content
# a00.py

parent = bytearray # fails
# parent = bytes   # works
# parent = str     # works

class Foo(parent):

  def __new__(klass, x): return parent.__new__(klass, x)

Foo(x = None)



$ python3.1 -c "import a00"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "a00.py", line 11, in <module>
    Foo(x = None)
TypeError: 'x' is an invalid keyword argument for this function
lethe 3 /tmp/kaizhu/Python-3.1.1:
History
Date User Action Args
2009-09-08 01:56:16kaizhusetrecipients: + kaizhu
2009-09-08 01:56:16kaizhusetmessageid: <1252374976.15.0.672645211717.issue6861@psf.upfronthosting.co.za>
2009-09-08 01:56:14kaizhulinkissue6861 messages
2009-09-08 01:56:14kaizhucreate