Message10900

Author stefan.richthofer
Recipients stefan.richthofer
Date 2016-08-20.14:23:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471702994.4.0.447527878761.issue2515@psf.upfronthosting.co.za>
In-reply-to
Content
I am currently experimenting with Python 2.7. style type-comments from Pep 484. (I'd like to use it for type-checking and maybe later to auto generate Java interfaces for object coercion with Jython). However Jython fails to import the typing module with the following error:

java -jar jython.jar typetest.py
Traceback (most recent call last):
  File "typetest.py", line 12, in <module>
    import typing
  File "/usr/local/lib/python2.7/dist-packages/typing.py", line 345, in <module>
    class Any(Final):
  File "/usr/local/lib/python2.7/dist-packages/typing.py", line 332, in __new__
    cls.assert_no_subclassing(bases)
  File "/usr/local/lib/python2.7/dist-packages/typing.py", line 100, in assert_no_subclassing
    if isinstance(base, cls):
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)


- no C-extension is involved
- the module _is_ Python 2.7. compatible and the code runs fine with CPython 2.7.

I'll continue to investigate, but if someone has a clue, please share ;)
History
Date User Action Args
2016-08-20 14:23:14stefan.richthofersetrecipients: + stefan.richthofer
2016-08-20 14:23:14stefan.richthofersetmessageid: <1471702994.4.0.447527878761.issue2515@psf.upfronthosting.co.za>
2016-08-20 14:23:14stefan.richthoferlinkissue2515 messages
2016-08-20 14:23:13stefan.richthofercreate