Built in function 'super' with arguments not supported

Open
#598 5 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
compilers

Research direction

Reproduce the Transcrypt compilation of homematicip/aenum and inspect aenum/init.py at line 301, where super(_NamedConstantDict, self).init() triggers the diagnostic. Trace how Transcrypt handles built-in super calls, then verify that this argument form compiles successfully without regressing existing super behavior.

Written by the indexing model from the issue text.

Description

STATE: under consideration

I tried to transcrypt a python library called homematicip and this uses "aenum" library inside. When I now try to transcrypt this I get

Error while compiling (offending file last):
	File '/Volumes/Dev/python/api.py', line 3, at import of:
	File '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homematicip/device.py', line 7, at import of:
	File '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homematicip/base/enums.py', line 2, at import of:
	File 'aenum', line 301, namely:
	
	Built in function 'super' with arguments not supported

in aenum in line 301 (https://bitbucket.org/stoneleaf/aenum/src/a0295abd67941a4f350bc8bf48eaf37f128b008a/aenum/__init__.py?at=default&fileviewer=file-view-default#__init__.py-301) it is:

super(_NamedConstantDict, self).__init__()

is there any way to get this supported?

Thank you

Dominant language
Python
Stars
2.9k
Forks
218
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TranscryptOrg/Transcrypt

All issues in TranscryptOrg/Transcrypt

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.