"operator" library

Đang mở
#776 2 bình luận 0 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

Start by reproducing the shown python3 -m transcrypt op.py command and inspect how Transcrypt resolves built-in modules, especially the missing _operator module. Done means from operator import eq compiles successfully without the reported import error; the issue names no source files or tests.

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

Mô tả

I couldn't find an existing issue about this, but the built-in "operator" module seems to be missing. Is this something that's intended for eventual inclusion?

[sweg@CNU352DG8J tmp]$ echo 'from operator import eq' > op.py
[sweg@CNU352DG8J tmp]$ python3 -m transcrypt op.py

Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.7.16
Copyright (C) Geatec Engineering. License: Apache 2.0


Saving target code in: /tmp/__target__/org.transcrypt.__runtime__.js
Saving minified target code in: /tmp/__target__/org.transcrypt.__runtime__.js

Error while compiling (offending file last):
	File '/tmp/op.py', line 1, at import of:
	File 'operator', line 412, namely:
	
	Import error, can't find any of:
		/tmp/_operator/__doc__.py
		/tmp/_operator/__doc__.js
		/home/sweg/.local/lib/python3.8/site-packages/transcrypt/modules/_operator/__doc__.py
		/home/sweg/.local/lib/python3.8/site-packages/transcrypt/modules/_operator/__doc__.js
		/tmp/_operator/__doc__.py
		/tmp/_operator/__doc__.js
		/usr/lib64/python3.8/_operator/__doc__.py
		/usr/lib64/python3.8/_operator/__doc__.js
		/usr/lib64/python3.8/lib-dynload/_operator/__doc__.py
		/usr/lib64/python3.8/lib-dynload/_operator/__doc__.js
		/home/sweg/.local/lib/python3.8/site-packages/_operator/__doc__.py
		/home/sweg/.local/lib/python3.8/site-packages/_operator/__doc__.js
		/usr/lib64/python3.8/site-packages/_operator/__doc__.py
		/usr/lib64/python3.8/site-packages/_operator/__doc__.js
		/usr/lib/python3.8/site-packages/_operator/__doc__.py
		/usr/lib/python3.8/site-packages/_operator/__doc__.js
		/tmp/_operator.py
		/tmp/_operator.js
		/home/sweg/.local/lib/python3.8/site-packages/transcrypt/modules/_operator.py
		/home/sweg/.local/lib/python3.8/site-packages/transcrypt/modules/_operator.js
		/tmp/_operator.py
		/tmp/_operator.js
		/usr/lib64/python3.8/_operator.py
		/usr/lib64/python3.8/_operator.js
		/usr/lib64/python3.8/lib-dynload/_operator.py
		/usr/lib64/python3.8/lib-dynload/_operator.js
		/home/sweg/.local/lib/python3.8/site-packages/_operator.py
		/home/sweg/.local/lib/python3.8/site-packages/_operator.js
		/usr/lib64/python3.8/site-packages/_operator.py
		/usr/lib64/python3.8/site-packages/_operator.js
		/usr/lib/python3.8/site-packages/_operator.py
		/usr/lib/python3.8/site-packages/_operator.js


Aborted

[sweg@CNU352DG8J tmp]$ 
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.