Built in function 'super' with arguments not supported

Đang mở
#598 5 bình luận 7 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
compilers

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
2.9k
Fork
218
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TranscryptOrg/Transcrypt

Tất cả issue của TranscryptOrg/Transcrypt

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.